[mod] count clicks instead of votes

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2007, 03:45 PM
Casual Pligger
 
Join Date: Feb 2007
Posts: 46
edited text

Last edited by abcdefgary; 01-02-2010 at 08:14 PM.
Reply With Quote
  #2 (permalink)  
Old 06-20-2007, 03:53 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
even if i don't wind up using this, i wanted to thank gary for acknowledging the communities request and banging this out. its a 'good thing' for the forum
Reply With Quote
  #3 (permalink)  
Old 06-20-2007, 05:02 PM
Casual Pligger
 
Join Date: Mar 2007
Location: Salem, Oregon
Posts: 31
Send a message via Skype™ to harlem
Will this work with earlier version of Pligg. Im still using 9.1. I hope it does this would be perfect.
Reply With Quote
  #4 (permalink)  
Old 06-21-2007, 01:50 AM
Casual Pligger
 
Join Date: Mar 2007
Posts: 47
Great mod, thanks!

However, would recommend instead of using

This
{else}
<a href="{$story_url}"{if $Voting_Method eq 1} onclick="javascript:{$link_shakebox_javascript_vot e}"{/if}>{$title_short}</a>
{/if}
{/if}
</div>

I recommend this
{else}
<a href="{$story_url}"{if $Voting_Method eq 1 && $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0} onclick="javascript:{$link_shakebox_javascript_vot e}"{/if}>{$title_short}</a>
{/if}
{/if}
</div>


This will about getting the popup saying that the story is already voted
Reply With Quote
  #5 (permalink)  
Old 02-29-2008, 01:54 PM
New Pligger
 
Join Date: Feb 2008
Posts: 8
will this work with 9.9.0?

not working on my site..

tamil+ / Published News
Reply With Quote
  #6 (permalink)  
Old 03-28-2008, 08:48 PM
New Pligger
 
Join Date: Mar 2008
Posts: 5
hey loose,

It worked on my site. There are a few little things that you have to take care of. If you copy and paste, you have to make sure that you post the word "vote" as one word, not as "vot" (space) "e" which can happen due to the line break in the post.

Also you have to paste the code into 5 different places, not one as implied above. You have to paste the code to replace the three other similar spaces directly above (the <a> links with either $url or $story_url). You will then have to adjust the code you are pasting ($url is either remains $url or changes to $story_url accordingly). Then you have to look down the page into the section for newly submitted stories, and paste the code once there, replacing a similar piece of code.

Hope this helps, I know the examples aren't illustrated as clearly as possible, but it should be enough to get you past this little bump in devel.


B
medicalschoolresources.com
Reply With Quote
  #7 (permalink)  
Old 06-15-2008, 12:34 AM
Donor
Pligg Version: RC3
Pligg Template: Wistie
 
Join Date: Dec 2007
Posts: 28
hey thanks for this

but I saw that the mod only counts register users vote not others can someone help me out
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting clicks instead of votes lumpen5 Questions and Comments 45 01-17-2011 09:44 AM
Counting Clicks instead of Votes kahunabear Questions and Comments 14 11-21-2010 09:57 PM
[Mod] Category Count - Final Geoserv Questions and Comments 25 01-31-2010 06:15 PM
News based on Clicks instead of Votes mde05 Questions and Comments 2 01-14-2008 09:32 AM
Registering Clicks instead of Votes kahunabear Questions and Comments 2 02-01-2007 07:50 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development