PDA

View Full Version : Mini Mods - Adding links in the nav bar


ultimatearco
09-09-2008, 10:00 PM
Adding links in the navbar

Before installing please check the Installed button :)
ALSO: This version has been taken out of beta stage :D
Thanks to StuntFactoryX (https://vborg.vbsupport.ru/member.php?u=143771)'s idea we now have the code for guests!
Version 2 relased and taken out of beta!

Okay, iv'e seen some mods that did not edit the navbar for some reason
Please dont flame me couse of the basic stuff, this is for people who dont have the knowledge of HTML

This has been tested on the Default style. It should work on templates WITHOUT a image navbar!

This hasent been tested on the Fox styles, so use it on your own risk there :)

Go to your Panel and select Styles & Templates then select Style Manager
go to the Navbar template
Find:

<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>

</if>




Under that add:



<if condition="$show['member']">
<td class="vbmenu_control"><a href="[link]">text</a></td></if>


If you want to make it avaible to guests add that below the code above:
<td class="vbmenu_control"><a href="index.php">portal</a></td>
Note: adding the <if> code could couse your forum style to fail completely!
Thank-you StuntFactoryX


Please dont flame me becouse its so simple!!!



It also includes a README file

ultimatearco
09-10-2008, 08:35 AM
Version History
1.0: First version re-lased
1.01: Second version contains a fix
2.0: Has been relased and now also has the ability to be seen , idea by:StuntFactoryX (https://vborg.vbsupport.ru/member.php?u=143771)

JetHaCkR
09-10-2008, 12:02 PM
Well, its good for a beginner, but i think i guide for this has been made before,
keep trying anyways :)

apiasto
09-11-2008, 01:18 PM
thnx it was a great help for a beginner like me

StuntFactoryX
09-11-2008, 02:00 PM
<if condition="$show['member']">
<td class="vbmenu_control"><a href="[link]">text</a></td></if>

to clarify that will only show registered users the link.. to show everyone...


<td class="vbmenu_control"><a href="[link]">text</a></td>

RvG2
09-12-2008, 04:46 AM
nice post but this is not applicable to all styles... :)

EAMedia
09-12-2008, 10:53 AM
Perfect, Just what i've needed.

ultimatearco
09-12-2008, 02:56 PM
Perfect, Just what i've needed.
No problem, allways fine to help someone :)
nice post but this is not applicable to all styles... :)


<if condition="$show['member']">
<td class="vbmenu_control"><a href="[link]">text</a></td></if>

to clarify that will only show registered users the link.. to show everyone...


<td class="vbmenu_control"><a href="[link]">text</a></td>
I know, im curretly experimentating with some styles
I will also relase a version that supports everything (hopefully)
thnx it was a great help for a beginner like me
No problem

Well, its good for a beginner, but i think i guide for this has been made before,
keep trying anyways :)
Oh well :S

~Ulti

SEOvB
09-12-2008, 04:06 PM
Nice modification for beginners.

ultimatearco
09-12-2008, 04:17 PM
Thanks,

I will be adding support for the special themes, also trying to make a DHTML popup list :)

~Ulti

ultimatearco
09-13-2008, 02:40 PM
Thanks for your support all!
Il be trying to add the one for special styles

~Edit oops wasnt meant as a bump :(