The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin Prefix Variables
Does anyone happen to know what the vBulletin variable for prefixes is?
I'm currently trying to customize the form hack for vBulletin 3.7, and I won't be able to use it unless I can get it to specify a thread prefix based on a radio button field. |
#2
|
||||
|
||||
Code:
$threadinfo[prefix_plain_html] $threadinfo[prefix_rich] |
#3
|
|||
|
|||
Thanks. Should those variables contain strings, or just the prefix IDs assiged from the admin panel?
|
#4
|
||||
|
||||
They will contain the string (ie. the actual prefix text).
|
#5
|
|||
|
|||
Thanks again for the quick reply!
Given I enter the prefix strings into the admin panel using the same HTML as below, would this code work and apply a thread prefix? Below is an excerpt from the Form Hack mod which I'm trying to adapt to my 3.7 installation. PHP Code:
PHP Code:
--------------- Added [DATE]1216664523[/DATE] at [TIME]1216664523[/TIME] --------------- Edit: it looks like I need to use the $newpost[prefixid] variable instead, from what I can tell! --------------- Added [DATE]1216682829[/DATE] at [TIME]1216682829[/TIME] --------------- Got everything working now- see here for more details: https://vborg.vbsupport.ru/showthrea...51#post1580951 Now the Form Hack will be able to add prefixes to the threads it creates as well. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|