The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add drop down to certain boards and not others.
I would like to add a drop down box to some of my boards. In this drop down box it would be a list of my prefixes for that board and when they click on one of the prefixes in the drop down it will sort that board by the prefixes.
I know I will have to have the forumdisplay template check the board ID and if is one of the board IDs I want the box on then display it. Could someone show me what the if statement would look like for checking the board ID? I can figure out the drop down menu part for myself. Also on a related note, is there a way to add a tabid onto the address a board link opens? |
#2
|
||||
|
||||
The search function already allows for searching and filtering by prefix. When you say "Sort the board" do you mean every forum or just the forum the member is viewing?
|
#3
|
|||
|
|||
Just the forum the member is looking at. This isn't filtering by prefix in the same manner. The forum covers a couple different models of cars and I have a prefix for each model. Currently I am using Lynne's plug to click on the prefixes and that will eliminate all threads without that prefix on the current board.
The problem is, the person has to search for a post with that prefix in the board they want to quick sort without fully searching. So if there is a drop down menu on the board at the top, they can just set it to whatever model they need to search for. |
#4
|
||||
|
||||
Ok, go to Plugins & Products in your admincp, Add new plugin, give it a name and description, use hook loaction "forumdisplay_query" add this code
PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Unfortunately it only printed $dropdown on the page.
Is there no way to just add to a template a basic if $forumid = 11 then do this style thing? I know it's messy, but this vB4 code looks nothing like what I am familiar with in vB3. --------------- Added [DATE]1342934977[/DATE] at [TIME]1342934977[/TIME] --------------- Even this doesn't work: <vb:if condition="$forum[forumid] == 11">Show this if forum ID is 11.</vb:if> I think I am just going to go back to vB 3.8. |
#6
|
||||
|
||||
I dont have a copy of vb4 to work with at the moment, if you can wait a couple of days until i finish work i'll be able to check that out, or maybe someone will jump in before then, maybe you can try {vb:raw $dropdown}
Did you have the plugin enabled??? |
#7
|
|||
|
|||
Yeah I had it enabled. I have found a way to do it with a conditional if statement. That's good enough for me. Thanks though.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|