This was very useful, thanks much.
Just a little thing I noticed while searching for something related to this tutorial... ** link removed ** Seems to be very familiar... word for word with no credit given in fact... how rude! |
Sorry, we don't like links to that site. However, I'm not surprised to see this there - that is what they do - copy, copy, copy, with no credit and no permission.
|
Ok I tried Cellarius' change for using with the CMS. Here is my code:
PHP Code:
Quote:
|
Cellarius' change doesn't work in 4.0.3 any longer. I haven't looked into it to see what works now.
|
Seems like getNodeId is deprecated in 4.0.3?
|
I'll do some testing and playing with, if I find a solution I will post it for all to use.
|
Try using $_GET to detect the section.
you can using this example: PHP Code:
|
Quote:
|
Quote:
I have the same problem, and got a good answer at vbulletin.com (although I dident get the solution to work) Here is the link: http://www.vbulletin.com/forum/showt...code&p=1964854 |
Quote:
But for now, It's better than nothing ;) |
Using $_GET['r'] isn't working. It will still have the Home tab and the new tab highlighted with both overlapping each other for sub links.
|
This works perfectly and is a very easy to understand tutorial on how to create a new tab. I had no problems whatsoever in implementing this.
Thank you so much |
Ok Yonatan's suggestion didn't work on 4.0.3 PL1. It is causing Home and my tab to be highlighted with all subsections from both displaying.
|
Quote:
|
I guess the code doesn't work for anything child level including subsections. I used $_GET and put all of my sections and subsections in an array in the vbcms, but only the top level sections will show the tab as hightlighted with the proper subnavbar below. If I click on a subsection, the correct tab stays highlighted, but the subnavbar selections disappear.
This is what I am using in the vbcms PHP Code:
PHP Code:
Parse error: syntax error, unexpected '{' in /data/22/2/56/92/2056418/user/2253608/htdocs/forumsbb/includes/class_bootstrap.php(399) : eval()'d code on line 14 |
Count your ( and ) - they don't add up, which is why you got the error.
|
Yup that was totally it. Thanks!
|
Hi, this thread is very long and I'm still quite new to vB but have experience in developing. Is there a tutorial somewhere that shows you how to create the new sections and how to have the navbar tabs link to them all in one?
Thanks. |
Quote:
|
Hi,
Thanks, the thing is when I search 'create new section' or 'create section' I do not get any returns of any interset. I have tried searching but find lots of really basic stuff but not how to create new sections, I might be confused. Basically I want to create a new tab called 'Contacts' which will link to a page with lists of names and contact details. It's straight forward how to add the tab but what about the pages of content to go along with it? I understand the code you pasted originally and conditions. In section manager I can only add sections to 'Home' I want to create a section to be linked to the new tab 'Contacts' |
I can't tell whether you are talking about the CMS or not. If so, the place you should look for documentation is on vb.com > click the Home tab there and read all the articles about it.
If you are simply talking about adding another page and then linking to that page with a navtab, then this is the article to create the navtab, and if you look at my profile, you will find the article to create your own custom pages. |
Hi there Im having a small problem... the tab creates sucesfully but when I click on it and enter the section, the navbar selected it still on "Forum" instead of the section I want.
How could I change this D:?? |
Quote:
|
I want to use this to put navlinks before the Home tab and then rename the hometab to CMS or Community.
How do I do this? Thanks |
Make sure you pick the appropriate template_hook location to put the tab before the Home tab. You may have to change the order on it to put it before or after the Home tab.
|
--------------- Added [DATE]1272985806[/DATE] at [TIME]1272985806[/TIME] ---------------
Quote:
I'm a complete novice... can you show me how? I used $template_hook['navtab_start'] |
Quote:
|
So the executing order is 5, should it be 1? If so... how do I rename Home (for the CMS frontpage tab) to Articles?
|
Quote:
Edit the phrase "site" to change "Home" |
Hey Lynne, great tread, can finaly add links to my nav bar.
This might be abit offtopic but, i was thinking to change my "Home" button on the navbar to another side and been searching around without no exacly explainable answer how to to do that. Do you know how to do that or where i can find the answer on that? :) |
Quote:
|
ahh thanks alot :)
|
I got it working for 1 link but now i want to make one for the FAQ too
Code:
Plugin PHP Code |
This is not valid for the faq page:
PHP Code:
|
Thanks Lynne, Everything worked great... execution controls order of tab.
|
Quote:
|
I cant believe we have to go through all this to add simple links to a navbar. What the hell? I dont know how to do all this. Make my own plugin, your kidding right? Now I'm gonna have to pay someone to add a few links to my navbar, unlike 3.8 where it was as easy as a simple template edit/addition. Unreal. I'm starting to see why people are going back to the old vb forums.
|
Quote:
|
I wasnt blaming Lynne, she actually helped me yesterday with another issue. Just frustrated because on 3.8 I could edit anything in templates very easily and now in vb4 it's like you need a college course. They say in another thread "find this code" in navbar template and I look and its not even there in my code. I cant win today, starting to dislike vb4 bigtime.
|
Lynne - thank you for this and I have played around with it and with some small changes to suit my needs it works well.
But I would like to add that I am having an issue with this whole new navbar setup for v4 especially given that the navbar is the most changed component, in my opinion, in vb. I use a navbar that is very similar to the new v4 one except with the added functionality of being able to hover on a tab and access the submenu of that tab for a set millisecond time before it bounces back to the currently selected tab. To do this I have to set the criteria for its use when using v3.8.5: Code:
<script type="text/javascript"> As you can see it is a "dogs breakfast" of an array and trying to convert this to a more vb way using your great tutorial here is really, for me, going from one "dog's breakfast" to another. So I raise this question...there must be a better way for everyone to manage their v4 navbar? Could a global variable be created and: - each time a user clicks a tab or submenu item the global variable is set to a number to correspond to the tab id - the page changes to the linked page - the tab that corresponds to the global variable is then made "selected" Very little code would be needed to facilitate this, you wouldn't need to worry about "THIS SCRIPT" or any other definition of what page is being displayed, very simple to include a setting of the global variable on clicking, and then reading the variable on page display etc. Is this an option? Would it make the navbar easier to manage? Would it improve performance? :confused: |
All times are GMT. The time now is 07:04 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:
|