vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2012, 11:35 PM
thecore762 thecore762 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Default Adding CMPS to vB 4.2.0 Navigation Manager

Yep...there are some issues with 4.2...
Brian has to update the plugin.
Basically Home page has the Forums tabs..
See here: www.47r-squad.com
Both of the tabs are selected when the home page is browsed.
Reply With Quote
  #2  
Old 05-27-2012, 12:10 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

That could be easily fixed. Create a plugin at
Quote:
navigation_tab_complete
and put in it

PHP Code:
if (THIS_SCRIPT == 'adv_index')
{
    
$tabid ''

__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #3  
Old 05-27-2012, 01:39 AM
anwar's Avatar
anwar anwar is offline
Member
 
Join Date: Jul 2010
Location: Karamay City, Xinjiang Uygur Autonomous Region of China
Posts: 30
Default

Quote:
Originally Posted by Lionel View Post
That could be easily fixed. Create a plugin at
and put in it

PHP Code:
if (THIS_SCRIPT == 'adv_index')
{
    
$tabid ''

wakitlik.jpg


fixed Error
Parse error: parse error in D:\wamp\www\anwarg8sinak\includes\functions.php(3618) : eval()'d code on line 1
Reply With Quote
  #4  
Old 05-27-2012, 02:14 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

only put the code in there

if (THIS_SCRIPT == 'adv_index')
{
$tabid = '';
}
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #5  
Old 05-27-2012, 02:19 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

and you will need to do that for a few items. Any non vB default tab you click currently highlight the Forum

example: http://www.47r-squad.com/counter-str...bal-offensive/
http://www.47r-squad.com/showroster.php

take a look at my site and you'll see all tabs are independent.
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #6  
Old 05-27-2012, 02:27 AM
anwar's Avatar
anwar anwar is offline
Member
 
Join Date: Jul 2010
Location: Karamay City, Xinjiang Uygur Autonomous Region of China
Posts: 30
Default

Create a plug-in picture shows , there are no errors during operation?
Reply With Quote
  #7  
Old 05-27-2012, 02:33 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

in your picture I saw
PHP Code:

that does not belong in there
__________________
Real useful and Cool vBulletin addons

Last edited by Lionel; 05-27-2012 at 02:42 AM.
Reply With Quote
  #8  
Old 05-27-2012, 02:44 AM
anwar's Avatar
anwar anwar is offline
Member
 
Join Date: Jul 2010
Location: Karamay City, Xinjiang Uygur Autonomous Region of China
Posts: 30
Default

Quote:
Originally Posted by Lionel View Post
in your picture I saw
PHP Code:

that does not belong in there
It is where I can not find other "navigation_tab_complete"?Help mewritethedetailed operation ofthe processThank you
Reply With Quote
  #9  
Old 05-27-2012, 02:55 AM
thecore762 thecore762 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Default

Quote:
Originally Posted by Lionel View Post
That could be easily fixed. Create a plugin at
and put in it

PHP Code:
if (THIS_SCRIPT == 'adv_index')
{
    
$tabid ''

Thank you lionel!
Reply With Quote
  #10  
Old 05-27-2012, 03:02 AM
thecore762 thecore762 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Default

Quote:
Originally Posted by Lionel View Post
and you will need to do that for a few items. Any non vB default tab you click currently highlight the Forum

example: http://www.47r-squad.com/counter-str...bal-offensive/
http://www.47r-squad.com/showroster.php

take a look at my site and you'll see all tabs are independent.
I was able to fix the vbAdvanced portal but the show roster is still not being fixed.

http://img42.imageshack.us/img42/5416/testpngp.png
Reply With Quote
  #11  
Old 05-27-2012, 03:20 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

you fix the showroster (and all others) the same way. Just get the THIS_SCRIPT name

http://www.vbcover.com/customdev/act...cmps_index.php

What you need is to empty the $tabid
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #12  
Old 05-27-2012, 03:26 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

example: (of course you change rosterscript to it's real name) and you can add as many as you want || THIS_SCRIPT == 'whateverdiablo'

if (THIS_SCRIPT == 'adv_index' || THIS_SCRIPT == 'rosterscript')
{
$tabid = '';
}
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #13  
Old 05-27-2012, 03:31 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

for forum tabs you would do (using correct forumid)

if ($GLOBALS['forumid'] == '38' || $GLOBALS['forumid'] == '49' || $GLOBALS['forumid'] == '41' || $GLOBALS['forumid'] == '35')
{
$tabid = ''; // Empty the tabid
}

example, this is a forum

http://www.vbcover.com/forums/49-Auctions
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #14  
Old 05-27-2012, 03:33 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default

Anyway I am going to bed. Good luck. You are in good hands with Brian.
__________________
Real useful and Cool vBulletin addons
Reply With Quote
  #15  
Old 05-27-2012, 11:43 AM
Morrow Morrow is offline
Member
 
Join Date: Oct 2004
Location: NJ
Posts: 96
Default

My only questions is... How to add additional menu items. This solution is a great quick fix but I would only like to stop the menu items from over lapping, not remove them in their entirety.

Thanks Lionel.
Reply With Quote
  #16  
Old 05-27-2012, 05:28 PM
thecore762 thecore762 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Default

Quote:
Originally Posted by Lionel View Post
example: (of course you change rosterscript to it's real name) and you can add as many as you want || THIS_SCRIPT == 'whateverdiablo'

if (THIS_SCRIPT == 'adv_index' || THIS_SCRIPT == 'rosterscript')
{
$tabid = '';
}
Sweet, that did it
Thank you ^^
Reply With Quote
  #17  
Old 05-27-2012, 06:14 PM
thecore762 thecore762 is offline
Member
 
Join Date: Jul 2008
Posts: 73
Default

Lionel, I know this is offtopic, any idea on how I can have the new posts have their own tab?
Reply With Quote
  #18  
Old 05-27-2012, 07:46 PM
ibaker's Avatar
ibaker ibaker is offline
Senior Member
 
Join Date: Feb 2008
Posts: 295
Default

Perhaps you may find it easier in many situations by simply doing:
1. In your Homepage settings ACP -> vBa CMPS -> Edit Pages -> select Homepage and make sure Add Navbar Link = "None"
2. Open up your new Navigation Manager in vb4.2 ACP -> Settings -> Navigation Manager, and add a Tab called "Home":
1.JPG
NOTE:
- Ignore the auto generated "Identity"
- Enter the "Title" what you want on your Home Tab
- Enter the "Target URL" to your site home index page (i.e. the URL to your CMPS Homepage)
- Enter the "Tab Script" used by the THIS SCRIPT of your CMPS which is adv_index

3. Set your Homepage Tab as your site default:
2.JPG

You now have your CMPS Homepage as your site home page and a tab for it plus the ability to add CMPS pages under it using the Navigation Manager with the URL being the normal link to the page:
3.JPG

For any subsequent CMPS Pages that you want a Tab for you can create another Tab using the 4.2 Navigation Manager. In this example I have created one called "Aircraft" but note the "Append 'tabid' to URL" for this one is set to "YES":
4.JPG

Hope this helps!
__________________
Regards
Ian
www.recreationalflying.com

Last edited by ibaker; 05-27-2012 at 07:57 PM.
Reply With Quote
  #19  
Old 05-27-2012, 11:22 PM
ricktas ricktas is offline
Member
 
Join Date: Nov 2007
Location: Hobart, Tasmania, Australia
Posts: 30
Default vBulletin 4.2.0 Navigation Manager

El-Cheapo work around for vBulletin 4.2.0 Navigation Manager ... (see above - ooops)

1. Disable the vBa CMPS plugin Construct Navbar Tab Links via admincp

2. Create a Tab (named Home or as you need) in the Navigation Manager
- My URL is {options.bburl}/home.php{session.sessionurl_q}
where home.php is the cmps_index.php copied to the forum folder.
- Set the Script option to adv_index
- Set the product to adv_cmps

3. [optional] Create Menus and/or Links under your Home Tab in the Navigation Manager

4. [optional] Get funky with Andreas' Navigation Manager Enhancements add-on
See: http://www.vbulletin.org/forum/showthread.php?t=283123

5. [very optional] Customise the Navbar...
See: http://www.vbulletin.org/forum/showthread.php?t=283146
__________________
AusPhotography - Australia's Premier Photographic Forum
www.ausphotography.net.au is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions
Rick (site owner) and Kym (site tech) using this account
Please vote for IPv6 support

Home of the AP fully comprehensive vb4 photographic competition management solution
Reply With Quote
  #20  
Old 05-28-2012, 09:54 AM
anwar's Avatar
anwar anwar is offline
Member
 
Join Date: Jul 2010
Location: Karamay City, Xinjiang Uygur Autonomous Region of China
Posts: 30
Default

Quote:
Originally Posted by ibaker View Post
Perhaps you may find it easier in many situations by simply doing:
1. In your Homepage settings ACP -> vBa CMPS -> Edit Pages -> select Homepage and make sure Add Navbar Link = "None"
2. Open up your new Navigation Manager in vb4.2 ACP -> Settings -> Navigation Manager, and add a Tab called "Home":
Attachment 6450
NOTE:
- Ignore the auto generated "Identity"
- Enter the "Title" what you want on your Home Tab
- Enter the "Target URL" to your site home index page (i.e. the URL to your CMPS Homepage)
- Enter the "Tab Script" used by the THIS SCRIPT of your CMPS which is adv_index

3. Set your Homepage Tab as your site default:
Attachment 6451

You now have your CMPS Homepage as your site home page and a tab for it plus the ability to add CMPS pages under it using the Navigation Manager with the URL being the normal link to the page:
Attachment 6452

For any subsequent CMPS Pages that you want a Tab for you can create another Tab using the 4.2 Navigation Manager. In this example I have created one called "Aircraft" but note the "Append 'tabid' to URL" for this one is set to "YES":
Attachment 6453

Hope this helps!
Quote:
Originally Posted by ricktas View Post
El-Cheapo work around for vBulletin 4.2.0 Navigation Manager ... (see above - ooops)

1. Disable the vBa CMPS plugin Construct Navbar Tab Links via admincp

2. Create a Tab (named Home or as you need) in the Navigation Manager
- My URL is {options.bburl}/home.php{session.sessionurl_q}
where home.php is the cmps_index.php copied to the forum folder.
- Set the Script option to adv_index
- Set the product to adv_cmps

3. [optional] Create Menus and/or Links under your Home Tab in the Navigation Manager

4. [optional] Get funky with Andreas' Navigation Manager Enhancements add-on
See: http://www.vbulletin.org/forum/showthread.php?t=283123

5. [very optional] Customise the Navbar...
See: http://www.vbulletin.org/forum/showthread.php?t=283146
Quote:
Originally Posted by anwar View Post
Thank you!
Thank you!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
vb 4.2, Navigation manager and url navbar redde2 Troubleshooting & Problems 9 06-08-2012 05:09 PM
vBulletin 4.2 - Alpha1 - Navigation Manager ricktas Troubleshooting & Problems 7 05-29-2012 08:43 PM
Quick Navigation Missing "Attachments Manager" Deyth Bugs From 1.1.0 0 02-01-2009 04:13 PM
3.6.7 CMPS v3.0 RC1 Site Navigation - adding links to the module top dog "How Do I..." Questions 2 07-22-2007 07:57 PM
[REQ] CMPS module for IRC Manager dstephan Module & Modification Discussion & Requests 5 05-28-2006 06:30 PM


All times are GMT -4. The time now is 01:08 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.