Difference between revisions of "Syndicate"

From Hackepedia
Jump to navigationJump to search
(New page: If you want to help syndicate your mediawiki installation to the popular social bookmarking sites, you can create a syndicate.php file in your parent directory (the directory with LocalSet...)
 
m (grammar fix and added version num)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
If you want to help syndicate your mediawiki 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:
+
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:
  
 +
<pre>
 +
$ cat syndicate.php
 
  <div id="syndicate">
 
  <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://del.icio.us/post?url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/delicious.gif" alt="del.icio.us"></a>
Line 8: Line 10:
 
  <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://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>
 
  <a href="http://reddit.com/submit?url=<?php  global $wgTitle; echo urlencode($wgTitle->getFullURL()); ?>"><img src="images/reddit.gif" alt="reddit"></a>
 +
</pre>
  
 
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  
 
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  

Latest revision as of 23:11, 5 November 2007

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>