![]() |
Table of Contents [hide]
x ∞
I added this to the bottom. See Monetizing MediaWiki – Hacking a Skin
Get the social bookmarking icons ∞
Just take them from the bottom of this site and put them on yours.
Prepare your list of links ∞
2020-11-05 – I believe all of this is this: https://www.mediawiki.org/wiki/Extension:Social_Bookmarking
/your_website/skins/your_directory/social_bookmarking.php
Spoiler
<?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } function social_bookmarking_name() { // ---- CUSTOMIZE THIS ---- // If anyone knows how to return the actual page title, please let me know! return 'example.com'; } function social_bookmarking_images() { // ---- CUSTOMIZE THIS ---- return '/skins/my-custom/social_bookmarking_icons/'; } ?> <table cellpadding="1" cellspacing="0" border="0" align="center"> <tr> <td><a href="http://del.icio.us/post?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Del.ico.us" target="blank"><img src="<?php print social_bookmarking_images(); ?>delicious.png" alt="Add <?php print social_bookmarking_name(); ?> to Del.ico.us" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://digg.com/submit?phase=2&url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to digg" target="blank"><img src="<?php print social_bookmarking_images(); ?>digg.png" alt="Add <?php print social_bookmarking_name(); ?> to digg" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://furl.net/storeIt.jsp?t=TITLE&u=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to FURL" target="blank"><img src="<?php print social_bookmarking_images(); ?>furl.png" alt="Add <?php print social_bookmarking_name(); ?> to FURL" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://blinklist.com/index.php?Action=Blink/addblink.php&Name=TITLE&Url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to blinklist" target="blank"><img src="<?php print social_bookmarking_images(); ?>blinklist.png" alt="Add <?php print social_bookmarking_name(); ?> to blinklist" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://reddit.com/submit?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to reditt" target="blank"><img src="<?php print social_bookmarking_images(); ?>reddit.png" alt="Add <?php print social_bookmarking_name(); ?> to reditt" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php print curPageURL(); ?>&t=TITLE" title="Add <?php print social_bookmarking_name(); ?> to Yahoo My Web" target="blank"><img src="<?php print social_bookmarking_images(); ?>yahoo_myweb.png" alt="Add <?php print social_bookmarking_name(); ?> to Yahoo My Web" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://ma.gnolia.com/bookmarklet/add?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Ma.gnolia" target="blank"><img src="<?php print social_bookmarking_images(); ?>magnolia.png" alt="Add <?php print social_bookmarking_name(); ?> to Ma.gnolia" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.stumbleupon.com/refer.php?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Stumble Upon" target="blank"><img src="<?php print social_bookmarking_images(); ?>stumbleupon.png" alt="Add <?php print social_bookmarking_name(); ?> to Stumble Upon" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Google Bookmarks" target="blank"><img src="<?php print social_bookmarking_images(); ?>google.png" alt="Add <?php print social_bookmarking_name(); ?> to Google Bookmarks" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.spurl.net/spurl.php?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Spurl" target="blank"><img src="<?php print social_bookmarking_images(); ?>spurl.png" alt="Add <?php print social_bookmarking_name(); ?> to Spurl" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.rojo.com/add-subscription/?resource=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Rojo" target="blank"><img src="<?php print social_bookmarking_images(); ?>rojo.png" alt="Add <?php print social_bookmarking_name(); ?> to Rojo" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.shadows.com/shadows.aspx?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Shadows" target="blank"><img src="<?php print social_bookmarking_images(); ?>shadows.png" alt="Add <?php print social_bookmarking_name(); ?> to Shadows" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.simpy.com/simpy/LinkAdd.do?href=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Simpy" target="blank"><img src="<?php print social_bookmarking_images(); ?>simpy.png" alt="Add <?php print social_bookmarking_name(); ?> to Simpy" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://co.mments.com/track?url=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Co.mments" target="blank"><img src="<?php print social_bookmarking_images(); ?>comments.png" alt="Add <?php print social_bookmarking_name(); ?> to Co.mments" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.scuttle.org/bookmarks.php/maxpower?action=add&address=<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Scuttle" target="blank"><img src="<?php print social_bookmarking_images(); ?>scuttle.png" alt="Add <?php print social_bookmarking_name(); ?> to Scuttle" style='border:0px;width:18px;height:18px;' /></a></td> <td><a href="http://www.bloglines.com/sub/<?php print curPageURL(); ?>" title="Add <?php print social_bookmarking_name(); ?> to Bloglines" target="blank"><img src="<?php print social_bookmarking_images(); ?>bloglines.png" alt="Add <?php print social_bookmarking_name(); ?> to Bloglines" style='border:0px;width:18px;height:18px;' /></a></td> </tr>
Place the block in your skin ∞
Search for this:
<?php } // Generate additional footer links ?>
And place this code underneath
<?php require("my-custom/social_bookmarking.php"); ?>
Be warned, your MonoBook.php will be overwritten when you update MediaWiki, so back up this file. Or better yet, re-apply your changes in case they made legit updates to the skin.


ported
it appears that there was some spamming happening, so I cleaned the code up a bit..