I'd like to make a blog category into a tab while at the same time not activating the Blogs tab. Would this be the proper format?
PHP Code:
|
Quote:
|
Hi Lynne,
Been trying to figure this one out. All I want to do is add a new tab that displays the following.... ...search.php?do=getdaily&contenttype=vBForum_Post &include=27,35,59,76,84,85 That gives me todays posts from a select group of forums that I have as sales forums. By clicking on the tab, my members can view "Todays Ads". The tab works, in so far as it throws up the right results, but it doesnt stay selected. I believe this is because THIS_SCRIPT is "search" which is not unique. Do you know of any way to resolve this? I dont want submenus or anything else, I just want to put this link in the tabs at the top of my forum. I've tried the different tabs mods, I've tried tabs with templates and your mod and the same problem occurs with all of them. At this point, I'm thinking how bad is a piece of software that wont allow a simple link to be added to the menu system? I'm generally liking vB4, but the navbar is truly awful. I'm starting to think this is not actually possible. |
Quote:
|
1 Attachment(s)
Hi there, Lynne. :)
I had a question related to tabs. I actually created a separate thread for it, but somehow it hasn't got answered yet. Actually, in the tabs, I wanted to add icons / images along with the link as well. e.g. add a home icon in the Home tab (on the left of "Home" text). The only thing I couldn't figure out was where exactly would I need to add the image source for the desired icon? I messed around a bit, and in "blog_navbar_link" found the following code: Code:
<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}">{vb:rawphrase blogs}</a></li> Code:
<li><a class="navtab" href="blog.php{vb:raw session.sessionurl_q}"><img class="inlineimg" src="http://forums.pakfellows.com/images/icons/Homepage/blog.png" border="0" />{vb:rawphrase blogs}</a></li> Could you help me with this please? :) |
Hi,
How do set permissions on just e.g. The line with Misc in it. I only want that to show to certain Groups. PHP Code:
|
Quote:
Quote:
|
I got as far as this:
PHP Code:
Can anyone help with this, please. |
Take a look at the code in the first post again. You are closing the <ul> tag before you are supposed to. It should be open for all submenu items.
|
I have looked the first post again, but still can't get it working.
Any chance you could fix it please. |
Assuming your code was correct to begin with, this should work:
PHP Code:
|
Thank you for that. It works perfect.
|
Hi Lynne, thanks for another great guide :) (Yes, I'm a suck up).
Just wondering if could have it so the sublink menu popup menu can be displayed when hovering your pointer over it instead of having to click, is there an in-built JS within VB to do this or would I have to use an external one? |
Quote:
|
Thanks Lynne. :)
|
i want to add a new "nav link" to go to the privet messages.
like in this original photo- how can i do that ? https://vborg.vbsupport.ru/external/2011/07/104.jpg |
Can this plugin call variables from my custom page?
I'm looking to use this menu to sort the tables on my custom page. My custom page creates an array (which you may be familiar with in another post): PHP Code:
|
Quote:
Quote:
|
Quote:
|
hii - i donnt want to make what you do in this articles ,.
i want to add NAV LINK - not a drop down menu ! |
Quote:
|
Thanks very much for this (and your create own page tutorial) Lynne, your work is massively appreciated.
Can I be a pain and ask your advice? I am attempting to include two tabs on my test forum. One works fine, not a problem but the second tab doesn't remain highlighted once clicked. I've read through the thread and fiddled with it for over an hour, any possible chance you could have a look at my code and identify the problem? Working Tab; Code:
$tabselected = ''; Code:
$tabselected = ''; :confused: |
Quote:
|
Thanks but still having the same problem Lynne after changing the bottom link to a unique page.
|
Quote:
PHP Code:
|
Quote:
Thanks Lynne. All sorted now! :) |
I just tried adding a new tab in navtab. I have suceeded adding a tab.
But I still have questions to get it working fully. So please help me out. I added a new tab called 'product' in navtab. Q1) Do I have to create a page for product as a php file? Q2) if so where do I upload the php file? which folder? Q3) After making the file and link it with the 'product'tab, would submenus show up? Currently 'product' tab is linked to index.php for testing purpose. Therefore it highlights 'home' tab and shows home's submenues. |
Quote:
2) Wherever you said it was supposed to link to in your tab (same folder as other vbulletin files?) 3) Only if you write the condition correct about when to show the submenus and make the tab 'selected'. In my example, the condition is based about THIS_SCRIPT, so if you define THIS_SCRIPT in the products.php page, then use it in your condition like in the example. |
Hey Lynne,
First off let me say that this guide has been incredibly helpful for me. I love being able to customize the tabs, and your instructions were easy enough to follow. I have a good amount of experience with VB, but I have hit a snag. I did some reading in this thread, some searching of this thread (as well as google) and still have not been able to find a solution to my problem. I am using VB 4.0.2 Suite with the CMS as the homepage. I have a number of different "Sections" set up in my CMS, and I would like each section to have its own button on the NavBar Tabs. This causes me problems because when I set it up so that a section (lets call it "Events") has its own button, even though I have set a custom THIS_SCRIPT setting for the plugin, the home button is still "selected" on the navbar. I believe this is because the "Events" page still is generated from the content.php file, and this is causing the problem with the THIS_SCRIPT setting, as they would be the same. Is my thinking correct? If so, is there anything I can do to work around this? Thanks in advance! |
The conditions for showing the HOME tab to be 'selected' are in the plugin for the Home tab - Navbar: Insert CMS Navbar Entry. You would have to rewrite that condition so the tab is not selected when you want one of your other tabs to be selected.
|
Is there an easier way to do so or maybe a guide I could follow? I dont have much experience with vBulletin Conditionals.
Thanks |
1 Attachment(s)
This is great however the only issue I have found is the height of the navbar isn't consistent.
Here is what I mean: Attachment 113573 This is my plugin code: Code:
$tabselected = ''; |
Quote:
As for it being inefficient, I wrote this just to add a single tab. I suppose it could be modified slightly to make it more efficient when you add several tabs, but I really don't know that it would make a huge impact. |
Thanks Lynn - have worked out that if you don't have a sub menu under a tab you will get that inconsistency in the navbar height so I have added a sub menu like "About", "Site Rules" etc and that fixed it.
Any suggestions on how I could make it more efficient so I can have tabs across the page - thanks! |
unfortunately this just doesn't work for me. i added the plugin with the exact things you posted in your entry post (just to see, if it works) and it doesn't even generate a navtab, even though the plugin is activated. I'm on vB 4.0.2 PL1
EDIT: okay nvm. i had to enable the plugins globally. :D |
I've got this working except for the selected tab being highlighted as "on". What I need now is to figure out how to specify each of these specific articles as the condition. I have added three tabs: Raid Teams, Roster and Recruitment.
Each of these tabs points to a specific article, meaning content.php?r=articlename. How can I specify that as my condition? Since they are articles, I can't use the THIS SCRIPT since it's content.php?r=articlename? I tried article titles (since that worked for my content section vb:if code, but it didn't work for this.... if ("$title == 'Raid Teams'") Code:
$tabselected = ''; |
Hello Lynne,
You have helped me out with a lot of problems on Vbulletin.com yesterday and today. I am hoping you can help me out with something here. There are a couple of things I am not sure about. I did what you said in your first post. The Nav Link tab appeared. I changed it to Home and changed aswell the link. It worked perfectly. Thank you for that! You are helping out many people! - Do I need to add the same plugin for each tab I need to create? Or do you edit it in the code? - Is there a way to organize the tabs? I only got the forum installed and not the CMS. My first tab is Forum, than What's new and than the Nav Link (now renamed it to Home). When I edit the code and the new tab is hooked to navbar_start instead of navbar_end. Than it shows before Forum and What's new. That is good. But I need to create 4 more tabs. How can I organize those if they appear after navbar_end? |
Quote:
Quote:
|
For the php condition in CMS you should be able to use
PHP Code:
Now, if you have your custom tab highlighted, you don't want the Home Tab highlighted at the same time. To prevent Home Tab being selected, edit Template vbcms_navbar_link Code:
<vb:if condition="$vboptions['selectednavtab'] == 'vbcms' AND !in_array($nodeid, array(1,2,3))"> |
Thank you, cellarius! I knew what had to be done, just not exactly how to do it. Thanks for posting that. :)
|
All times are GMT. The time now is 03:17 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|