vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Adding links in the nav bar (https://vborg.vbsupport.ru/showthread.php?t=190532)

ultimatearco 09-09-2008 10:00 PM

Adding links in the nav bar
 
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'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:

Code:

  <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:



Code:

                  <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:
Code:

                        <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

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

Code:

<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...

Code:

<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

Quote:

Originally Posted by EAMedia (Post 1620455)
Perfect, Just what i've needed.

No problem, allways fine to help someone :)
Quote:

Originally Posted by RvG2 (Post 1620323)
nice post but this is not applicable to all styles... :)


Quote:

Originally Posted by StuntFactoryX (Post 1619849)
Code:

<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...

Code:

<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)
Quote:

Originally Posted by apiasto (Post 1619828)
thnx it was a great help for a beginner like me

No problem

Quote:

Originally Posted by JetHaCkR (Post 1618916)
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


All times are GMT. The time now is 06:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete