Log in

View Full Version : vBulletin Option Data


Kirk Y
06-02-2006, 04:13 AM
I'm trying to add a setting in the vb options panel that can be used to input html markup, just like the Usergroups Title Markup. This is the code I was working off of, which I got from usergroups.php.

print_label_row($vbphrase['username_markup'],
'<span style="white-space:nowrap">
<input size="15" type="text" class="bginput" name="usergroup[opentag]" value="' . htmlspecialchars_uni($usergroup['opentag']) . '" tabindex="1" />
<input size="15" type="text" class="bginput" name="usergroup[closetag]" value="' . htmlspecialchars_uni($usergroup['closetag']) . '" tabindex="1" />
</span>', '', 'top', 'htmltags');

This is what I tried using as the optiondata for the setting:

<input size=15 type=text class=bginput name=sticky[opentag] value=\"\" . htmlspecialchars_uni($sticky[opentag]) . \"\" tabindex=\"1\" />
<input size=15 type=text class=bginput name=sticky[closetag] value=\"\" . htmlspecialchars_uni($sticky[closetag]) . \"\" tabindex=\"1\" />

It looks fine, but upon submitting the data -- it won't stick in the form, so I'm assuming I did something wrong. If someone wouldn't mind lending a hand, I'd really appreciate it.

Kirk Y
06-04-2006, 12:08 AM
Anyone? No ideas? I suppose I could just make two seperate input fields -- but surely there's a way to get both on the same row.