<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pliggs &#187; Hacks</title>
	<atom:link href="http://www.pliggs.com/category/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pliggs.com</link>
	<description>All things Pligg</description>
	<lastBuildDate>Wed, 28 Apr 2010 16:47:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Facebook Like button and Pligg</title>
		<link>http://www.pliggs.com/facebook-button-pligg/</link>
		<comments>http://www.pliggs.com/facebook-button-pligg/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 01:50:08 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[buttons]]></category>
		<category><![CDATA[facebook]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=1038</guid>
		<description><![CDATA[
			
				
			
		
POST UPDATED! &#8211; We now not only have Google Buzz with their own button, but, now Facebook has launched their own finally.  In this post I will show you how to add the Facebook &#8220;Like&#8221; button your Pligg install.

Open link_summary.tpl:
Determine where you want the button to appear, make sure you allow enough space, at [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Ffacebook-button-pligg%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Ffacebook-button-pligg%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>POST UPDATED!</strong> &#8211; We now not only have Google Buzz with their own button, but, now Facebook has launched their own finally.  In this post I will show you how to add the Facebook &#8220;Like&#8221; button your Pligg install.</p>
<p><span id="more-1038"></span></p>
<p>Open link_summary.tpl:</p>
<p>Determine where you want the button to appear, make sure you allow enough space, at least 300px, as the button will show not only a &#8220;Like&#8221; button but who has liked it as well.</p>
<p><img src="http://www.pliggs.com/wp-content/uploads/2010/04/facebooklike-300x88.png" alt="Facebook Like button and Pligg" title="Facebook Like button and Pligg" width="300" height="88" class="aligncenter size-medium wp-image-1039" /></p>
<p>Once you have determined the right location add the following code:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href={$url}&amp;amp;layout=standard;&amp;amp;show_faces=false&amp;amp;width=650&amp;amp;action=like&amp;amp;font=arial&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;&quot;&gt;&lt;/iframe&gt;<br />
&nbsp;</div>
<p>Special thanks to <a href="http://www.ruhanirabin.com/how-to-add-facebook-like-button-to-wordpress-posts/?utm_source=faqpal.com">Ruhani Rabin</a> for the original code.</p>
<p><strong>UPDATE:</strong></p>
<p>One of our readers, <a href="http://www.facebook.com/people/Giuseppe-Dispensa/100000720417453">Giuseppe Dispensa</a> asked if it was possible to the &#8220;Like&#8221; when posted to Facebook, link to the story page as opposed to the URL of the submission.  At first we didn&#8217;t think of this, but, if you would like to send the traffic to you first and then the submissio URL change the following part of the code:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=&lt;strong&gt;{$url}&amp;amp;layout=standard;&amp;amp;show_faces=false&amp;amp;width=650&amp;amp;action=like&amp;amp;font=arial&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;&quot;&gt;&lt;/iframe&gt;<br />
&nbsp;</div>
<p>to:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;iframe src=&quot;http://www.facebook.com/plugins/like.php?href=http://www.YOURDOMAINNAME.com{$story_url}&amp;amp;layout=standard;&amp;amp;show_faces=false&amp;amp;width=650&amp;amp;action=like&amp;amp;font=arial&amp;amp;colorscheme=light&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; allowTransparency=&quot;true&quot; style=&quot;border:none; margin: 5px 0 0 5px; overflow:hidden; width:650px; height: 25px;&quot;&gt;&lt;/iframe&gt;<br />
&nbsp;</div>
<p>make sure you enter your domain name where we have YOURDOMAINNAME.</p>
<p>Have fun, what method will you be using?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/facebook-button-pligg/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Tagging links with Googles UTM</title>
		<link>http://www.pliggs.com/tagging-links-googles-utm/</link>
		<comments>http://www.pliggs.com/tagging-links-googles-utm/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 01:01:25 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=1020</guid>
		<description><![CDATA[
			
				
			
		
I am currently testing a new way to get your traffic to links posted on your Pligg install noticed better.

Most bloggers use Google Analytics, as it is by far the best FREE analytics service today.

Google Analytics uses a UTM (Urchin Tracking Module) tag so users can add information to the end of their links so [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Ftagging-links-googles-utm%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Ftagging-links-googles-utm%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I am currently testing a new way to get your traffic to links posted on your Pligg install noticed better.</p>
<p><span id="more-1020"></span></p>
<p>Most bloggers use Google Analytics, as it is by far the best FREE analytics service today.</p>
<p><img src="http://www.pliggs.com/wp-content/uploads/2009/12/1_google_logo-300x211.jpg" alt="Google Analytics and Pligg" title="Google Analytics and Pligg" width="300" height="211" class="aligncenter size-medium wp-image-1021" /></p>
<p>Google Analytics uses a UTM (Urchin Tracking Module) tag so users can add information to the end of their links so they know better where their traffic is coming from.  This is typically used for tracking banner ads or text links, but it can be used for cases.</p>
<p>Why not add it the links added to your Pligg install?</p>
<p><strong>To add it, simply open link_summary.tpl:</strong></p>
<div class="dean_ch" style="white-space: wrap;">
&lt;a href=&quot;{$url}&quot; {if $open_in_new_window eq true} target=&quot;_blank&quot;{/if} {if $story_status neq &quot;published&quot;}rel=&quot;nofollow&quot;{/if}&gt;{$title_short}&lt;/a&gt;<br />
&nbsp;</div>
<p><strong>and change it to,</strong></p>
<div class="dean_ch" style="white-space: wrap;">
&lt;a href=&quot;{$url}?utm_source=YOURDOMAIN.com&quot; {if $open_in_new_window eq true} target=&quot;_blank&quot;{/if} {if $story_status neq &quot;published&quot;}rel=&quot;nofollow&quot;{/if}&gt;{$title_short}&lt;/a&gt;<br />
&nbsp;</div>
<p>This will change the normal outbound link:</p>
<p><strong>http://www.shoutmeloud.com/10-best-way-to-check-your-internet-speed.html</strong></p>
<p>to<br />
<strong></p>
<p>http://www.shoutmeloud.com/10-best-way-to-check-your-internet-speed.html?utm_source=YOURDOMAIN.com</strong></p>
<p>In the Analytic panel for that site, if they use Google, they will see your Pligg install listed as a traffic referral much easier.</p>
<p>I have only been using this method for a week, so I am not sure if it will help with getting more traffic or not, but I will do a followup post in a week or two.</p>
<p>What do you think of the idea?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/tagging-links-googles-utm/feed/</wfw:commentRss>
		<slash:comments>93</slash:comments>
		</item>
		<item>
		<title>Adding a Digg style screenshot to Wistie</title>
		<link>http://www.pliggs.com/adding-digg-style-screenshot-wistie/</link>
		<comments>http://www.pliggs.com/adding-digg-style-screenshot-wistie/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 22:46:55 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=1002</guid>
		<description><![CDATA[
			
				
			
		
In this tutorial I will show you how easy it is to add a screenshot to each submission just like Digg.


There are only 2 files to edit for this hack, link_summary.tpl and style.css.
Open link_summary.tpl and find:

&#160; &#160; &#160; &#160; &#60;div class=&#34;storycontent&#34;&#62;
&#160; &#160; &#160; &#160; {checkActionsTpl location=&#34;tpl_link_summary_pre_story_content&#34;}
&#160; &#160; &#160; &#160; {if $pagename eq &#34;story&#34;}{checkActionsTpl location=&#34;tpl_pligg_story_body_start_full&#34;}{else}{checkActionsTpl location=&#34;tpl_pligg_story_body_start&#34;}{/if}
&#160; [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fadding-digg-style-screenshot-wistie%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fadding-digg-style-screenshot-wistie%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial I will show you how easy it is to add a screenshot to each submission just like Digg.</p>
<p><span id="more-1002"></span></p>
<p><img src="http://www.pliggs.com/wp-content/uploads/2009/11/diggshot-300x85.PNG" alt="Digg style screenshot for Pligg" title="Digg style screenshot for Pligg" width="300" height="85" class="aligncenter size-medium wp-image-1003" /></p>
<p>There are only 2 files to edit for this hack, link_summary.tpl and style.css.</p>
<p>Open link_summary.tpl and find:</p>
<div class="dean_ch" style="white-space: wrap;">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;storycontent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; {checkActionsTpl location=&quot;tpl_link_summary_pre_story_content&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; {if $pagename eq &quot;story&quot;}{checkActionsTpl location=&quot;tpl_pligg_story_body_start_full&quot;}{else}{checkActionsTpl location=&quot;tpl_pligg_story_body_start&quot;}{/if}</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; {if $viewtype neq &quot;short&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;news-body-text&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span id=&quot;ls_contents-{$link_shakebox_index}&quot;&gt;<br />
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</div>
<p>change it to:</p>
<div class="dean_ch" style="white-space: wrap;">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;storycontent&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; {checkActionsTpl location=&quot;tpl_link_summary_pre_story_content&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; {if $pagename eq &quot;story&quot;}{checkActionsTpl location=&quot;tpl_pligg_story_body_start_full&quot;}{else}{checkActionsTpl location=&quot;tpl_pligg_story_body_start&quot;}{/if}</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; {if $viewtype neq &quot;short&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;news-body-text&quot;&gt;</p>
<p>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;img src=&quot;http://images.websnapr.com/?url={$url_short}&amp;size=T&quot; class=&quot;storythumb&quot;/&gt;</p>
<p>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span id=&quot;ls_contents-{$link_shakebox_index}&quot;&gt;<br />
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</div>
<p>Save.</p>
<p>Open style.css and add anywhere:</p>
<p><code><br />
.storythumb {<br />
float:right;<br />
border: 1px solid #b7cce0;<br />
padding: 3px;<br />
}<br />
</code></p>
<p>That&#8217;s it, I have websnapr as default screenshot supplier, though I always recommend using <a href="http://www.shrinktheweb.com" title="Shrink the Web">Shrink the Web</a>.</p>
<p>You can see a demo over at <a href="http://www.weblinkdepot.com/" title="Web Link Depot">Web Link Depot</a>.</p>
<p>As always, post your thoughts and questions below.</p>
<p>You can also follow me on <a href="http://twitter.com/Pliggs">Twitter</a>, where I will always help one on one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/adding-digg-style-screenshot-wistie/feed/</wfw:commentRss>
		<slash:comments>76</slash:comments>
		</item>
		<item>
		<title>Auto-publish to Twitter</title>
		<link>http://www.pliggs.com/autopublish-twitter/</link>
		<comments>http://www.pliggs.com/autopublish-twitter/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:44:42 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=995</guid>
		<description><![CDATA[
			
				
			
		
In this tutorial I will show you how to have your stories sent to the published page automatically Tweeted to Twitter using whatever Twitter account you want.

I have already shown you how to use Twitterfeed and Bit.ly to auto publish your published submissions, now lets cut out the middleman, Twitterfeed.
The following code was sent to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fautopublish-twitter%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fautopublish-twitter%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial I will show you how to have your stories sent to the published page automatically Tweeted to Twitter using whatever Twitter account you want.</p>
<p><span id="more-995"></span></p>
<p>I have already shown you how to use <a href="http://www.twitterfeed.com">Twitterfeed</a> and <a href="http://bit.ly">Bit.ly</a> to <a href="http://www.pliggs.com/auto-feed-pligg-to-twitter/">auto publish</a> your published submissions, now lets cut out the middleman, Twitterfeed.</p>
<p><strong>The following code was sent to us by Jorge from the good folks at <a href="http://www.bierzeame.com" title="Bierzeame, Noticias de El Bierzo">Bierzeame</a>.</strong></p>
<p><strong>Open your libs/link.php file and find:</strong><br />
<code>	function publish() {<br />
		if(!$this-&gt;read) $this-&gt;read_basic();<br />
		$this-&gt;published_date = time();</p>
<p>		totals_adjust_count($this-&gt;status, -1);<br />
		totals_adjust_count('published', 1);</p>
<p>		$this-&gt;status = 'published';<br />
		$this-&gt;store_basic();<br />
	}</code><br />
<strong>change it to:</strong><br />
<code>	function publish() {<br />
		if(!$this-&gt;read) $this-&gt;read_basic();<br />
		$this-&gt;published_date = time();</p>
<p>		totals_adjust_count($this-&gt;status, -1);<br />
		totals_adjust_count('published', 1);</p>
<p>		$this-&gt;status = 'published';<br />
		$this-&gt;twitter();<br />
		$this-&gt;store_basic();<br />
	}</code><br />
<strong>find:</strong><br />
<code><br />
	function username() {</code><br />
<strong>just before it add:</strong><br />
<code>  function twitter(){<br />
    global $db;</p>
<p>    $id = $this-&gt;id;<br />
    if(!is_numeric($id)){return false;}<br />
    if(($link = $db-&gt;get_row("SELECT link_title FROM " . table_links . " WHERE link_id = $id"))) {</p>
<p>      $message = $link-&gt;link_title;<br />
      $toshort = getmyFullurl("storyURL", $this-&gt;category_name(), urlencode($link-&gt;link_title_url), $id);</p>
<p>      $bitly = "http://api.bit.ly/shorten?version=2.0.1&amp;longUrl=".urlencode($toshort)."&amp;login=BITLYUSERNAME&amp;apiKey=YOURBITLYAPICODE&amp;history=1";</p>
<p>      $bitlyresponse = file_get_contents($bitly);</p>
<p>      $jsonresponse = @json_decode($bitlyresponse,true);</p>
<p>      $urlshort = $jsonresponse['results'][$toshort]['shortUrl'];</p>
<p>      $messagelen = strlen($message);<br />
      $urllen = strlen($urlshort);<br />
      $totallen = $messagelen+$urllen+1;</p>
<p>      if ($totallen&gt;140){<br />
        $urllen = $urllen+4;<br />
        $message = substr($message,0,139-$urllen);<br />
        $message = $message."...";<br />
      }</p>
<p>      $message = $message." ".$urlshort;</p>
<p>      $args= 'status='.urlencode($message);</p>
<p>      $twit = curl_init();<br />
      curl_setopt($twit, CURLOPT_URL, 'http://twitter.com/statuses/update.xml');<br />
      curl_setopt($twit, CURLOPT_VERBOSE, 0);<br />
      curl_setopt($twit, CURLOPT_RETURNTRANSFER, 1);<br />
      curl_setopt($twit, CURLOPT_VERBOSE, 0); // no imprimir nada<br />
      curl_setopt($twit, CURLOPT_USERPWD, "TWITTERUSERNAME:TWITTERPASSWORD");<br />
      curl_setopt($twit, CURLOPT_POSTFIELDS, $args);<br />
      curl_setopt($twit, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);<br />
      curl_setopt($twit, CURLOPT_POST, 1);</p>
<p>      $result = curl_exec($twit);<br />
      $http_status = curl_getinfo($twit, CURLINFO_HTTP_CODE);</p>
<p>      curl_close($twit);</p>
<p>      if( $http_status != "200" ) {<br />
          return false;<br />
      }</p>
<p>      return true;<br />
    }<br />
  }</code><br />
<strong>Save.</strong></p>
<p>That&#8217;s it.  Now every story that is sent to the published page will auto Tweet, giving your members another reason to submit.</p>
<p><strong>Make sure you edit your Twitter login details and your Bit.ly details.</strong></p>
<p>It will shorten the submission URL using Bit.ly and send the user when clicked on Twitter to your story page.  This will also track how many clicks each one gets which you can check when you login to Bit.ly.</p>
<p><img class="aligncenter size-medium wp-image-996" title="bitlyclicks" src="http://www.pliggs.com/wp-content/uploads/2009/11/bitlyclicks-300x66.PNG" alt="bitlyclicks" width="300" height="66" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/autopublish-twitter/feed/</wfw:commentRss>
		<slash:comments>111</slash:comments>
		</item>
		<item>
		<title>Adding SexyBookmarks to Pligg</title>
		<link>http://www.pliggs.com/adding-sexybookmarks-pligg/</link>
		<comments>http://www.pliggs.com/adding-sexybookmarks-pligg/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:32:49 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=991</guid>
		<description><![CDATA[
			
				
			
		
In this tutorial I will show you how to add the popular Wordpress plugin SexyBookmarks to your Pligg install, adding that extra something to your story pages.


Sexy Bookmarks which I first saw used on a Wordpress blog is one of the best methods to ask your users to share something on social networking sites.  [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fadding-sexybookmarks-pligg%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fadding-sexybookmarks-pligg%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>In this tutorial I will show you how to add the popular Wordpress plugin SexyBookmarks to your Pligg install, adding that extra something to your story pages.</p>
<p><span id="more-991"></span></p>
<p><img src="http://www.pliggs.com/wp-content/uploads/2009/10/sexbookmarks-300x62.jpg" alt="Sexy Books" title="Sexy Books" width="300" height="62" class="aligncenter size-medium wp-image-992" /></p>
<p><a href="http://sexybookmarks.net">Sexy Bookmarks</a> which I first saw used on a Wordpress blog is one of the best methods to ask your users to share something on social networking sites.  It uses the power of jQuery for that added flair.</p>
<p>My good friend Brian over at <a href="http://www.seomkt.com/sexy-bookmarks-adds-blog-engage/">Blog Engage</a> managed to get his site added to Sexy Bookmarks and I will soon be attempting to have one of my own sites added, so I thought I would try to use it on a test Pligg.</p>
<p>Luckily, I came across a post by Naeem Noor over at <a href="http://www.cssreflex.com">CSS Reflex</a> where he had successfully added it to Blogger using 3 chunks of code.  </p>
<p>For this tutorial I simply took what Naeem used and adapted it to work in Pligg.</p>
<p><strong>Open pligg.tpl:</p>
<p>add the following just before the closing head tag:</strong></p>
<div class="dean_ch" style="white-space: wrap;">
{literal}&lt;script src=&#8217;http://code.jquery.com/jquery-latest.js&#8217; type=&#8217;text/javascript&#8217;/&gt;&lt;script type=&#8217;text/javascript&#8217;&gt;jQuery(document).ready(function() {// xhtml 1.0 strict way of using target _blankjQuery(&#8216;.sexy-bookmarks a.external&#8217;).attr(&quot;target&quot;, &quot;_blank&quot;);// this block sets the auto vertical expand when there are more than// one row of bookmarks.var sexyBaseHeight=jQuery(&#8216;.sexy-bookmarks&#8217;).height();var sexyFullHeight=jQuery(&#8216;.sexy-bookmarks ul.socials&#8217;).height();if (sexyFullHeight&gt;sexyBaseHeight) {jQuery(&#8216;.sexy-bookmarks-expand&#8217;).hover(function() {jQuery(this).animate({height: sexyFullHeight+&#8217;px&#8217;}, {duration: 400, queue: false});},function() {jQuery(this).animate({height: sexyBaseHeight+&#8217;px&#8217;}, {duration: 400, queue: false});});}// autocenteringif (jQuery(&#8216;.sexy-bookmarks-center&#8217;)) {var sexyFullWidth=jQuery(&#8216;.sexy-bookmarks&#8217;).width();var sexyBookmarkWidth=jQuery(&#8216;.sexy-bookmarks:first ul.socials li&#8217;).width();var sexyBookmarkCount=jQuery(&#8216;.sexy-bookmarks:first ul.socials li&#8217;).length;var numPerRow=Math.floor(sexyFullWidth/sexyBookmarkWidth);var sexyRowWidth=Math.min(numPerRow, sexyBookmarkCount)*sexyBookmarkWidth;var sexyLeftMargin=(sexyFullWidth-sexyRowWidth)/2;jQuery(&#8216;.sexy-bookmarks-center&#8217;).css(&#8216;margin-left&#8217;, sexyLeftMargin+&#8217;px&#8217;);}});&lt;/script&gt; </p>
<p>&lt;style type=&quot;text/css&quot;&gt;div.sexy-bookmarks{margin:20px 0 0 0; border: 0;outline: none;clear:both !important}div.sexy-bookmarks-expand{height:29px; overflow:hidden}.sexy-bookmarks-bg-sexy, .sexy-bookmarks-bg-love{background-image:url(&#8216;http://www.YOURPLIGGSITE.com/templates/wistie/images/sexytrans.png&#8217;) !important; background-repeat:no-repeat}div.sexy-bookmarks-bg-love{padding:26px 0 0 10px; background-position:left -1148px !important}div.sexy-bookmarks ul.socials{width:100% !important; margin:0 &nbsp;!important; padding:0 !important; float:left}div.sexy-bookmarks ul.socials li{display:inline !important; float:left !important; list-style-type:none !important; margin:0 !important; height:29px !important; width:60px !important; cursor:pointer !important; padding:0 !important}div.sexy-bookmarks ul.socials li:before, div.sexy-bookmarks ul.socials li:after, div.sexy-bookmarks ul.socials li a:before, div.sexy-bookmarks ul.socials li a:after{content:none !important}div.sexy-bookmarks ul.socials a{display:block !important; width:60px !important; height:29px !important; text-indent:-9999px !important; background-color:transparent !important}div.sexy-bookmarks ul.socials a:hover{background-color:transparent !important}.sexy-digg, .sexy-digg:hover, .sexy-reddit, .sexy-reddit:hover, .sexy-stumbleupon, .sexy-stumbleupon:hover, .sexy-delicious, .sexy-delicious:hover, .sexy-yahoobuzz, .sexy-yahoobuzz:hover, .sexy-blinklist, .sexy-blinklist:hover, .sexy-technorati, .sexy-technorati:hover, .sexy-facebook, .sexy-facebook:hover, .sexy-twitter, .sexy-twitter:hover, .sexy-myspace, .sexy-myspace:hover, .sexy-mixx, .sexy-mixx:hover, .sexy-scriptstyle, .sexy-scriptstyle:hover, .sexy-designfloat, .sexy-designfloat:hover, .sexy-comfeed, .sexy-comfeed:hover, .sexy-newsvine, .sexy-newsvine:hover, .sexy-linkedin, .sexy-linkedin:hover, .sexy-google, .sexy-google:hover, .sexy-friendfeed, .sexy-friendfeed:hover{background:url(&#8216;http://www.YOURPLIGGSITE.com/templates/wistie/images/sexy-sprite.png&#8217;) no-repeat !important;border: 0;outline: none;margin-top:20px;}.sexy-digg{background-position:-980px bottom !important}.sexy-digg:hover{background-position:-980px top !important}.sexy-reddit{background-position:-700px bottom !important}.sexy-reddit:hover{background-position:-700px top !important}.sexy-stumbleupon{background-position:-630px bottom !important}.sexy-stumbleupon:hover{background-position:-630px top !important}.sexy-delicious{background-position:-1190px bottom !important}.sexy-delicious:hover{background-position:-1190px top !important}.sexy-yahoobuzz{background-position:-1120px bottom !important}.sexy-yahoobuzz:hover{background-position:-1120px top !important}.sexy-blinklist{background-position:-1260px bottom !important}.sexy-blinklist:hover{background-position:-1260px top !important}.sexy-technorati{background-position:-560px bottom !important}.sexy-technorati:hover{background-position:-560px top !important}.sexy-myspace{background-position:-770px bottom !important}.sexy-myspace:hover{background-position:-770px top !important}.sexy-twitter{background-position:-490px bottom !important}.sexy-twitter:hover{background-position:-490px top !important}.sexy-facebook{background-position:-1330px bottom !important}.sexy-facebook:hover{background-position:-1330px top !important}.sexy-mixx{background-position:-840px bottom !important}.sexy-mixx:hover{background-position:-840px top !important}.sexy-scriptstyle{background-position:-280px bottom !important}.sexy-scriptstyle:hover{background-position:-280px top !important}.sexy-designfloat{background-position:-1050px bottom !important}.sexy-designfloat:hover{background-position:-1050px top !important}.sexy-newsvine{background-position:left bottom !important}.sexy-newsvine:hover{background-position:left top !important}.sexy-google{background-position:-210px bottom !important}.sexy-google:hover{background-position:-210px top !important}.sexy-comfeed{background-position:-420px bottom !important}.sexy-comfeed:hover{background-position:-420px top !important}.sexy-linkedin{background-position:-70px bottom !important}.sexy-linkedin:hover{background-position:-70px top !important}.sexy-friendfeed{background-position:-1750px bottom !important}.sexy-friendfeed:hover{background-position:-1750px top !important}.sexy-link{ margin-left:25px; float:left}.sexy-link A{padding:10px 0; width:470px; text-align:right; border:0; outline:none}&lt;/style&gt;{/literal}</p>
<p>&nbsp;</p></div>
<p><strong>Save.</p>
<p>Open link_summary.tpl</p>
<p>add the following anywhere you want the buttons to appear:</strong></p>
<div class="dean_ch" style="white-space: wrap;">
{if $pagename eq &quot;story&quot;}<br />
&lt;div class=&#8217;sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-love&#8217; style=&#8217;margin:20px 0 0 0 !important; padding:25px 0 0 10px !important; height:60px;/*the height of the icons (29px)*/ display:block !important; clear:both !important;&#8217;&gt;</p>
<p>&lt;ul class=&#8217;socials&#8217;&gt;</p>
<p>&lt;li class=&#8217;sexy-delicious&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://del.icio.us/post?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on del.icio.us&#8217;&gt;Share this on del.icio.us&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-digg&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://digg.com/submit?phase=2&amp;amp;url={$url}&amp;amp;title= {$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Digg this!&#8217;&gt;Digg this!&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-stumbleupon&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.stumbleupon.com/submit?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Stumble upon something good? Share it on StumbleUpon&#8217;&gt;Stumble upon something good? Share it on StumbleUpon&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-reddit&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://reddit.com/submit?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Reddit&#8217;&gt;Share this on Reddit&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-google&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.google.com/bookmarks/mark?op=add&amp;amp;bkmk={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Add this to Google Bookmarks&#8217;&gt;Add this to Google Bookmarks&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-twitter&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://twitter.com/home?status=Reading: {$title_short} &#8211; &nbsp;{$url} &nbsp;(@NAME)&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Tweet This!&#8217;&gt;Tweet This!&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-facebook&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.facebook.com/sharer.php?u={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Facebook&#8217;&gt;Share this on Facebook&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-mixx&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.mixx.com/submit?page_url={$url}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Mixx&#8217;&gt;Share this on Mixx&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-yahoobuzz&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://buzz.yahoo.com/submit/?submitUrl={$url}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Buzz up!&#8217;&gt;Buzz up!&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-linkedin&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.linkedin.com/shareArticle?mini=true&amp;amp;url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Linkedin&#8217;&gt;Share this on Linkedin&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-designfloat&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.designfloat.com/submit.php?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Submit this to DesignFloat&#8217;&gt;Submit this to DesignFloat&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-technorati&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://technorati.com/faves?add={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Technorati&#8217;&gt;Share this on Technorati&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-scriptstyle&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://scriptandstyle.com/submit?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Submit this to Script &amp;amp; Style&#8217;&gt;Submit this to Script &amp;amp; Style&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-blinklist&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;amp;Url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on Blinklist&#8217;&gt;Share this on Blinklist&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-friendfeed&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://friendfeed.com/?url={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Share this on FriendFeed&#8217;&gt;Share this on FriendFeed&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;li class=&#8217;sexy-newsvine&#8217;&gt;&lt;a class=&#8217;external&#8217; href=&#8217;http://www.newsvine.com/_tools/seed&amp;amp;save?u={$url}&amp;amp;title={$title_short}&#8217; rel=&#8217;nofollow&#8217; title=&#8217;Seed this on Newsvine&#8217;&gt;Seed this on Newsvine&lt;/a&gt;&lt;/li&gt;</p>
<p>&lt;/ul&gt;</p>
<p>&lt;div style=&#8217;clear:both;&#8217;/&gt;&lt;/div&gt;&lt;div class=&#8217;sexy-link&#8217;&gt; Widget by &lt;a href=&#8217;http://www.cssreflex.com/&#8217; title=&#8217;Web Design Blog, Blogger Hacks and Blogger templates&#8217;&gt;Css Reflex &lt;/a&gt;|&lt;a href=&#8217;http://www.tutzone.org/&#8217; title=&#8217;Tutorials, Rare Downloads, Link Heaven, Tips Tricks, Hacks, Make How, Blogger Tricks And Tutorials, Internet, News, And Many More&#8217;&gt; TutZone&lt;/a&gt;|&lt;a href=&#8217;http://www.pliggs.org/&#8217; title=&#8217;All things Pligg&#8217;&gt; Pliggs&lt;/a&gt;&lt;/div&gt;{/if}</p>
<p>
&lt;div style=&quot;clear:both;margin-bottom:20px;&quot;&gt; &lt;/div&gt;<br />
&nbsp;</div>
<p><strong>Save.</p>
<p>I added them just before:</strong></p>
<div class="dean_ch" style="white-space: wrap;">
&nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;storyfooter&quot;&gt;<br />
&lt;/div&gt;</div>
<p>in the wistie template for the latest build of Pligg.</p>
<p>There are 2 images for this work as well, download them and upload to your images directory.</p>
Note: There is a file embedded within this post, please visit this post to download the file.<br />
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>In the chunk of code you added to link_summary.tpl, the images are called, you will need to edit those 2 lines for the location of the images for your site.</strong></p>
<p>I have them working on test Pligg site at <a href="http://www.weblinkdepot.com">Weblink Depot</a></p>
<p>Again, a big thanks to Josh at <a href="http://sexybookmarks.net">Sexy Bookmarks</a> for creating it in the first place, and to <a href="http://www.cssreflex.com">Naeem Noor</a> for giving me a starting place.</p>
<p>And finally, big congrats to Brian at <a href="http://www.blogengage.com">Blog Engage</a> on this milestone, make sure you check out his site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/adding-sexybookmarks-pligg/feed/</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>jQuery Pligg Tooltip</title>
		<link>http://www.pliggs.com/pligg-tooltip/</link>
		<comments>http://www.pliggs.com/pligg-tooltip/#comments</comments>
		<pubDate>Sun, 10 May 2009 19:06:56 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=892</guid>
		<description><![CDATA[
			
				
			
		
jQuery has really progressed the web development world to the next level.  I am going to show you how to add a simple jQuery feature to your Pligg install that will add a nifty feature that your users will definitely find useful.

One of the problems with most social media websites, like Digg, is you [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fpligg-tooltip%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fpligg-tooltip%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>jQuery has really progressed the web development world to the next level.  I am going to show you how to add a simple jQuery feature to your Pligg install that will add a nifty feature that your users will definitely find useful.</p>
<p><span id="more-892"></span></p>
<p>One of the problems with most social media websites, like Digg, is you don&#8217;t always know if the link you are visiting will take you to something good or not.</p>
<p>That&#8217;s what jQuery and Tooltip come in.</p>
<p>I came across this little <a title="jQuery Tooltip" href="http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery" target="_blank">script</a> when I was trying to find the fastest loading jquery tooltip to add to <a title="FAQPAL" href="http://www.faqpal.com" target="_blank">FAQPAL</a>.</p>
<p>Here&#8217;s how to implement on your site, no matter what version of Pligg you are using.</p>
<p><strong>First, download the following zip:</strong></p>
Note: There is a file embedded within this post, please visit this post to download the file.
<p><strong>Extract the contents and upload:</strong></p>
<p>jquery.js and main.js to the js folder in your root directory</p>
<p><strong>Open, pligg.tpl:</strong></p>
<p>After,</p>
<div class="dean_ch" style="white-space: wrap;">
<p>{checkActionsTpl location=&quot;tpl_pligg_pre_title_thickbox&quot;}<br />
{checkForCss}<br />
{checkForJs}<br />
{checkActionsTpl location=&quot;tpl_pligg_pre_title_lightbox&quot;}<br />
{if $pagename neq &quot;published&quot; &amp;&amp; $pagename neq &quot;upcoming&quot;}<br />
{if $Spell_Checker eq 1}<br />
&lt;script src=&quot;{$my_pligg_base}/3rdparty/speller/spellChecker.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
{/if}<br />
{/if}</p>
<p>&nbsp;</p></div>
<p>add,</p>
<div class="dean_ch" style="white-space: wrap;">
<p>&lt;script src=&quot;http://www.faqpal.com/js/jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;<br />
&lt;script src=&quot;http://www.faqpal.com/js/main.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</p>
<p>&nbsp;</p></div>
<p><strong>Save.</strong></p>
<p><strong>Open, link_summary.tpl,</strong></p>
<p>Find,</p>
<div class="dean_ch" style="white-space: wrap;">
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div class=&quot;toptitle&quot; id=&quot;ls_thetitle-{$link_shakebox_index}&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $use_title_as_link eq true}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $url_short neq &quot;http://&quot; &amp;&amp; $url_short neq &quot;://&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$url}&quot; {if $open_in_new_window eq true} target=&quot;_blank&quot;{/if} rel=&quot;nofollow&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$story_url}&quot; rel=&quot;nofollow&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{else}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $pagename eq &quot;story&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$url}&quot; rel=&quot;nofollow&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else} <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$story_url}&quot; rel=&quot;nofollow&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if} &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</p>
<p>&nbsp;</p></div>
<p><strong>change,</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$url}&quot; {if $open_in_new_window eq true} target=&quot;_blank&quot;{/if} rel=&quot;nofollow&quot;&gt;{$title_short}&lt;/a&gt;</p>
<p>&nbsp;</p></div>
<p><strong>to,</strong></p>
<div class="dean_ch" style="white-space: wrap;">
<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href=&quot;{$url}&quot; {if $open_in_new_window eq true} target=&quot;_blank&quot;{/if} rel=&quot;nofollow&quot; class=&quot;screenshot&quot; rel=&quot;http://images.websnapr.com/?size=s&amp;amp;url={$url}&quot;&gt;{$title_short}&lt;/a&gt;</p>
<p>&nbsp;</p></div>
<p><strong>Save.</strong></p>
<p><strong>Open, main.css</strong></p>
<p>Add,</p>
<div class="dean_ch" style="white-space: wrap;">
/*  */</p>
<p>#screenshot{<br />
position:absolute;<br />
border:1px solid #ccc;<br />
background:#333;<br />
padding:5px;<br />
display:none;<br />
color:#fff;<br />
}</p>
<p>/*  */</p>
<p>&nbsp;</p></div>
<p>to the end of the file.  Save.</p>
<p>That&#8217;s it, now when you hover over the story title, it will show a tooltip with a thumbshot.</p>
<p>Test drive it at <a href="http://www.faqpal.com" target="_blank">FAQPAL</a>.</p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/pligg-tooltip/feed/</wfw:commentRss>
		<slash:comments>58</slash:comments>
		</item>
		<item>
		<title>SEO for Pligg</title>
		<link>http://www.pliggs.com/seo-for-pligg/</link>
		<comments>http://www.pliggs.com/seo-for-pligg/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 21:55:48 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=645</guid>
		<description><![CDATA[
			
				
			
		
This post is aimed at owners of Pligg powered websites, though many of the tips are universal, and how to implement them into the Pligg script.


These tips are definitely not new but new owners may not know how to implement them properly, hopefully this will help.
Stories per page:
Opinions will differ on this one, but I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fseo-for-pligg%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fseo-for-pligg%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This post is aimed at owners of Pligg powered websites, though many of the tips are universal, and how to implement them into the Pligg script.</p>
<p><span id="more-645"></span></p>
<p><img class="aligncenter" title="SEO tips for Pligg" src="http://www.pliggs.com/wp-content/themes/flashnews/images/seo_tips.jpg" alt="" width="400" height="308" /></p>
<p>These tips are definitely not new but new owners may not know how to implement them properly, hopefully this will help.</p>
<p><strong>Stories per page:</strong></p>
<p>Opinions will differ on this one, but I would recommend keeping the number of stories per page between 10 and 15, too many outbound links could get your site labeled a link farm.  It also will keep your website looking cleaner and easier to read.</p>
<p><em>Implement &#8211; go to your Admin panel &gt; Configure &gt; Misc &gt; Page size</em></p>
<p><span id="var_65_span"><strong>Open story title in new window:</strong></span></p>
<p><span>While this may go against principles for proper user accessibility, this is a critical step.  If you do not have your website set to open the stories in new windows, it takes your user away from your website.  If they want to come back they need to hit the back button or re-enter your url in the address bar. </span></p>
<p><span>This maybe fine for most sites, but since a Pligg powered website&#8217;s primary function is for voting on submissions and most users vote on multiple submissions per session, having the outbound links open in new windows is more convenient.</span></p>
<p><span>I would also recommend using the story title as the outbound link and having the URL as the link instead of linking to Pligg&#8217;s out.php file.  This offers a cleaner look, and helps the user determine what site he will be forwarded to.<br />
</span></p>
<p><em>Implement &#8211; go to your Admin panel &gt; Configure &gt; Story &gt; </em><em><span id="var_64_span">Use story title as link &gt; true</span></em></p>
<p><em>Implement &#8211; go to your Admin panel &gt; Configure &gt; Story &gt; </em><em><span id="var_64_span">Open story title in new window &gt; true</span></em></p>
<p><span><strong>Images:</strong></span></p>
<p><span><strong><img class="aligncenter size-full wp-image-652" title="Pligg thumbshots" src="http://www.pliggs.com/wp-content/uploads/2009/01/thumbshots.png" alt="Pligg thumbshots" width="641" height="130" /><br />
</strong></span></p>
<p><span>All images should contain an alt tag and specify the height and width.  The alt tag should be informative, I generally like to use the story title as the alt tag.</span></p>
<p><span><em>Implement &#8211; open link_summary.tpl</em></span></p>
<p><span><strong>find:</strong></span></p>
<div class="dean_ch" style="white-space: wrap;">&lt;img style=&quot;float:right; padding-left:10px;padding-top:35px;&quot; src=&quot;http://images.websnapr.com/?url={$url_short}&amp;amp;size=T&quot; alt=&quot;&quot; /&gt;</div>
<p><span><strong>change to:</strong></span></p>
<div class="dean_ch" style="white-space: wrap;">&lt;img style=&quot;float:right; padding-left:10px;padding-top:35px;&quot; src=&quot;http://images.websnapr.com/?url={$url_short}&amp;amp;size=T&quot; alt=&quot;{$title_short}&quot; width=&quot;48&quot; height=&quot;48&quot; /&gt;</div>
<p><span>Note I have added an alt tag and specified the height and width for the thumbnail for each post.  The height and width can be whatever works for your website.<br />
</span></p>
<p><span><strong>Hidden text:</strong></span></p>
<p><span>Apparently the developers at Pligg are the only ones that don&#8217;t know that hidden text is a big no-no when it comes to SEO.  They still insist on adding hidden text in their footer.tpl file a long with their live visible link, thus resulting in you passing on double the link juice and risking getting banned or &#8220;sandboxed&#8221; by Google.</span><br />
This is the code I am referring to:</p>
<div class="dean_ch" style="white-space: wrap;">{* Please do not edit the code below. *}<br />
{checkActionsTpl location=&quot;tpl_footer&quot;}<br />
&lt;div class=&quot;footer&quot; style=&quot;display:none&quot;&gt;Powered By &lt;a href=&quot;http://www.pligg.com/&quot;&gt;Pligg&lt;/a&gt;&lt;/div&gt;</div>
<p><span>They try to make it seem as if this section is crucial to running the script, when in actuality all you need is:</span></p>
<div class="dean_ch" style="white-space: wrap;">{checkActionsTpl location=&quot;tpl_footer&quot;}</div>
<p><span>Do yourself a favor and remove the hidden link to Pligg and leave the visible live link to them instead.</span></p>
<p><span><strong>Sitemaps:</strong></span></p>
<p><span>Sitemaps are a crucial piece of SEO as it tells search engines where everything is located.  Sitemaps can be submitted to Google through the <a title="Google Webmaster Tools" href="https://www.google.com/webmaster" target="_blank">webmaster tools</a> section, which every site should be part of.</span></p>
<p><span><img class="aligncenter size-medium wp-image-653" title="Google Webmaster Tools" src="http://www.pliggs.com/wp-content/uploads/2009/01/google-300x211.jpg" alt="Google Webmaster Tools" width="300" height="211" /><br />
</span></p>
<p><span><a title="XML Sitemap creator for Pligg" href="http://patchlog.com/xmlsitemapspligg/" target="_blank">Patchlog</a> has created a module that will create a sitemap and automatically ping Google and other services everytime someone submits a story.</span></p>
<p><span><strong>Spam:</strong></span></p>
<p><span>Having your website riddled with spam will not only turn off search engines, but your users as well.  Unless you have the time and patience to continuously monitor your website for spam posts, especially if you have the XML Sitemap Creator module installed, you need help.</span></p>
<p><span>Check out our module that forces submittors to get by <a title="reCaptcha for Pligg submissions" href="http://www.pliggs.com/recaptcha-for-submit-pligg-v995/" target="_blank">reCaptcha</a> before a story can be submitted.</span></p>
<p><span><strong>Removing the word &#8220;category&#8221;:</strong></span></p>
<p><span>While it isn&#8217;t really a must, it will clean up your URLs.  I would remove the word &#8220;category&#8221; from your URL using URL method 2.</span></p>
<p><span>My good friend Lincoln has done a fantastic <a title="Pligg SEO tip" href="http://socialcmsbuzz.com/pligg-tutorial-how-to-remove-the-word-category-from-pliggs-category-urls-20012008/" target="_blank">tutorial</a> on how to achieve this.</span></p>
<p><span><strong>Duplicate content:</strong></span></p>
<p><span>Another no-no with Google is duplicate content, unless your Digg.  Heres how to avoid it on your Pligg install.</span></p>
<p><span><em>Open your robots.txt file and add:</em></span></p>
<div class="dean_ch" style="white-space: wrap;">User-agent: *<br />
Disallow: /templates/<br />
Disallow: /3rdparty/<br />
Disallow: /libs/<br />
Disallow: /modules/<br />
Disallow: /plugins/<br />
Disallow: /internal/<br />
Disallow: /backup/<br />
Disallow: /thickbox/<br />
Disallow: /api/<br />
Disallow: /evb/<br />
Disallow: /avatars/<br />
Disallow: /admin_index.php<br />
Disallow: /admin<br />
Disallow: /story.php<br />
Disallow: /login.php<br />
Disallow: /user.php<br />
Disallow: /js/<br />
Disallow: /img/<br />
Disallow: /story/<br />
Disallow: /story/title/</div>
<p><span>This was another tip from Social CMS Buzz.</span></p>
<p><strong><span>Rel=&#8221;nofollow&#8221;:</span></strong></p>
<p><span><img class="alignleft size-medium wp-image-654" style="padding:5px;" title="rel=nofollow" src="http://www.pliggs.com/wp-content/uploads/2009/01/saynotonofollow-300x201.gif" alt="rel=nofollow" width="300" height="201" />Though I have mixed feelings about using this tag, once you start building up members, stories and a steady traffic base, you may want to implement the nofollow tag.</span></p>
<p><span>By default Pligg comes with already included, however, for a new Pligg website I advise removing it.</span></p>
<p><span>It will be extremely difficult to get bloggers, your main source of stories, to register and submit posts to your Pligg powered website if there isn&#8217;t any link juice added.</span></p>
<p>Like many blogs, make yourself a dofollow blog to entice users to submit content.  Once established, you can revert back to being a nofollow blog or remain a dofollow blog.</p>
<p>This is controlled by the link_summary.tpl file:</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;div id=&quot;ls_thetitle-{$link_shakebox_index}&quot; class=&quot;toptitle&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $use_title_as_link eq true}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $url_short neq &quot;http://&quot; &amp;amp;&amp;amp; $url_short neq &quot;://&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a rel=&quot;nofollow&quot; href=&quot;{$url}&quot; target=&quot;_blank&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a rel=&quot;nofollow&quot; href=&quot;{$story_url}&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{else}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $pagename eq &quot;story&quot;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a rel=&quot;nofollow&quot; href=&quot;{$url}&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a rel=&quot;nofollow&quot; href=&quot;{$story_url}&quot;&gt;{$title_short}&lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}&lt;/div&gt;</div>
<p><span>This is a decision you will have to make.</span></p>
<p><span>I would no matter what, make your about and contact pages nofollow as they are pages that are not as important thus do not need any link juice being passed on to them.</span></p>
<p><span><strong>Avatar/Gravatar/Favicon:</strong></span></p>
<p><span><img class="alignleft size-full wp-image-655" title="Favicon generator" src="http://www.pliggs.com/wp-content/uploads/2009/01/favicon-screenshot.jpg" alt="Favicon generator" width="292" height="115" />I strongly recommend creating a <a title="Favicon maker" href="http://www.degraeve.com/favicon/" target="_blank">favicon</a> for your website, then register at <a title="Gravatar" href="http://en.gravatar.com/" target="_blank">Gravatar</a>, at Gravatar make sure it matches your favicon, also keep a copy of the avatar you are using for Gravatar on your local machine.</span></p>
<p><span>The purpose of this is so that whenever you make a comment on a blog, your avatar will match your favicon, thus branding your website and spreading it&#8217;s brand while commenting on blogs, your source of traffic.  Which leads us to giving back to the source of many of your stories, bloggers.</span></p>
<p><span>It is imperative that you visit and comment on any story that interests you or a story that you have a valuable comment to add to.  This not only provides a backlink to you, but also provides traffic.  Another bonus to commenting on blogs is building up relationships with the blogger, thus making them more susceptible to submitting more stories to your website.</span></p>
<p>This list is not the end all to be all, but a simple look at a few things you can do to help make your website more SEO ready.</p>
<p>I welcome more tips and comments.  Please drop me a line below.</p>
<p>Do you have more tips?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/seo-for-pligg/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Topusers function</title>
		<link>http://www.pliggs.com/topusers-function/</link>
		<comments>http://www.pliggs.com/topusers-function/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 15:32:41 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://www.pliggs.com/?p=189</guid>
		<description><![CDATA[
			
				
			
		
The top users function built in to Pligg has been something I have neglected since installing Pligg.  For the most part because it seemed to just display a list of all members alphabetically.
Today I took a look at the file topusers.php to see what it was using as a query, I wanted to change [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Ftopusers-function%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Ftopusers-function%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>The top users function built in to Pligg has been something I have neglected since installing Pligg.  For the most part because it seemed to just display a list of all members alphabetically.</p>
<p>Today I took a look at the file topusers.php to see what it was using as a query, I wanted to change the output so it showed &#8220;top users&#8221; as the title suggests.</p>
<p>Sometimes it pays to browse the files of Pligg, the topusers.php files has 6 options for the output:</p>
<ul>
<li>
sort users alphabetically</li>
<li>
sort users by number of submitted links</li>
<li>sort users by number of published links</li>
<li>
sort users by number of comments</li>
<li>sort users by number of votes
</li>
<li>
sort users by number of published votes</li>
</ul>
<p>By default, it is set to the first option, most Pligg installs you visit will have this set for the output.  The first option really isn&#8217;t something that should be in the topusers.php file, as it only list all of your members.</p>
<p>I would set the option to either #1 or #5, this will show a more accurate picture of your top members.</p>
<p>In your root folder open topusers.php, find this section:</p>
<p>
<div class="dean_ch" style="white-space: wrap;">// determine how to sort users<br />
if(isset($_GET['sortby'])){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = $_GET['sortby'];}<br />
else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = &quot;0&quot;;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
// make sure sorting option is between 0 and 5&nbsp; <br />
if(intval($sortby) &lt; 0 || intval($sortby) &gt; 5) <br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = 0;<br />
else $sortby = intval($sortby);</p>
<p>switch ($sortby) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 0: // sort users alphabetically<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id&quot;;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_users . &quot; where user_level&lt;&gt;&#8217;god&#8217;&quot;;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY user_login &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 1: // sort users by number of submitted linkd<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_links . &quot;, &quot; . table_users . &quot; WHERE &nbsp;link_status != &#8216;discard&#8217; AND link_author=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY link_author&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 2: // sort users by number of published links<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_links . &quot;, &quot; . table_users . &quot; WHERE &nbsp;link_status = &#8216;published&#8217; AND link_author=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY link_author&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 3: //sort users by number of comments<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_comments . &quot;, &quot; . table_users . &quot; WHERE comment_user_id=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY comment_user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 4: //sort users by number of votes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_votes . &quot;, &quot; . table_users . &quot; WHERE vote_user_id=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY vote_user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 5: // sort users by number of published votes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_votes . &quot;, &quot; . table_users . &quot;, &quot; . table_links . &quot; WHERE vote_user_id=user_id AND link_id=vote_link_id AND link_status=&#8217;published&#8217; AND vote_date &lt; link_published_date AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
}<br />
&nbsp;</div>
</p>
<p>I have changed my to #5, so mine now looks like:</p>
<p>
<div class="dean_ch" style="white-space: wrap;">// determine how to sort users<br />
if(isset($_GET['5'])){<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = $_GET['5'];}<br />
else{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = &quot;5&quot;;}<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
// make sure sorting option is between 0 and 5&nbsp; <br />
if(intval($sortby) &lt; 0 || intval($sortby) &gt; 5) <br />
&nbsp; &nbsp; &nbsp; &nbsp; $sortby = 5;<br />
else $sortby = intval($sortby);</p>
<p>switch ($sortby) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 0: // sort users alphabetically<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id&quot;;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_users . &quot; where user_level&lt;&gt;&#8217;god&#8217;&quot;;<br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY user_login &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 1: // sort users by number of submitted linkd<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_links . &quot;, &quot; . table_users . &quot; WHERE &nbsp;link_status != &#8216;discard&#8217; AND </p>
<p>link_author=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY link_author&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 2: // sort users by number of published links<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_links . &quot;, &quot; . table_users . &quot; WHERE &nbsp;link_status = &#8216;published&#8217; AND </p>
<p>link_author=user_id AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY link_author&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 3: //sort users by number of comments<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_comments . &quot;, &quot; . table_users . &quot; WHERE comment_user_id=user_id AND </p>
<p>user_level&lt;&gt;&#8217;god&#8217; GROUP BY comment_user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 4: //sort users by number of votes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_votes . &quot;, &quot; . table_users . &quot; WHERE vote_user_id=user_id AND user_level&lt;&gt;&#8217;god&#8217; </p>
<p>GROUP BY vote_user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; case 5: // sort users by number of published votes<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $select = &quot;SELECT user_id, count(*) as count &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $from_where = &quot; FROM &quot; . table_votes . &quot;, &quot; . table_users . &quot;, &quot; . table_links . &quot; WHERE vote_user_id=user_id AND </p>
<p>link_id=vote_link_id AND link_status=&#8217;published&#8217; AND vote_date &lt; link_published_date AND user_level&lt;&gt;&#8217;god&#8217; GROUP BY user_id&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $order_by = &quot; ORDER BY count DESC &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
}</div>
</p>
<p>Example: <a href="http://www.newsdots.com/topusers">News Dots Topusers</a></p>
<p>Something to play around with until you find the right one for you.</p>
<p>Which one are you using?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/topusers-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Remove the word category from Pligg’s category URL’s</title>
		<link>http://www.pliggs.com/how-to-remove-the-word-category-from-pligg%e2%80%99s-category-url%e2%80%99s/</link>
		<comments>http://www.pliggs.com/how-to-remove-the-word-category-from-pligg%e2%80%99s-category-url%e2%80%99s/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 01:26:33 +0000</pubDate>
		<dc:creator>Geoserv</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[Pligg]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.newsdots.com/pliggswp/?p=10</guid>
		<description><![CDATA[So is this possible, the answer is yes. Will it affect your rankings in a bad way, the answer is no as long as you 301 redirect your old category url’s to the newly optimiized ones. Will it boost your rankings in search engine, i really cannot say for sure but it certainly won’t do any harm.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-top: 10px; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.pliggs.com%2Fhow-to-remove-the-word-category-from-pligg%25e2%2580%2599s-category-url%25e2%2580%2599s%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.pliggs.com%2Fhow-to-remove-the-word-category-from-pligg%25e2%2580%2599s-category-url%25e2%2580%2599s%2F&amp;source=Pliggs&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I will start off by explaining what this hack will achieve by showing an example of before and after :.</p>
<p><strong>Original Published Category URL</strong></p>
<p>http://yoursite.com/category/WorldNews</p>
<p><em><strong>Optimized Published Categroy URL</strong></em></p>
<p>http://yoursite.com/WorldNews</p>
<p><strong>Original Upcoming Category URL</strong></p>
<p>http://yoursite.com/upcoming/category/WorldNews</p>
<p><em><strong>Optimized Upcoming Categroy URL</strong></em></p>
<p>http://yoursite.com/upcoming/WorldNews</p>
<p>Sorts Bar url’s “Sort by:” are also affected</p>
<p><strong>Original Sorts Published Category URL</strong></p>
<p>http://yoursite.com/published/recent/category/WorldNews</p>
<p><em><strong>Optimized Sorts Published Categroy URL</strong></em></p>
<p>http://yoursite.com/published/recent/WorldNews</p>
<p><strong>Original Upcoming Category URL</strong></p>
<p>http://yoursite.com/upcoming/newest/category/WorldNews</p>
<p><em><strong>Optimized Upcoming Categroy URL</strong></em></p>
<p>http://yoursite.com/upcoming/newest/WorldNews</p>
<p><a href="http://socialcmsbuzz.com/pligg-tutorial-how-to-remove-the-word-category-from-pliggs-category-urls-20012008/">Step-by-step tutorial&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.pliggs.com/how-to-remove-the-word-category-from-pligg%e2%80%99s-category-url%e2%80%99s/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
