The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Change "Prefix" to "Cities" but only for certain forums
I am using the thread prefix as a way for posters to specify the city but only for specific categories, is there a way to change the word "Prefix" above the drop down menu for selecting prefix when making a post to "Select City" and have it show as "Select City" in specific categories?
I'm sure I will have to edit a template and add some sort of conditional for the desired categories...something like... if category 2,4,6 show "Select City" else show "Prefix" Just dont know how to go about coding this into the right template. Any help is greatly appreciated! |
#2
|
||||
|
||||
To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
Then just find the phrase ({vb:rawphrase prefix}) and put a condition around it: HTML Code:
<vb:if condition="in_array($forumid , array(2,4,6))">Select City<vb:else />{vb:rawphrase prefix}</vb:if> |
#3
|
|||
|
|||
Thank you. That worked perfectly.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|