To make tab selected:
This option only works if your tab links to internal files. You need to enter the THIS_SCRIPT value under the option Tabs Selected.
Also note that some areas of vBulletin already use the THIS_SCRIPT value in their code and because of this some tabs may not work correctly. A example of this would be the usercp.php file. If you make a tab linking to this file and then you enter the value 'usercp' to make it selected, the tab will be selected but also will be the forum tab. This is because vBulletin used this value in the navbar template.
You won't have problems when linking to custome pages.
However, I don't know the code to search for Todays Posts. I wanted to emulate the 3.8.4 navbar a little and I found the code from within the userCP, cut and pasted it but it didn't work. Any ideas?
New posts are tagged by default in Vb 4 but should end with
Code:
search.php?do=getnew&contenttype=vBForum_Post
For today's posts (Also in Navbar) should end with
Code:
search.php?do=getdaily
All the above after the correct path to your forum
Very nice! I may have to use this, I don't have the CMS installed so I only have 2 tabs, "Forum" and "What's New".
I'll be installing ibProArcade, so I can use this mod to add a tab for "Arcade". I might also have to add one for "Social Groups" and "Albums".
I had a request from one of my members to have tabs which, when clicked, will take him to a listing of his posts with another tab taking him to his threads. Obviously he could achieve the same by going through the 'my profile' link in the header but it would be nice to get to the posts and threads with just one click. The problem is that I don't know which url to point the buttons at to achieve this. I'd appreciate any help.
What about this link? search.php?do=finduser&userid={USERID}&contenttype =vBForum_Post&showposts=1
(Replace {USERID} with whatever the phrase is to display their user ID)
That will show all his posts.
I'm not exactly sure how you can show the threads, I get different results when I change "showposts=1" to "showthreads=1", but I'm not sure what the difference is exactly.
This one will open in a new window, visible only to administrators.
vBulletin.org|http://www.vbulletin.org=>blank
If you don't specify a usergroup, that means that will be visible to all users.
A live list of usergroup (IDs) on the settings page would be nice.
The only problem I have had (using the vB4 default template in RC4) is when the screen size is small, the added tabs wrap down to a second line, and therefore mess us the layout.
It seems to be due to the design of the template itself, however, is there a way to fix this within this plug in or do I need to modify the template to keep the fixed with? (and if I do, it kind of defeats the purpose)