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

Revision [16891]

Edited on 2007-05-31 23:27:02 by DarTar [Reverted]
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
Deletions:
""<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


Revision [16689]

Edited on 2007-05-31 10:36:27 by EzrHhd [Reverted]
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:
""<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


Revision [11678]

Edited on 2005-11-06 16:51:51 by DarTar [changing text to please Nils :)]
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');
Deletions:
""<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>""
define('LINK_TEXT', 'Bookmark this page');


Revision [11624]

Edited on 2005-10-27 10:45:59 by DarTar [new bookmark action]
Additions:
=====Del.icio.us Bookmark Action=====
Deletions:
=====Del.icio.us Action=====


Revision [11623]

Edited on 2005-10-27 10:37:23 by DarTar [new bookmark action]
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>';
Deletions:
""<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>""
$output = '<a style="'.STYLE.'" href="'.$delicious.'" target="_blank" title="'.LINK_TITLE.'">'.$icon.' '.LINK_TEXT.'</a>';


Revision [11622]

Edited on 2005-10-27 10:29:55 by DarTar [new bookmark action]
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:
Save the following as ##actions/delicious.php##


Revision [11621]

Edited on 2005-10-27 10:27:24 by DarTar [new bookmark action]
Additions:
===The code===
Deletions:
==The code==


Revision [11620]

Edited on 2005-10-27 10:27:02 by DarTar [new bookmark action]
Additions:
~-WikkaFolksonomy
~-UnderDevelopment
Deletions:
WikkaFolksonomy


Revision [11619]

Edited on 2005-10-27 10:24:24 by DarTar [new bookmark action]
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:
""<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>""


Revision [11618]

Edited on 2005-10-27 10:22:35 by DarTar [new bookmark action]
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:
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.


Revision [11617]

Edited on 2005-10-27 10:21:50 by DarTar [new bookmark action]
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
Deletions:
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).


Revision [11616]

Edited on 2005-10-27 10:18:04 by DarTar [new action]
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:
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).


Revision [11615]

Edited on 2005-10-27 10:17:51 by DarTar [new action]
Additions:
Display a del.icio.us bookmark link for the current page.
* Display a link to bookmark the current page at del.icio.us
Deletions:
Display a bookmark link for the current page.
* Display a link to bookmark the current page to del.icio.us


Revision [11611]

Edited on 2005-10-27 10:14:28 by DarTar [new action]
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;
}
?>
%%
Deletions:
=====xxxxx Action=====
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.//


Revision [11605]

The oldest known version of this page was created on 2005-10-27 10:03:22 by DarTar [new action]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki