Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBadvanced CMPS Navigation v1.11 Details »»
vBadvanced CMPS Navigation v1.11
Version: 1.11, by cclaerhout cclaerhout is offline
Developer Last Online: Feb 2013 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.7 Rating:
Released: 09-10-2006 Last Update: 09-12-2006 Installs: 165
Uses Plugins Template Edits
 
No support by the author.

vBadvanced CMPS
Navigation v1.11



What does this hack do ?

This module allows a better integration of the navbar in vBadvanced CMPS portal. It changes the root of your forums to CMPS index page instead of your forumhome.
  • Case number 1 : you're on your portal page
    The navbar will display the short welcome message with the name your website.
  • Case number 2 : you're on forumhome
    The navbar will display the name of your site with the "forum" suffix.
You didn't catch a word of what i said. So just look at pictures


Install

To install this module, you have the choice between the automatic or the manual install. The second is to use when you have heavily made changes in your navbar template.
Automatic Install
Just import the xml product file. That's all.
Manual install
Edit the navbar template as follow.
Search :
Code:
                <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
Replace with :

Code:
<td width="100%"><span class="navbar"><a href="$vboptions[homeurl]$session[sessionurl_q]" accesskey="0">$vboptions[bbtitle]</a></span>
<if condition="defined('VB_AREA') AND in_array(THIS_SCRIPT, array('ajax','announcement','attachment','calendar','cron','editpost','faq','external','forumdisplay','image','index','infraction','inlinemod','login','joinrequests','member','memberlist','misc','moderation','moderator','newattachment','newreply','newthread','online','payment_gateway','payments','poll','postings','printthread','private','profile','register','report','reputation','search','sendmessage','showgroups','showpost','showthread','subscription','threadrate','usercp','usernote'))">
<span class="navbar"> > </span>
<span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vbphrase[forum]</a></span></if> $navbits[breadcrumb]</td>
Search :
Code:
		<else />
			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
		</if>
Replace with :
Code:
        <else />
<img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" />
<span class="navbar">
    <if condition="defined('VB_AREA') AND in_array(THIS_SCRIPT, array('ajax','announcement','attachment','calendar','cron','editpost','faq','external','forumdisplay','image','index','infraction','inlinemod','login','joinrequests','member','memberlist','misc','moderation','moderator','newattachment','newreply','newthread','online','payment_gateway','payments','poll','postings','printthread','private','profile','register','report','reputation','search','sendmessage','showgroups','showpost','showthread','subscription','threadrate','usercp','usernote'))"><a href="$vboptions[homeurl]$session[sessionurl_q]" accesskey="0"></if>
    <if condition="THIS_SCRIPT == 'adv_index'"><span style="font-size:10pt; padding-top:1px"><strong>$vboptions[bbtitle]</strong></span>
    <else />$vboptions[bbtitle]</a></if></span>
<if condition="THIS_SCRIPT != 'adv_index'">
<br /><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" />
<span class="navbar" style="font-size:10pt; padding-top:1px"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"></a><strong>$vbphrase[forum]</strong></span>
</if>
        </if>
N.B :
  • This hack can't be redistributed without my agreement.
  • I do not allow french "vb-ressources" forum to use it. For french forum, please go here.

Show Your Support

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

Comments
  #2  
Old 09-10-2006, 11:16 PM
Fatsobob's Avatar
Fatsobob Fatsobob is offline
 
Join Date: Jun 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this is a good idea.
Works like a charm on my site.
http://www.animeroot.com/forums/
Reply With Quote
  #3  
Old 09-11-2006, 02:04 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Working a charm: http://arathor.net/forum.php
Thank you
Reply With Quote
  #4  
Old 09-11-2006, 09:09 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I've asked for this before ..

One question .. where do I tell vB what the name of my forum page is called? I'm sure I've seen it in the settings somewhere but I can't find it .. I want to tell the system that my forum page is now forum.php, at the moment when I click on the forum link in the breadcrumb it goes to my index.php page which is my cmps page?
Reply With Quote
  #5  
Old 09-11-2006, 09:15 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

found it! ..

It's in the "Forums Home Page Options" page
Reply With Quote
  #6  
Old 09-11-2006, 09:19 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Couple of things ..

It seems to be adding an extra underlined space after the word "Forum" in the breadcrumb .. how would I get rid of that?

Also, it is adding the forum part of the breadcrumb on every page even when it shouldn't, as an example when it is looking at vB Gallery. How would you get it to not to add the forum part of the breadcrumb on certain pages?
Reply With Quote
  #7  
Old 09-11-2006, 10:36 AM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Slave
Couple of things ..

It seems to be adding an extra underlined space after the word "Forum" in the breadcrumb .. how would I get rid of that?

Also, it is adding the forum part of the breadcrumb on every page even when it shouldn't, as an example when it is looking at vB Gallery. How would you get it to not to add the forum part of the breadcrumb on certain pages?

Tell me if it's good now. It shoud be compatible with all vbadvanced scripts.
Reply With Quote
  #8  
Old 09-11-2006, 10:46 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK

That's got rid of the space and the Forums link when going to vBGallery. Thanks

However it hasn't got rid of the Forums link when going to things like news.php, local_links.php, arcade.php etc ..

Take a look at www.yaxleyvillage.com to see what I mean .. parhaps have an options page in the admincp where you could list pages which shouldn't have the Forums link in the breadcrumb?
Reply With Quote
  #9  
Old 09-11-2006, 12:05 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The 1.1 version should now work as you want
Reply With Quote
  #10  
Old 09-11-2006, 12:17 PM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect! Thank you!

Reply With Quote
Reply


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 02:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05064 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete