The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Tubedogg insisted that inserting a record into the setting table in the database constitutes hacking and that I should ask about this problem here, so here it is:
I'm using the following in the "optioncode" field in the setting table for one of my custom settings. It's producing a parse error when I load the corresponding section of the options. Does anyone see the error? Code:
<select name=\\"setting[$setting[settingid]]\\">\r\n<option value=\\"1\\" ".iif($setting[value]==1,"selected","").">GD</option>\r\n<option value=\\"2\\" ".iif($setting[value]==2,"selected","").">ImageMagick</option>\r\n</select> Any insight will be greatly appreciated. |
#2
|
||||
|
||||
![]()
This worked for me:
Code:
<select name=\"setting[$setting[settingid]]\"> <option value=\"1\" ".iif($setting[value]==1,"selected","").">GD</option> <option value=\"2\" ".iif($setting[value]==2,"selected","").">ImageMagick</option> </select> |
#3
|
||||
|
||||
![]()
If you go to setting.php and look for the version of GD you'll have some sample code
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|