![]() |
Adding Favorite java
1 Attachment(s)
hi i used to use this image https://vborg.vbsupport.ru/attachmen...1&d=1264429359 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>" /> PHP Code:
|
With the code you posted you are not registering the variables.
This one to be exact: favid you may also have to register $show depending where you want to use it. https://vborg.vbsupport.ru/showthread.php?t=228078 |
this is the hook that uses ajax_complete
PHP Code:
|
anyone able to help me out.
|
Did you do what BBR suggested and register the variables for use in the template? I don't see anything in any of your code regarding that.
(PS. And it's javascript, not java. They are two different languages.) |
i have m8 here
PHP Code:
|
And what do you see in the template? Where are you using $favbits afterwards? And is that variable registered for use in the template you are using it in?
|
yes cause the link is showing up
HTML Code:
<img id="reminder_15_toggler" src="clear.gif" class="reminder_toggler<vb:if condition="$show['fav']">_active</vb:if>" onclick="FAVReminder.Toggle(15);" title="<vb:if condition="$show['fav']">Remove Favorite<vb:else />Add Favorite</vb:if>" /> HTML Code:
<!-- Site Info Popup --> Code:
function Page_Popup(varname, elementid, popupwidth, overlayopacity, ignorereturn) |
Let me get this straight.... is this what is showing up in the page source? Or is this the template?
HTML Code:
<img id="reminder_15_toggler" src="clear.gif" class="reminder_toggler<vb:if condition="$show['fav']">_active</vb:if>" onclick="FAVReminder.Toggle(15);" title="<vb:if condition="$show['fav']">Remove Favorite<vb:else />Add Favorite</vb:if>" /> |
this is the page source:
HTML Code:
<img id="nzbreminder_201_toggler" src="clear.gif" class="nzbreminder_toggler" title="Add Favorite"> 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>" /> |
All times are GMT. The time now is 09:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|