Quote:
Originally Posted by atgv
Thanks Valter, VB4 looks & functions much better with your efforts & mods
Edit: Maybe in next update it would be nice to place donate button like attached picture
|
Go to your style chose "
Add New Template", Title "
vsa_donate_navbar_link".
Template:
Code:
<vb:if condition="$vboptions['selectednavtab'] == 'donate'">
<li class="selected">
<a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a>
</li>
<vb:else />
<li><a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a></li>
</vb:if>
Save.
After this go to "
Plugins & Products/Add New Plugin"
In
Product select "
VSa - PayPal Donate"
In
Hook Location "
process_templates_complete"
In
Title "
VSa - PayPal Donate - NAVBAR"
In
Execution Order:
5
In P
lugin PHP Code:
PHP Code:
if ($vbulletin->options['vsapaypal_show_link'])
{
if ($_REQUEST['do'] == 'donate')
{
$vbulletin->options['selectednavtab'] = 'donate';
}
$template_hook['navtab_middle'] .= vB_Template::create('vsa_donate_navbar_link')->render();
}
Plugin is Active :
Yes
Save
Enjoy!