I want to add this to MediaWiki. Anyone know how, or has done it? On 22/08/07, Brian Butterworth <[EMAIL PROTECTED]> wrote: > > The code had digg missing too... another version then.... > > > > <?php > > // Social bookmark code... > > > function showsocialbookmarks($strTitle) > > { > > $strPrev="<br>Bookmark with: "; > $strStyle="background-repeat: no-repeat; padding-left: 18px;"; > > $strThisURLnc= "http://" . $_SERVER['SERVER_NAME'] . > $_SERVER['REQUEST_URI']; > $strThisURI=rawurlencode ($strThisURLnc); > $strTitle=rawurlencode($strTitle); > > > $arrSocials=array( > array("icon"=>"DEL", "name"=>"del.icio.us", > "URL"=>"http://del.icio.us/post?v=4;url=$strThisURI;title=$strTitle > "), > array("icon"=>"RI", "name"=>"reddit", > "URL"=>"http://reddit.com/submit?url=$strThisURI&title=$strTitle<http://reddit.com/submit?url=$strThisURI&title=$strTitle> > "), > array("icon"=>"FB", "name"=>"facebook", > "URL"=>"http://www.facebook.com/sharer.php?u=$strThisURI > "), > array("icon"=>"SU", "name"=>"stumbleupon", > "URL"=>"http://www.stumbleupon.com/submit?url=$strThisURI&title=$strTitle<http://www.stumbleupon.com/submit?url=$strThisURI&title=$strTitle> > "), > array("icon"=>"G", "name"=>"Google", > "URL"=>"http://www.google.com/bookmarks/mark?op=edit&bkmk=$strThisURI&title=$strTitle<http://www.google.com/bookmarks/mark?op=edit&bkmk=$strThisURI&title=$strTitle> > "), > array("icon"=>"T", "name"=>"Technorati", "URL"=>" > http://technorati.com/faves?add=$strThisURI"), > array("icon"=>"SD", "name"=>"Slashdot", "URL"=>" > http://slashdot.org/bookmark.pl?url=$strThisURI&title=$strTitle<http://slashdot.org/bookmark.pl?url=$strThisURI&title=$strTitle> > "), > array("icon"=>"DIGG", "name"=>"Digg", "URL"=>" > http://digg.com/submit?phase=2&url=$strThisURI&title=$strTitle&bodytext=&topic=television > > <http://digg.com/submit?phase=2&url=$strThisURI&title=$strTitle&bodytext=&topic=television> > ") > ); > > > > foreach ($arrSocials as $arrThis) > { > > echo "$strPrev<a style=\"background-image: url('styles/images/ > bookmark_icon/ICO_" . $arrThis["icon"] . ".png'); $strStyle\" href=\"" . > $arrThis["URL"] . "\" target=\"bookmarks\">" . $arrThis["name"] . "</a>"; > $strPrev=" | "; > > } > > } > > > > ?> > > > > On 21/08/07, Brian Butterworth <[EMAIL PROTECTED]> wrote: > > > > erm.. add... > > > > ,array("icon"=>"SD", "name"=>"Slashdot", > > "URL"=>"http://slashdot.org/bookmark.pl?url=$strThisURI&title=$strTitle > > <http://slashdot.org/bookmark.pl?url=$strThisURI&title=$strTitle>") > > > > > > > > On 21/08/07, vijay chopra <[EMAIL PROTECTED] > wrote: > > > > > > No "slashdot it"? > > > http://it.slashdot.org/faq/tags.shtml#tags300 > > > > > > Soon we're going to have more social bookmarking icons than actual > > > content... > > > > > > Vijay > > > > > > On 21/08/07, Brian Butterworth <[EMAIL PROTECTED] > wrote: > > > > > > > > For any PHP people out there, here's a function I wrote to do these > > > > bookmark things... > > > > > > > > (The icons are at http://www.ukfree.tv/styles/images/bookmark_icon/ > > > > ) > > > > > > > > <?php > > > > > > > > // Social bookmark code... > > > > > > > > > > > > function showsocialbookmarks($strTitle) > > > > > > > > { > > > > > > > > $strPrev="<br>Bookmark with: "; > > > > $strStyle="background-repeat: no-repeat; padding-left: 18px;"; > > > > > > > > $strThisURLnc= "http://" . $_SERVER['SERVER_NAME'] . > > > > $_SERVER['REQUEST_URI']; > > > > $strThisURI=rawurlencode ($strThisURLnc); > > > > $strTitle=rawurlencode($strTitle); > > > > > > > > > > > > $arrSocials=array( > > > > array("icon"=>"DEL", "name"=>"del.icio.us ", > > > > "URL"=>"http://del.icio.us/post?v=4;url=$strThisURI;title=$strTitle > > > > "), > > > > array("icon"=>"RI", "name"=>"reddit", > > > > "URL"=>"http://reddit.com/submit?url=$strThisURI&title=$strTitle<http://reddit.com/submit?url=$strThisURI&title=$strTitle> > > > > "), > > > > array("icon"=>"FB", "name"=>"facebook", > > > > "URL"=>"http://www.facebook.com/sharer.php?u=$strThisURI > > > > "), > > > > array("icon"=>"SU", "name"=>"stumbleupon", > > > > "URL"=>"http://www.stumbleupon.com/submit?url=$strThisURI&title=$strTitle<http://www.stumbleupon.com/submit?url=$strThisURI&title=$strTitle> > > > > "), > > > > array("icon"=>"G", "name"=>"Google", > > > > "URL"=>"http://www.google.com/bookmarks/mark?op=edit&bkmk=$strThisURI&title=$strTitle<http://www.google.com/bookmarks/mark?op=edit&bkmk=$strThisURI&title=$strTitle> > > > > "), > > > > array("icon"=>"T", "name"=>"Technorati", "URL"=>" > > > > http://technorati.com/faves?add=$strThisURI") > > > > ); > > > > > > > > > > > > foreach ($arrSocials as $arrThis) > > > > { > > > > > > > > echo "$strPrev<a style=\"background-image: > > > > url('styles/images/bookmark_icon/ICO_" . $arrThis["icon"] . ".png'); > > > > $strStyle\" href=\"" . $arrThis["URL"] . "\" target=\"bookmarks\">" . > > > > $arrThis["name"] . "</a>"; > > > > $strPrev=" | "; > > > > > > > > } > > > > > > > > } > > > > > > > > > > > > > > > > ?> > > > > > > > > > > > > > > > > On 20/08/07, Gordon Joly < [EMAIL > > > > PROTECTED]<https://mail.google.com/mail?view=cm&tf=0&[EMAIL PROTECTED]>> > > > > wrote: > > > > > > > > > > > > > > > This is a story about the BBC News Online website. > > > > > > > > > > I read this story: > > > > > > > > > > http://news.bbc.co.uk/1/hi/world/asia-pacific/6954728.stm > > > > > > > > > > I saw that I had been invited to Digg it (and Facebook it etc).... > > > > > > > > > > Bookmark with: > > > > > > > > > > * Delicious > > > > > * Digg > > > > > * reddit > > > > > * Facebook > > > > > * StumbleUpon > > > > > > > > > > So, I did. Well, as least as far as http://del.icio.us/gordo > > > > > > > > > > And I thought the tags were very precise: > > > > > > > > > > # > > > > > recommended tags > > > > > BBC news > > > > > # ยป sort: alphabetically | by frequency > > > > > your tags > > > > > # > > > > > your network > > > > > # > > > > > popular tags > > > > > Camel australia camels animals sex > > > > > > > > > > YMMV, > > > > > > > > > > Gordo > > > > > > > > > > > > > > > -- > > > > > "Think Feynman"///////// > > > > > http://pobox.com/~gordo/ > > > > > [EMAIL PROTECTED]/// > > > > > > > > > > - > > > > > Sent via the backstage.bbc.co.uk discussion group. To > > > > > unsubscribe, please visit > > > > > http://backstage.bbc.co.uk/archives/2005/01/mailing_list.html. > > > > > Unofficial > > > > > list archive: > > > > > http://www.mail-archive.com/backstage@lists.bbc.co.uk/ > > > > > > > > > > > > > > > > > > > > > -- > > > > Please email me back if you need any more help. > > > > > > > > Brian Butterworth > > > > www.ukfree.tv > > > > > > > > > > > > > > > > -- > > Please email me back if you need any more help. > > > > Brian Butterworth > > www.ukfree.tv > > > > > > -- > Please email me back if you need any more help. > > Brian Butterworth > www.ukfree.tv > >
-- Gary Kirk