Quote:
Originally Posted by Umar1
Hi,
I deleted an item Colored Username few days ago, now i want to add this item again.
Is this possible? and how?
|
Yes, you can add a new item via the AdminCP.
I give three screenshots, so you can see what to put in the fields.
Code:
// setup a default name text color
$textcolor = $vbulletin->userinfo['vbplaza_nametextcolor'];
if (empty($textcolor))
{
// set the default to be black
$textcolor = "#000000";
}
// build the proper Preview box
$extra_fields .= "<tr><td class=\"alt1\">Preview:
<script type=\"text/javascript\" language=\"JavaScript\">
<!--
function build_contents(text, color)
{
document.getElementById(\"previewbox\").innerHTML = '<a class=\"bigusername\" style=\"color: ' + color + '\">' + text + '</a>';
}
-->
</script>
</td><td class=\"alt1\"><table border=\"0\" cellpadding=\"3\" cellspacing=\"0\">
<tr><td><span id=\"previewbox\" style=\"width: 100px;\">" . $vbulletin->userinfo['username'] . "</span></td><td><input type=\"button\" value=\"Preview\" onClick=\"build_contents('" . $vbulletin->userinfo['username'] . "', vbplaza_confirm.color.value);\" /></td></tr>
</table></td></tr>
";