Syndicate

From Hackepedia
Jump to navigationJump to search

If you want to syndicate your mediawiki (version 1.11.0 in our case) installation to the popular social bookmarking sites, you can create a syndicate.php file in your parent directory (the directory with LocalSettings.php) and it may look like this:

 $ cat syndicate.php
 <div id="syndicate">
 <a href="http://del.icio.us/post?url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/delicious.gif" alt="del.icio.us"></a>
 <a href="http://digg.com/submit?phase=2&url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/digg.gif" alt="digg"></a>
 <a href="http://technorati.com/cosmos/search.html?url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/technorati.gif" alt="technorati"></a>
 <a href="http://blinklist.com/index.php?Action=Blink/addblink.php&url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/blinklist.gif" alt="blinklist"></a>
 <a href="http://furl.net/storeIt.jsp?t=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/furl.gif" alt="furl"></a>
 <a href="http://reddit.com/submit?url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/reddit.gif" alt="reddit"></a>

You will need the appropriate .gif images, which you can download from this website, but please don't link to them inline. Then you will want to

$  vi skins/MonoBook.php

where you will insert the php include line as I have:

         </div><!-- end of the left (by default at least) column -->
               <?php include("syndicate.php") ?>
                        <div class="visualClear"> </div>