vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBadvanced CMPS (https://vborg.vbsupport.ru/forumdisplay.php?f=101)
-   -   Forum Index link on NavBar (https://vborg.vbsupport.ru/showthread.php?t=128940)

NEGATiZE 10-12-2006 06:53 PM

Forum Index link on NavBar
 
Hello, I'm running a site I recently came into control of and switched over to vBulletin and recently installed CMPS.

Forum Index: http://forum.panhandlegearheads.com/index.php
CMPS: http://forum.panhandlegearheads.com/cmps_index.php

I'm trying to get a link on the Navbar that allows a user to click on "Forum Index," which takes them to the main traditional forum listing page, as well as a corresponding "Home" link that takes them to the CMPS page.

If you guys don't follow what I'm saying, check out www.mazdas247.com. When you go there, it takes you to their version of CMPS. Clicking on the "Forum Index" takes one to the actual forum listing.

I'm going to admit I'm new to Administering a forum, so help would be much appreciated!

SCRIPT3R 10-12-2006 07:15 PM

add this to your navbar template accordingly...

if you want to limit the links to members only...
Code:

                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">Forums Index</a></td>
                </if>
                <if condition="$show['member']">
                        <td class="vbmenu_control"><a href="cmps_index.php$session[sessionurl_q]">Home</a></td>
                </if>

if you want the links for everyone...
Code:

                        <td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">Forums Index</a></td>
                        <td class="vbmenu_control"><a href="cmps_index.php$session[sessionurl_q]">Home</a></td>


NEGATiZE 10-12-2006 07:34 PM

Awesome! Thank you very much.

One last question that may blur things a little.

Currently, the forum.panhandlegearheads.com url points to www.panhandlegearheads.com/forum

I want to move the CMPS page to www.panhandlegearheads.com, and keep the index.php page at www.panhandlegearheads.com/forum, this way, when a user types forum.panhandlegearheads.com, they go directly to the forum index instead of the CMPS page.

The last time I tried moving the CMPS page to the root directory, the navbar broke, as well as the upper right login box.

Also, doing the above will necesitate me to change the above code to the proper URL, correct?

SCRIPT3R 10-12-2006 08:06 PM

from what i do understand, the CMPS_index.php file has to go into your forum root directory. rather then moving files, i would just change the redirect to point to your /forum directory.

NEGATiZE 10-18-2006 12:00 AM

Yep, that fixed it. Thanks!


All times are GMT. The time now is 04:44 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.01623 seconds
  • Memory Usage 1,721KB
  • 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
  • (5)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