this small modification will allow pligg admins to count the clicks of the story title as votes, as
requested here.
notes:
1.) when the user clicks the story title, the vote is calculated and "voted" shows up as well as disables voting again for the user, but the number of votes won't change unless you refresh the page.
2.) i don't recommend this (at all) because like I've said before, if someone places the link/url to that pligg story, the view/vote count of that story won't increase when someone opens up that url. the vote count will only increase if someone votes, or clicks the story link.
i dont recommend this! but whatever. erm, ok. here goes.
open up link_summary.tpl of your template ( I used yget 9.6 for this example) and find:
Code:
<div class="top">
<div class="toptitle" id="ls_thetitle-{$link_shakebox_index}">
{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}>{$title_short}</a>
{else}
<a href="{$story_url}">{$title_short}</a>
{/if}
{else}
{if $pagename eq "story"}
<a href="{$url}">{$title_short}</a>
{else}
<a href="{$story_url}">{$title_short}</a>
{/if}
{/if}
</div>
at the bottom of that code... replace:
Code:
{else}
<a href="{$story_url}">{$title_short}</a>
{/if}
{/if}
</div>
with:
Code:
{else}
<a href="{$story_url}"{if $Voting_Method eq 1} onclick="javascript:{$link_shakebox_javascript_vote}"{/if}>{$title_short}</a>
{/if}
{/if}
</div>