Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

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
  #22  
Old 09-11-2006, 11:23 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Exitilus
Yah... I want it to go to www.houseofcrazed.com/main.php but it just goes to www.houseofcrazed.com :-/

I could edit the code but I'm in a lazy mood *L*
I'm going to check the variable wait.
Reply With Quote
  #23  
Old 09-11-2006, 11:25 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jgommel
I tried to install manually and get the following error:

The following error occurred when attempting to evaluate this template:

Code:
Parse error: syntax error, unexpected '<' in /home/neosmutc/public_html/vb/includes/adminfunctions_template.php(3593) : eval()'d code on line 34

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I've gone back and attempted the install three times to make sure I'm not missing something... no luck.

I'm running CMPS 2.2.0 on vBulletin 3.6.0. The skin/theme I'm using is called iSkinBlack by eXtremepixels. I'm not sure if the skin is causing the issue or not?!? CMPS and vB are both on the same domain - CMPS is installed in the root and vB is installed in a folder called /vb.

I did rename the CMPS from the default name to just index.php for simplicity reasons.

My site address is: www.neosmut.com

Thanks,

Anyway, i've to test the manual edit install. I'm going to check this too.
Reply With Quote
  #24  
Old 09-11-2006, 11:49 PM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cclaerhout
Anyway, i've to test the manual edit install. I'm going to check this too.
Okay -- I'll watch the thread for your results.
Reply With Quote
  #25  
Old 09-11-2006, 11:57 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jgommel
Okay -- I'll watch the thread for your results.
It's corrected sorry. I had forgotten to end the conditional. Manual edit works now.
Reply With Quote
  #26  
Old 09-11-2006, 11:59 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The variable in use is to bring back user to portal is : $vboptions[homeurl]
To configure it, just go to admincp->Site Name / URL / Contact Details->Homepage URL

That's all.
Reply With Quote
  #27  
Old 09-12-2006, 12:12 AM
jgommel's Avatar
jgommel jgommel is offline
 
Join Date: Jun 2005
Location: Ohio
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cclaerhout
It's corrected sorry. I had forgotten to end the conditional. Manual edit works now.
Working like a charm! Thank you - this will come in handy!
Reply With Quote
  #28  
Old 09-12-2006, 07:14 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!
Reply With Quote
  #29  
Old 09-12-2006, 06:31 PM
navjotjsingh navjotjsingh is offline
 
Join Date: Feb 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_PRIVATE, expecting ')' in /home/exguides/public_html/career/includes/adminfunctions_template.php(3593) : eval()'d code on line 32

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Any idea what it is? BTW I use vb 3.6.0 with vBadvanced CMPS 2.2 with both on same directory.
For me Manual as well as automatic install is not working? Do I need to edit in these codes something before I use these installs?
Reply With Quote
  #30  
Old 09-12-2006, 09:08 PM
transitbus transitbus is offline
 
Join Date: Aug 2006
Location: California
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I get

Warning: in_array(): Wrong datatype for second argument in /includes/functions.php(2333) : eval()'d code on line 31

with this mod added so away it goes
Reply With Quote
  #31  
Old 09-12-2006, 11:05 PM
cclaerhout's Avatar
cclaerhout cclaerhout is offline
 
Join Date: Aug 2004
Location: Paris (France)
Posts: 448
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1-First of all, are your sure to use the last version of this hack ?
2-In which page was you when the problem happens ?
3-Did you use manual or automactic install ?
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 12:50 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.04803 seconds
  • Memory Usage 2,320KB
  • 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
  • (5)bbcode_code
  • (6)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