Revision history for DeliciousAction
Revision [19146]
Last edited on 2008-01-28 00:14:03 by DarTar [Modified links pointing to docs server]No Differences
Additions:
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDeliciousAction&title=%0A%09%0A%0ADel.icio.us+Action" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Post to del.icio.us</a>""
===The code===
Save the following as ##actions/delicious.php## and modify the ICON_PATH constant to match the path to the icon on your server. The del.icio.us icon used on this server can be downloaded [[http://wikka.jsnx.com/images/icons/logos/del.icio.us_small.png here]].
%%(php;1)
<?php
/**
* Display a link to bookmark the current page at del.icio.us
*
* @package Actions
* @name Del.icio.us
*
* @author {@link http://wikka.jsnx.com/DarTar Dario Taraborelli}
* @copyright Copyright © 2005, Dario Taraborelli
* @version 0.1
* @since Wikka 1.1.X.X
*
* @access public
* @uses PageTitle()
* @uses Href()
* @output bookmark link with urlencoded page URL and title
*
* @todo move style to Wikka stylesheet
* @todo add support for "tag" URL parameter
*
*/
/* Constants section */
define('ICON_PATH', 'images/icons/logos/del.icio.us_small.png');
define('STYLE', 'border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em');
define('DELICIOUS_BASE_URL', 'http://del.icio.us/post?url=');
/* i18n */
define('LINK_TEXT', 'Post to del.icio.us');
define('LINK_TITLE', 'Bookmark this page at del.icio.us');
//build bookmark link
$url = $this->Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '<img src="'.ICON_PATH.'" />';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
echo $output;
}
?>
%%
----
CategoryDevelopmentActions
===The code===
Save the following as ##actions/delicious.php## and modify the ICON_PATH constant to match the path to the icon on your server. The del.icio.us icon used on this server can be downloaded [[http://wikka.jsnx.com/images/icons/logos/del.icio.us_small.png here]].
%%(php;1)
<?php
/**
* Display a link to bookmark the current page at del.icio.us
*
* @package Actions
* @name Del.icio.us
*
* @author {@link http://wikka.jsnx.com/DarTar Dario Taraborelli}
* @copyright Copyright © 2005, Dario Taraborelli
* @version 0.1
* @since Wikka 1.1.X.X
*
* @access public
* @uses PageTitle()
* @uses Href()
* @output bookmark link with urlencoded page URL and title
*
* @todo move style to Wikka stylesheet
* @todo add support for "tag" URL parameter
*
*/
/* Constants section */
define('ICON_PATH', 'images/icons/logos/del.icio.us_small.png');
define('STYLE', 'border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em');
define('DELICIOUS_BASE_URL', 'http://del.icio.us/post?url=');
/* i18n */
define('LINK_TEXT', 'Post to del.icio.us');
define('LINK_TITLE', 'Bookmark this page at del.icio.us');
//build bookmark link
$url = $this->Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '<img src="'.ICON_PATH.'" />';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
echo $output;
}
?>
%%
----
CategoryDevelopmentActions
Deletions:
Additions:
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http://wikka.jsnx.com/DeliciousAction
Deletions:
===The code===
Save the following as ##actions/delicious.php## and modify the ICON_PATH constant to match the path to the icon on your server. The del.icio.us icon used on this server can be downloaded [[http://wikka.jsnx.com/images/icons/logos/del.icio.us_small.png here]].
%%(php;1)
<?php
/**
* Display a link to bookmark the current page at del.icio.us
*
* @package Actions
* @name Del.icio.us
*
* @author {@link http://wikka.jsnx.com/DarTar Dario Taraborelli}
* @copyright Copyright © 2005, Dario Taraborelli
* @version 0.1
* @since Wikka 1.1.X.X
*
* @access public
* @uses PageTitle()
* @uses Href()
* @output bookmark link with urlencoded page URL and title
*
* @todo move style to Wikka stylesheet
* @todo add support for "tag" URL parameter
*
*/
/* Constants section */
define('ICON_PATH', 'images/icons/logos/del.icio.us_small.png');
define('STYLE', 'border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em');
define('DELICIOUS_BASE_URL', 'http://del.icio.us/post?url=');
/* i18n */
define('LINK_TEXT', 'Post to del.icio.us');
define('LINK_TITLE', 'Bookmark this page at del.icio.us');
//build bookmark link
$url = $this->Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '<img src="'.ICON_PATH.'" />';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
echo $output;
}
?>
%%
----
CategoryDevelopmentActions
Additions:
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDeliciousAction&title=%0A%09%0A%0ADel.icio.us+Action" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Post to del.icio.us</a>""
define('LINK_TEXT', 'Post to del.icio.us');
define('LINK_TEXT', 'Post to del.icio.us');
Deletions:
define('LINK_TEXT', 'Bookmark this page');
Additions:
=====Del.icio.us Bookmark Action=====
Deletions:
Additions:
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDeliciousAction&title=%0A%09%0A%0ADel.icio.us+Action" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Bookmark this page</a>""
$output = '<a style="'.STYLE.'" href="'.$delicious.'" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
Deletions:
$output = '<a style="'.STYLE.'" href="'.$delicious.'" target="_blank" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
Additions:
Save the following as ##actions/delicious.php## and modify the ICON_PATH constant to match the path to the icon on your server. The del.icio.us icon used on this server can be downloaded [[http://wikka.jsnx.com/images/icons/logos/del.icio.us_small.png here]].
Deletions:
Additions:
===The code===
Deletions:
Additions:
~-WikkaFolksonomy
~-UnderDevelopment
~-UnderDevelopment
Deletions:
Additions:
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDeliciousAction&title=%0A%09%0A%0ADel.icio.us+Action" target="_blank" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Bookmark this page</a>""
Deletions:
Additions:
This simple action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used as a stand-alone plugin in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported). Obviously, you must be registered at del.icio.us in order to be able to bookmark a page.
Deletions:
Additions:
This simple action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported). You must be registered at del.icio.us in order to be able to bookmark a page.
* @todo add support for "tag" URL parameter
* @todo add support for "tag" URL parameter
Deletions:
Additions:
This simple action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported).
Deletions:
Additions:
Display a del.icio.us bookmark link for the current page.
* Display a link to bookmark the current page at del.icio.us
* Display a link to bookmark the current page at del.icio.us
Deletions:
* Display a link to bookmark the current page to del.icio.us
Additions:
=====Del.icio.us Action=====
WikkaFolksonomy
>>This is the development page for the del.icio.us action.::c::
===Documentation===
==Short description==
Display a bookmark link for the current page.
==Parameters==
This action currently does not accept any parameter.
==Long description==
This action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported).
==Usage:==
##""{{delicious}}""##
==Example:==
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDelicious+Action&title=%0A%09%0A%0ADel.icio.us+Action" target="_blank" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Bookmark this page</a>""
==The code==
Save the following as ##actions/delicious.php##
%%(php;1)
<?php
/**
* Display a link to bookmark the current page to del.icio.us
*
* @package Actions
* @name Del.icio.us
*
* @author {@link http://wikka.jsnx.com/DarTar Dario Taraborelli}
* @copyright Copyright © 2005, Dario Taraborelli
* @version 0.1
* @since Wikka 1.1.X.X
*
* @access public
* @uses PageTitle()
* @uses Href()
* @output bookmark link with urlencoded page URL and title
*
* @todo move style to Wikka stylesheet
*
*/
/* Constants section */
define('ICON_PATH', 'images/icons/logos/del.icio.us_small.png');
define('STYLE', 'border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em');
define('DELICIOUS_BASE_URL', 'http://del.icio.us/post?url=');
/* i18n */
define('LINK_TEXT', 'Bookmark this page');
define('LINK_TITLE', 'Bookmark this page at del.icio.us');
//build bookmark link
$url = $this->Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '<img src="'.ICON_PATH.'" />';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" target="_blank" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
echo $output;
}
?>
%%
WikkaFolksonomy
>>This is the development page for the del.icio.us action.::c::
===Documentation===
==Short description==
Display a bookmark link for the current page.
==Parameters==
This action currently does not accept any parameter.
==Long description==
This action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported).
==Usage:==
##""{{delicious}}""##
==Example:==
""<a style="border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em" href="http://del.icio.us/post?url=http%3A%2F%2Fwikka.jsnx.com%2FDelicious+Action&title=%0A%09%0A%0ADel.icio.us+Action" target="_blank" title="Bookmark this page at del.icio.us"><img src="images/icons/logos/del.icio.us_small.png" /> Bookmark this page</a>""
==The code==
Save the following as ##actions/delicious.php##
%%(php;1)
<?php
/**
* Display a link to bookmark the current page to del.icio.us
*
* @package Actions
* @name Del.icio.us
*
* @author {@link http://wikka.jsnx.com/DarTar Dario Taraborelli}
* @copyright Copyright © 2005, Dario Taraborelli
* @version 0.1
* @since Wikka 1.1.X.X
*
* @access public
* @uses PageTitle()
* @uses Href()
* @output bookmark link with urlencoded page URL and title
*
* @todo move style to Wikka stylesheet
*
*/
/* Constants section */
define('ICON_PATH', 'images/icons/logos/del.icio.us_small.png');
define('STYLE', 'border:1px dotted #999; height:10px; color:#666; text-decoration:none; font-size:.7em');
define('DELICIOUS_BASE_URL', 'http://del.icio.us/post?url=');
/* i18n */
define('LINK_TEXT', 'Bookmark this page');
define('LINK_TITLE', 'Bookmark this page at del.icio.us');
//build bookmark link
$url = $this->Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '<img src="'.ICON_PATH.'" />';
$output = '<a style="'.STYLE.'" href="'.$delicious.'" target="_blank" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';
echo $output;
}
?>
%%
Deletions:
Documentation: xxxxxActionInfo.>>This is the development page for the xxxxx action.::c::
//This page is a **template**. It belongs to CategoryTemplate (which contains more handy templates). To create an action development page, [[http://wikka.jsnx.com/ActionTemplate/clone clone this page]] to a page called **xxxxxAction** (where xxxxx is the (capitalized) name of the action), replace all occurrences of 'xxxxx' with the name of the action and replace this paragraph with the actual content.//