But I'm having a small problem AlienHolakres, why is it that the top of the voting box is not aligned with the story title any more? I'm attaching a pic for your understanding. Thanks a lot for this mod.
| |||||||
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Finally got to try out this add-on on my site, and it seems to work fine. *phew* But I'm having a small problem AlienHolakres, why is it that the top of the voting box is not aligned with the story title any more? I'm attaching a pic for your understanding. Thanks a lot for this mod. |
| |||
|
Do we need to use the votes images that you provided? Geoserv |
| |||
|
Ok, got it lined up, but for some reason the clicks don't increase. Geoserv. |
| ||||
|
I had the same problem I am sure you have only once the code, which only track the URL, if outgoinglink are activated Iguess. but it sorted after this and it adds up every time you click on the link. 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 "://" && $url_short neq "1"} <a onclick="sendClickedValue({$link_id},{$link_shakebox_index});" href="{$url}" {if $open_in_new_window eq true} target="_blank"{/if}>{$title_short}</a>
{else}
<a href="{$story_url}" onclick="sendClickedValue({$link_id},{$link_shakebox_index});">{$title_short}</a>
{/if}
{else}
{if $pagename eq "story"}
{if $url_short eq "http://" OR $url_short eq "://" OR $url_short eq "1"}
{$title_short}
{else}
<a href="{$story_url}" onclick="sendClickedValue({$link_id},{$link_shakebox_index});">{$title_short}</a>
{/if}
{else}
<a href="{$story_url}" onclick="sendClickedValue({$link_id},{$link_shakebox_index});">{$title_short}</a>
{/if}
{/if}
</div>
Last edited by computerbar; 01-03-2008 at 10:18 AM.. |
| |||
|
Ok, I pasted what you provided and the count goes up when I click the story link, but when it loads the story the count shows zero, and when I return to the main page the counts are all zeros. Geoserv. |
| |||
|
Further to the above post, I checked the DB, and it shows clicks on the stories, so its not a DB issue. Geoserv. |
| ||||
|
you sure you have followed the STEP1 and STEP 2 in the first post??? 1)add var clicks: var $clicks=0; 2) after function store_basic add following function: $clicks=$this->clicks+1; $sql = "UPDATE " . table_links . " set `clicks`=$clicks WHERE link_id=".$this->id; $db->query($sql); } [/color] |
| The Following User Says Thank You to computerbar For This Useful Post: | ||
| |||
|
I had step 3 in the wrong spot. My mistake. Thanks, Geoserv. |
| ||||
|
by the way you need to fix your published post and Home link http://www.topstumbles.comhttp//www.topstumbles.com |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Submit Antispam Addon v 0.1 | AnAlienHolakres3 | Pligg Modules | 22 | 10-01-2008 05:08 PM |
| Special Advertising Add-On for banners Tutorial | AnAlienHolakres3 | Modification Tutorials | 18 | 07-30-2008 09:25 AM |
| [mod] count clicks instead of votes | abcdefgary | Modification Tutorials | 8 | 06-14-2008 11:34 PM |
| Pligg Team Addon Installation GUIDE & MANUAL | AnAlienHolakres3 | Modification Tutorials | 17 | 04-07-2008 03:41 PM |
| Vote count and Title Link only on front page | tommy818 | General Help | 1 | 10-25-2007 04:40 AM |