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
  #62  
Old 02-13-2007, 09:44 PM
Kiint Kiint is offline
 
Join Date: Nov 2006
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What he means is to replace $vbphrase[forum] with the word home

not $vbphrase[home] but just ---> home <---
Reply With Quote
  #63  
Old 02-14-2007, 05:58 PM
BSchrader BSchrader is offline
 
Join Date: Feb 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand now. Replacing $vbphrase[forum] with the word home does make a difference. It changes the name of the current location in the navbar.

That is not at all what I want to do. The current location default in the navbar is correct; but I need the displayed text mysite.com Forum changed to mysite.com Home.

Thanks for the suggestion anyway. I'm open to any others you might have.
Reply With Quote
  #64  
Old 02-14-2007, 09:28 PM
Kiint Kiint is offline
 
Join Date: Nov 2006
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose you could do something similar to what you originally did, but create a new phrase in Phrase Manager called Home with the description as "Home", with the phrase type set as Global.

And then change the code from $vbphrase[forum] to $vbphrase[home]

edit: ignore that, if i guess correctly you wish for the link to display as mysite.com Home > Forum not mysite.com Forum > Forum

Just edit the code from:

Code:
$replace[] = '<span class=\"navbar\"><a href=\"" . $GLOBALS[\'vbulletin\']->options[\'homeurl\'] . "" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . "\" accesskey=\"0\">" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . "</a></span
>

to

Code:
$replace[] = '<span class=\"navbar\"><a href=\"" . $GLOBALS[\'vbulletin\']->options[\'homeurl\'] . "" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . "\" accesskey=\"0\">" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . " Home" . "</a></span>
Notice the extra " Home" text added.

And also change your site name in the vBulletin Options, Site Name / URL / Contact Details from mysite.com Forums to mysite.com
Reply With Quote
  #65  
Old 02-17-2007, 01:08 AM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great stuff added this to my site. works perfectly many thanks
Reply With Quote
  #66  
Old 02-18-2007, 05:44 PM
BSchrader BSchrader is offline
 
Join Date: Feb 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kiint View Post
Just edit the code from:

Code:
$replace[] = '<span class=\"navbar\"><a href=\"" . $GLOBALS[\'vbulletin\']->options[\'homeurl\'] . "" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . "\" accesskey=\"0\">" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . "</a></span
>
I'm sorry, but I cannot find that code. It doesn't show up when I use Search in Templates or when I look through the navbar template. Could you clarify where it is or how to find it? Thanks.
Reply With Quote
  #67  
Old 02-18-2007, 07:18 PM
Kiint Kiint is offline
 
Join Date: Nov 2006
Posts: 191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sure, simple steps.

go to your admin panel,
open up Plugins and Products
Click on Plugin Manager
Scroll down to CMPS naviguation module, click on [Edit]

Find
Code:
$replace[] = '<span class=\"navbar\"><a href=\"" . $GLOBALS[\'vbulletin\']->options[\'homeurl\'] . "" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . "\" accesskey=\"0\">" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . "</a></span
(There is no search option for this, you will have to manually look into the code and find it)

Change it to:



Code:
$replace[] = '<span class=\"navbar\"><a href=\"" . $GLOBALS[\'vbulletin\']->options[\'homeurl\'] . "" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl_q\'] . "\" accesskey=\"0\">" . $GLOBALS[\'vbulletin\']->options[\'bbtitle\'] . " Home" . "</a></span>
Notice the extra " Home" text added.

Now go to vBulletin Options in your admin control panel
Select Site Name / URL / Contact Details from the list
remove the word "Forums" from your Forum Name so that it appears as "mysite.com" and not "mysite.com Forums"

If this doesn't work then I'd suggest you spend some time looking at the code and figure it out as I'm no expert on this, I just tested and played with the code until I got the results you wanted, then changed it back once I knew it worked
Reply With Quote
  #68  
Old 02-18-2007, 08:01 PM
BSchrader BSchrader is offline
 
Join Date: Feb 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Kiint, you nailed it! Now it works perfectly. Thanks for your help.
Reply With Quote
  #69  
Old 02-21-2007, 02:23 PM
Masked Crusader Masked Crusader is offline
 
Join Date: Oct 2005
Location: Sacramento, CA, USA
Posts: 293
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Clicked install.
Reply With Quote
  #70  
Old 07-01-2007, 11:22 AM
princeedward's Avatar
princeedward princeedward is offline
 
Join Date: Jan 2007
Location: Deutschland
Posts: 901
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great like a charm...to my vBv3.6.7 PL1

many thanks bro...

Reply With Quote
  #71  
Old 07-01-2007, 12:21 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup. Very nice.

Is it possible to change 'Forum' to something else? If so, where do I do that?
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 01:53 AM.


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.10301 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
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
  • (9)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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