Quote:
Originally Posted by masterross
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!
|
I could follow the above but the Donate button is placed right after the Forum, right in the middle of the navbar, instead of at the end. Is there anyway that I can move the "donate" button at the end?
Cheers,
Victor