Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBadvanced CMPS
Forum Index link on NavBar Details »»
Forum Index link on NavBar
Version: , by NEGATiZE NEGATiZE is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-12-2006 Last Update: Never Installs: 0
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-12-2006, 08:15 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 10-12-2006, 08:34 PM
NEGATiZE NEGATiZE is offline
 
Join Date: Oct 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 10-12-2006, 09:06 PM
SCRIPT3R SCRIPT3R is offline
 
Join Date: Jan 2005
Posts: 1,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 10-18-2006, 01:00 AM
NEGATiZE NEGATiZE is offline
 
Join Date: Oct 2006
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, that fixed it. Thanks!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:09 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.04310 seconds
  • Memory Usage 2,227KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete