Hello,
i created it, but i dont get submenu? Look here: http://project-mp.com/index.php Titel in navbar is "Webradio" |
Hi Lynne great tutorial I was able to get it to work fine on some tabs, but I am having problems when I have "conflicting" items.
For example, I am trying to create a separate tab for the "usercp.php" page called "My Forums", however I guess the usercp.php page is already tied to the main Forum tab. So when I click the new tab I created, I get both tabs highlighted and the submenus overlap. I am not certain how to make the new tab "unique" if that makes sense. Any help would be appreciated thank you. |
Quote:
Quote:
<vb:elseif condition="$vboptions['selectednavtab']=='usercp'" /> So, you'll need to change that to say "if selectednavtab is usercp but NOT whatever-your-condition-is" |
Quote:
|
I don't know how else to explain it. In the navbar code, there is a submenu set to be displayed when you are in the usercp. You are trying to create a different one to show. The two conditions cannot exist at the same time. You need to have UNIQUE conditions or only one can display.
|
How do we make this new tab have a drop down menu?
|
Quote:
|
OK... I'm stuck here. I get an error when i activate the code...
arse error: syntax error, unexpected T_STRING in /public_html/forums/includes/class_bootstrap.php(399) : eval()'d code on line 61 Code:
$tabselected = ''; Found my issue.. One of my links had a ' in the link description. |
Excellent guide, thanks Lynne. Finally making my first venture into making new pages in vB4 and this helped me a lot. :)
|
Does anyone know of a guide on how to recreate the quick links including drop downs in the Navbar?
|
All you need to create a dropdown is there in the code from first post in this thread:
HTML Code:
<li class="popupmenu"> |
Right see all people really want is a button on the navbar saying what's going on. What would I have to do for that?
|
Quote:
|
I've used portions of this article which worked great through 4.0.2pl2.
Now with pl4 I don't see the selections of the link until I hover over it. Problem with Firefox Mac and PC. Anyone else having this problem? SOLVED: Reverted template. |
And what if I want to link into section like:
Code:
content.php?r=5 |
Ok chaps...please please please do not bite my head off.
I understand the basics of this and Lynne thank you for producing this guide. What im not understanding is how to link offsite. For example our site has a number of facebook games...we produce them (dont hate me). I want to be able to link to those sites. Now currently I use: vBH - Add new tabs 1.2 1.2 This plugin adds new tabs to the main navbar this is of course fine and dandy...however till you get to the issue of screen size. People with smaller screens end up with squished nav buttons. example http://forum.clipwiregames.com/forum.php if u use half screen u will notice all the additional tabs get squished. Now i did a couple of test tabs using Lynnes setup and they did not, it worked perfect. Thus my only issue is understanding how to make the links not internal php links but external. thanks ...hopefully i made myself semi clear. |
Quote:
Quote:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
If you're linking to a site outsiede vB, it does not make much sense to show a tab as highlighted. You simply don't need that part.
|
Quote:
|
Sorry, I mixed you up with jacx. Anyway, I posted the solution for your problem on the previous page of this thread, #199
|
Quote:
Quote:
this is my code: PHP Code:
|
Quote:
when i tried that it took me to http://mysite.com/link.php Edit...im trying to post the code i used and keep getting "Bad Request" when i do it..anyone know what im doing wrong so i can post what i had entered? |
Hi Lynne,
If I want only the user with id=1 to see the link. What I have to do? Thanks. |
Quote:
Quote:
|
I created a PHP file with nothing in it but the following:
PHP Code:
PHP Code:
PHP Code:
When I click on my new tab, it highlights the Forum tab and shows all the regular stuff found under Forum (New Posts, Private Messages, FAQ, etc). Any help is appreciated. |
Quote:
I create new NavTab as follow, and I want only me to see the Chat Admin. Please help. Code:
$tabselected = ''; |
Quote:
Quote:
PHP Code:
PHP Code:
|
Thank you very much.
|
Thanks for the reply Lynne...I actually have no clue what I'm doing (is it that obvious?). I just want to have a new link called Local Links that when clicked will show 4 new sublinks with their own links. On the new tab I really don't need it to display any content when it's clicked, just the links. Is this the right mod for me? Thanks again.
|
Quote:
|
Lynne, this is brilliant! I upgraded my forums (drzforums.com) last night, and ran into a few pain-points. Using your instructions, I created the navigation tabs that I would like, reusing all of the sub-menu links from the "Forum" tab. Now, I'm left with one more question, which I am having difficulty finding through search.
There is one "Quick Link" that refers to a javascript code bite. How do I program "Open Contacts Popup?" Can you point me in the right direction? Thank you for the trouble you went through to document the tab creation process! Heh... I guess I'm going to have to setup some conditionals for several of the sub-menu items. :) (I just viewed my site as a guest.) |
Quote:
|
THANKS Lynne! Very helpful!
|
Quote:
|
Quote:
|
Do you know if it's possible to use vbAdvanced to create a BB Code page and have it work with this mod then? If memory serves the url looks something like sitename.com/index.php?pageid=pagename
what would you use for THIS_SCRIPT in that situation? SOLVED: I used: if (THIS_SCRIPT == 'adv_index' AND $pages['name'] == 'testpage') |
I want to create a tab for a specific section in the CMS. Is there a way to get the section name in the PHP code?
I can see the section name in the navbar so maby I can get the navbar text and use this for a compare? I was thinking something like PHP Code:
Please can anyone help? I have searched for this the whole day |
Quote:
|
Quote:
Sorry if I am not being clear, I was hoping someone new a way to check for a section name in the php code. |
All times are GMT. The time now is 06:50 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|