vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - vBadvanced CMPS Navigation v1.11 (https://vborg.vbsupport.ru/showthread.php?t=126279)

cclaerhout 09-10-2006 10:00 PM

vBadvanced CMPS Navigation v1.11
 
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.

Fatsobob 09-10-2006 11:16 PM

I think this is a good idea.
Works like a charm on my site.
http://www.animeroot.com/forums/

Ninth Dimension 09-11-2006 02:04 AM

Working a charm: http://arathor.net/forum.php
Thank you

Slave 09-11-2006 09:09 AM

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?

Slave 09-11-2006 09:15 AM

found it! .. :)

It's in the "Forums Home Page Options" page :)

Slave 09-11-2006 09:19 AM

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?

cclaerhout 09-11-2006 10:36 AM

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.

Slave 09-11-2006 10:46 AM

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?

cclaerhout 09-11-2006 12:05 PM

The 1.1 version should now work as you want ;)

Slave 09-11-2006 12:17 PM

Perfect! Thank you!

:)

Slave 09-11-2006 12:31 PM

Whoops, just found a bug ..

When the plugin/product is active you get this error on any search page that has no results ..

Code:

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

cclaerhout 09-11-2006 02:21 PM

Quote:

Originally Posted by Slave
Whoops, just found a bug ..

When the plugin/product is active you get this error on any search page that has no results ..

Code:

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

I found the same bug a few hours ago when i tried to logout :( I don't understand the reason of this bug. My array seems to be good...


Edit : the problem happens each time a "vBulletin message" displays

Slave 09-11-2006 02:36 PM

I'd not spotted that, but you're right .. I'm also getting it when logging out ..

I take it you're working on it? ;)

cclaerhout 09-11-2006 02:45 PM

Well i give to do a clean array with a nice variable. I repeat it twice and it is working. Version 1.11 should be ok now.

Slave 09-11-2006 03:06 PM

Wonderful, seems to be working with no bugs .. thanks again :)

Phooey 09-11-2006 05:20 PM

Works great, thanks!

/installed

Exitilus 09-11-2006 09:38 PM

Hmm... I can't seem to get this to redirect properly to my main page. I've tried changing the forum home page option. But it continually re-directs them to the wrong link :|

Slave 09-11-2006 10:14 PM

2 places you have to make sure you have the correct name for files ..

1/ The forum home page option within vb options, which should be the name of the forum file, without the .php file extension .. example "forums"

2/ Within the default settings for vba cmps you also need to make sure this is the correct name for your cmps file, with the .php file extension as well as the / .. example "/index.php"

Also make sure that you have the files named correctly on the server ;)

Edit: Just had a look at your site, it seems like you've got your CMPS and forums on a different subdomain, so I'm not sure what you'll need to do to get it to work if the above doesn't fix it for you .. sorry :(

jgommel 09-11-2006 10:29 PM

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,

Exitilus 09-11-2006 10:38 PM

Yah... I want it to go to www.houseofcrazed.com/ but it just goes to www.houseofcrazed.com :-/

I could edit the code but I'm in a lazy mood *L*

cclaerhout 09-11-2006 11:23 PM

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.

cclaerhout 09-11-2006 11:25 PM

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.

jgommel 09-11-2006 11:49 PM

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.

cclaerhout 09-11-2006 11:57 PM

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.

cclaerhout 09-11-2006 11:59 PM

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.

jgommel 09-12-2006 12:12 AM

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!

Snake 09-12-2006 07:14 AM

Excellent!

navjotjsingh 09-12-2006 06:31 PM

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?

transitbus 09-12-2006 09:08 PM

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

cclaerhout 09-12-2006 11:05 PM

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 ?

cclaerhout 09-12-2006 11:07 PM

Hmmm... i've looked at the plugin file on vb.org... and it seems i didn't give you the good one ! The manual install is ok.

cclaerhout 09-12-2006 11:15 PM

I've upload a new xml file, please test it.

Edit : the manual code was change a little bit to try to solve these curious problems. If it's working with you, do not update.

m0nde 09-13-2006 05:11 AM

I like this. Thanks!

aLReeMi 09-13-2006 06:13 AM

Nice,
thanks alot

blacklancer 09-13-2006 07:23 PM

very cool. nice mod! thanks!!!!!

daloosaa 09-14-2006 11:22 AM

Hi,

i have an problem with this mod.

The navbar of vba cmps has not been changed (picture 3).

On Forumhome all works fine (picture 1 / 2).

I have taken manual installation.
vba is installed in the same directory as vbulletin.

(vba: ./index.php, vb: ./forum.php)
Im using vBulletin 3.6.0 and vba 2.2.0

I hope anyone can help me!

GreetZ, Florian

P.S.:
Sorry for my bad english, i've tried my best!

Edit:
The plugin has the same effect.

cclaerhout 09-14-2006 01:56 PM

Check your $vboptions[bbtitle] variable (must be in in admincp->vbulletin options)

navjotjsingh 09-14-2006 02:55 PM

Quote:

Originally Posted by navjotjsingh
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?

Thanks With this new update the mod works now! Thanks for the update!

daloosaa 09-14-2006 03:13 PM

Thank you for fast help.
It works fine.

GreetZ,
Florian

P.S. Nice Modification!

CouchMonkey 09-14-2006 05:09 PM

Worked for me. Awesome, thanks.


All times are GMT. The time now is 07:14 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.01552 seconds
  • Memory Usage 1,842KB
  • 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
  • (8)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete