Results 1 to 10 of 10
  1. #1
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0

    Problem with Voting

    I am having a problem with voting, pretty sure it has to do with my alterations to the template, so wondering if anyone can tell if I am missing something.

    What is happening is that new storys are autmatically being voted for by. Whenever a user tries to vote, it tells them they already voted.

    That code I used in my link_summary template is:

    <div class="vote"> {checkActionsTpl location="tpl_pligg_story_votebox_start"} <span class="votenumber"> <a id="xvotes-{$link_shakebox_index}" href="javascript:{$link_shakebox_javascript_vote}" >{$link_shakebox_votes}</a> </span><br />
    <span class="subtext" id="xvote-{$link_shakebox_index}"> {if $link_shakebox_currentuser_votes eq 0 && $link_shakebox_currentuser_reports eq 0} <a href="javascript:{$link_shakebox_javascript_vote}" >{#PLIGG_Visual_Vote_For_It#}</a> {else}
    {if $link_shakebox_currentuser_reports neq 0} <span>{#PLIGG_Visual_Vote_Report#}</span> {else}
    {if $pagename eq "user" && $user_logged_in neq $link_submitter} <a href="javascript:{$link_shakebox_javascript_unvote }">{#PLIGG_Visual_Unvote_For_It#}</a> {else} <span>{#PLIGG_Visual_Vote_Cast#}</span> {/if}
    {/if}
    {/if} </span> {checkActionsTpl location="tpl_pligg_story_votebox_end"} </div></td>
    <td width="459" bgcolor="#FFFFFF">{checkActionsTpl location="tpl_pligg_story_title_start"}
    {if $use_title_as_link eq true}
    {if $url_short neq "http://" && $url_short neq "://"} <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} $story_status neq "published"}rel="nofollow">{$title_short}</a> {else} <a href="{$story_url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a> {/if}
    {else}
    {if $pagename eq "story" && $url_short neq "http://" && $url_short neq "://"} <a href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if} $story_status neq "published"}rel="nofollow">{$title_short}</a> {else} <a class="title" href="{$story_url}">{$title_short}</a> {/if}
    {/if}
    {checkActionsTpl location="tpl_pligg_story_title_end"}

    Am i missing something in there

  2. #2
    Casual Pligger w3cvalidcode's Avatar
    Joined
    Jan 2011
    Posts
    59
    Thanks
    Received:0
    Given: 0
    Which template are you using?

    Did you try to change the template and try again? Is it working then?

  3. #3
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    I am building my own template. But I did try uploading a brand new template and it still did the same thing. Could there be a setting in the admin area that needs to be on or off?

  4. #4
    Casual Pligger w3cvalidcode's Avatar
    Joined
    Jan 2011
    Posts
    59
    Thanks
    Received:0
    Given: 0
    Are you trying from same IP or different? There are different settings in Admin -> Configure -> Voting

    Maybe you could tell me the URL and I could see myself.

    Oh by the way, in Admin -> Configure -> Anonymous is another setting...

    Code:
    Anonymous Vote
    Description: Allow anonymous users to vote on articles.

  5. #5
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    I turned off the Vote per IP thing, which seemed to work. But now when I log in as a different user and Vote, it shows 5 stars in the background and on refresh brings the votes from 1 to 10.

  6. #6
    Casual Pligger w3cvalidcode's Avatar
    Joined
    Jan 2011
    Posts
    59
    Thanks
    Received:0
    Given: 0
    Which voting did you activate? Stars?

    Delete the cache in Admin Panel Tools (Delete Template Cache).

  7. #7
    New Pligger dpiworx's Avatar
    Joined
    Jan 2011
    Posts
    24
    Thanks
    Received:0
    Given: 0
    No, I am on the default voting style, number 1

  8. #8
    Casual Pligger w3cvalidcode's Avatar
    Joined
    Jan 2011
    Posts
    59
    Thanks
    Received:0
    Given: 0
    Please give us the URL so we can see it live

  9. #9
    Junior Member kushalkhare's Avatar
    Joined
    Jun 2012
    Location
    A, A
    Posts
    1
    Thanks
    Received:0
    Given: 0
    Site
    http://websitebookmarking.net/
    please check my website I too facing problem in voting, I' using default template and default voting style, number 1.

    my website is http://websitebookmarking.net please do help me out .. it serious problem

  10. #10
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:395
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    Quote Originally Posted by kushalkhare View Post
    please check my website I too facing problem in voting, I' using default template and default voting style, number 1.

    my website is Website Bookmarking - Your Source for Social News and Networking please do help me out .. it serious problem

    Stop posting in the bug reporting forum. That forum is for people who understand programming.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


Similar Threads

  1. voting problem
    By detronecis in forum Questions & Comments
    Replies: 2
    Last Post: 10-25-2010, 11:38 AM
  2. Voting problem
    By AdreNaL1N in forum Questions & Comments
    Replies: 1
    Last Post: 07-02-2008, 04:46 AM
  3. Problem with the voting box
    By satyricon in forum Questions & Comments
    Replies: 0
    Last Post: 07-25-2007, 09:30 AM
  4. voting problem & comments problem
    By DailyResearch in forum Questions & Comments
    Replies: 11
    Last Post: 07-09-2007, 05:11 PM
  5. voting problem
    By sneacker in forum Questions & Comments
    Replies: 3
    Last Post: 02-26-2007, 06:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg