vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   new navigation buttons - how to (https://vborg.vbsupport.ru/showthread.php?t=163305)

dsexton1055 11-21-2007 08:39 PM

new navigation buttons - how to
 
i installed the showroster hack (https://vborg.vbsupport.ru/showthrea...howroster+Hack) and i have found that i must make the button on the nav bar at the top of the forum index page (where usercp, faq memberlist etc. is). (please note that i am not asking for assistance on this mod as i need to make more than just this button, this is a general question not mod related) so can anyone point me in the right direction of what template i need to edit? i am confident that after finding the correct template i can edit it myself without the need of coding assistance. right now the forum is at a default style.

also, if i change styles on the forum will i need to update this new style or will this be automatically done?

Thanks.

snakes1100 11-21-2007 08:51 PM

1. navbar

2. new styles dont have custom buttons that you make, if its a child style of the parent, edits should trickle thru the child styles.

dsexton1055 11-21-2007 09:11 PM

thanks for the reply. supprised it was so fast.

good lord... i didnt think php script was so... garbled. i think ill stick with html and visual basic.

could you or someone else give me an example of adding a button to link to a page. just for the example say... the button is displayed as "example page" and the link to the page is in the forum directory root "example1.php"

can you show me something like this and give me a basic area on where to put it in the page?

seems my confidence in being able to look at php code and pick up the basics was slightly misplaced.

~~

edit:

i guess i know a little more at what im doing than i origonally thought. here is what i have done. doesnt work completely yet.

Code:

$template_hook[navbar_buttons_left]
        <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
        <td class="vbmenu_control"><a href="showroster.php$session[sessionurl_q]">$vbphrase[clan_roster]</a></td>
        <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>

``

in red is what i have added as the first page. however when i do this it does not show up. but if i replace that with

Code:

<td class="vbmenu_control"><a href="showroster.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
then i get 2 members list buttons and one points to the page i want it to go. i figure there is a declaration somewhere in there that im not seeing but i dont know where it is. ideas?

snakes1100 11-21-2007 10:12 PM

You have to create the phrase clan_roster it dont exist and is why it dont show up.

$vbphrase[clan_roster]


All times are GMT. The time now is 10:27 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
  • Page Generation 0.01401 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete