hi i used to use this image
and the link was
HTML Code:
<img id="reminder_{vb:raw favid}_toggler" src="clear.gif" class="reminder_toggler<vb:if condition="$show['fav']">_active</vb:if>" onclick="FAVReminder.Toggle({vb:raw favid});" title="<vb:if condition="$show['fav']">Remove Favorite<vb:else />Add Favorite</vb:if>" />
and the code in .js file code is:
PHP Code:
FAVReminder = new reminder();
function reminder()
{
this.Toggle = function(favid)
{
SitePopup.Show('FAV Reminder',PHRASE_AJAX_RUNNING);
YAHOO.util.Connect.asyncRequest("POST", "ajax.php", {
success: this.ProcessReminder,
failure: this.handle_ajax_error,
timeout: vB_Default_Timeout,
scope: this
}, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + '&do=togglereminder&favid=' + favid);
}
this.handle_ajax_error = function(ajax)
{
//TODO: Something bad happened, try again
vBulletin_AJAX_Error_Handler(ajax);
}
this.ProcessReminder = function(ajax)
{
if (ajax.responseXML)
{
var error = ajax_fetch_tag('error', ajax);
var reminder = ajax_fetch_tag('reminder', ajax);
var nzbfavcache = ajax_fetch_tag('favcache', ajax);
var nzbid = ajax_fetch_tag('favid', ajax);
if (error)
{
SitePopup.Show('FAV Reminder...', error);
}
else
{
SitePopup.Show('FAV Reminder', PHRASE_AJAX_COMPLETE);
SitePopup.TimerClose(1000);
if (toggler = fetch_object('reminder_' + favid+ '_toggler'))
{
toggler.className = 'reminder_toggler' + ( reminder == 0 ? '' : '_active' );
toggler.title = ( reminder == 1 ? 'Remove Favorite' : 'Add Favorite' );
}
if (togglertitle = fetch_object('add_' + favid + '_remove'))
{
togglertitle.innerHTML = ( reminder == 1 ? 'Remove Favorite' : 'Add Favorite' );
}
if (titlecell = fetch_object('td_threadtitle_' + favid), true)
{
reminderthreadhighlight(titlecell, ( reminder == 0 ? 'remove' : 'add' ),1);
}
if (img = fetch_object('reminder_' + favid + '_img'))
{
img.style.display = ( reminder == 0 ? 'none' : '' );
}
}
}
}
}
}
it used to work in vBulletin 3.8 and since i updated its not working can anyone please help me out on this thanks.