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



Reply With Quote






