Quote:
Originally Posted by Alex@bulletin
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>
";
|
Thanks, I started to do the same but in the middle, I feel this is not easy for novice peoples like me, the I use Download/upload items and upload the file "vbbux_vbplaza_items.xml" which is working fine for me.
Anyhow, thank you once again.