hi garvin.
i am sending you the code where i have made the changes...
the change where i made is...
here we have three variables $karma_voting ,$karma_current ,$karma_timeout
in these variables i used a new variable called $hitlink which is defined in the if-else condition as below......
Code: Select all
if ($serendipity['serendipityUserlevel'] >= USERLEVEL_CHIEF)
{
$hitlink='<a href="javascript:void(0)" onClick=window.open("/visited.php?entry=[b]%1$s[/b]","VisitedUsersList","height=400,width=400,left=600,top=300,scrollbars=1,resizable=1"); >'.PLUGIN_KARMA_VISITSCOUNT.'</a>';
}
else{
$hitlink=PLUGIN_KARMA_VISITSCOUNT;
}
$karma_voting = '<br /><div class="serendipity_karmaVoting"><a id="karma_vote%1$s"></a>' . ($karma_active ? PLUGIN_KARMA_VOTETEXT . ' ' . $link_1 . ' | ' . $link_2 . ' | ' . $link_3 . ' | ' . $link_4 . ' | ' . $link_5 . '<br />' . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? $hitlink : '') . '</div>';
$karma_current = '<br /><div class="serendipity_karmaVoting"><a id="karma_vote%1$s"></a>'. ($karma_active ? '<div class="serendipity_karmaSuccess">' . PLUGIN_KARMA_VOTED . '</div>' . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? $hitlink : '') . '</div>';
$karma_timeout = '<br /><div class="serendipity_karmaVoting"><a id="karma_vote%1$s"></a>' . ($track_karma ? '<div>' . sprintf(PLUGIN_KARMA_CLOSED, $karmatime) . '</div>' . PLUGIN_KARMA_CURRENT : '') . ($track_clicks ? $hitlink : '') . '</div>';
this is the code wherein i added a new variable $hitlink....can u see the variable %1$s ....that variable actually contains the entry id..but after clicking on karma ++/+/0/--/- which i was telling you previously that variable no longer holds the entry id.....i hope u understood my problem
and can help me please.......
thank you