![]() |
You would need to write some condition that is unique to whatever "Listings" is. I don't know anything about that page since it isn't a default vb page (or is it and you are just calling it something else?), so I don't know what the condition would be. If it's a custom page, then define THIS_SCRIPT at the top of the php page, like it is defined on other vB pages, and then you can use that in the condition.
|
Lynne,
Please be gentle with me on this...I've looked over your instructions...and I'm sitting here scratching my head. I have a mod installed called Chatbox Evo. There is no option in this mod to add a link to the navbar, or to the community link menu. I want to add a new tab on the navbar that opens the chatbox in full-page mode. I want to name this tab "Chat"...and it will be viewable by all who visit the site. The link to call the full-size chatbox is as follows: Code:
http://www.glitchpcforums.com/forum/mgc_cb_evo.php?do=view_chatbox |
Not really. I don't know anything about the code for that mod. You may want to ask the developer if there is a THIS_SCRIPT set on that page that you can use in the condition. Then you could do something like:
PHP Code:
|
Quote:
Thank you for the reply... Yes, there is a THIS_SCRIPT set on the page: Code:
define('THIS_SCRIPT', 'mgc_cb_evo'); Can you provide me with the code, or the modifications from your code...in order for me to complete this? I don't want to remove any lines of code from what you have given us...and leave myself hanging. I do understand coding...a little, but don't want to leave myself in a bind. Thanks, in advance... |
This is PERFECT for creating only a TAB, this is what I was looking for.
Quote:
|
Update...
Got 'er done! Thanks for the help...much appreciated. |
Quote:
|
Hi Lynne, I've read through a few of the posts here regarding having the forum tab highlighted along with the new tab. I added the tab fine, I'm using a UserCP tab, but the forum tab is highlighted when I click it.
Here's my plugin code Code:
if (THIS_SCRIPT == 'UserCP') // also defined('UserCP') possible |
There is not default vbulletin script named "UserCP", so is this on a custom page? And, you cannot have a template called "UserCP Nav Bar" - you may not have spaces in a template name.
I really don't get what you are doing with your plugin code at all and I don't see the tab code in there either. |
This is working just fine for me, and (as usual!) thank you, Lynne. :)
One quick question, here's my code - I'm just adding a link to vaispy. Everything works as it should, and I just removed the default dropdown menus from your code. Code:
$tabselected = ''; Thanks! |
All times are GMT. The time now is 03:05 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|