vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I need help adding a "home" button to my pages (https://vborg.vbsupport.ru/showthread.php?t=104508)

jaybquick 01-05-2006 07:54 AM

I need help adding a "home" button to my pages
 
I added a home page via cmps. I also added a "forum" button. I just need to add a "home" button to go back to the cmps page. I tried to edit the xml template and upload just like I did with the "forum" button. It did not work.

Please help. Thanks

here is the link to my site: http://www.centralvalleyspeed.com

peterska2 01-06-2006 02:55 PM

In your navbar template

FIND

Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

ADD BEFORE
Code:

<td><a href="$vboptions[homeurl]">Home</a></td>
<td><a href="$vboptions[bburl]">Forums</a></td>


jaybquick 01-06-2006 03:24 PM

Quote:

Originally Posted by peterska2
In your navbar template

FIND

Code:

<if condition="$show['member']">
                        <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                </if>

ADD BEFORE
Code:

<td><a href="$vboptions[homeurl]">Home</a></td>
<td><a href="$vboptions[bburl]">Forums</a></td>


I hope I did this right. I did this in the admin control panel instead of manually. The navbar template or any other template doesn't have it, I did the search. I was only able to add the other one to the main XML template file then upload it to get forums. however that did not work for adding a home button.

peterska2 01-06-2006 04:09 PM

that code was taken from the default navbar template.

yes doing it via the acp and style manager is correct

jaybquick 01-07-2006 02:34 AM

Quote:

Originally Posted by peterska2
that code was taken from the default navbar template.

yes doing it via the acp and style manager is correct

have the red2black and I can add it to the XML template but it doesn't work. It did work for m forums link though. Any ideas where else I should add this in the red2black stuff.

Thanks again for all your help.

peterska2 01-07-2006 12:39 PM

Not a clue. Try asking in the support thread for that style.

jaybquick 01-07-2006 08:53 PM

Quote:

Originally Posted by peterska2
Not a clue. Try asking in the support thread for that style.


Ok, Thanks


All times are GMT. The time now is 07:41 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.01224 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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