tyteen4a03
New member
Hi, how do I add custom user title changes? Say I have a new effect called "Rainbow", how do I add it to User title changes for users to select?
That's hacky... I would like to see the official way of doing it.If you really wanted to implement any items like this, you could of course use the 'Custom Item' and in the option for Notifications put your ID and this would inform you of the purchase then you just insert the HTML code to the appropriate field.
Anything like this I notify the Buyer that the action will be implemented within 24hrs...
That's How I'm Doing It...
That's hacky... I would like to see the official way of doing it.
<strong style="color: #FFBC58; rainbow: true;">
</strong>
if( strpos( $user['musername'], 'rainbow: true;' ) !== false )
{
$i = $b = 0;
$username = '';
$colours = array('d31539', 'ff7e00', 'ffc20e', '90d125', '187acb', '6f3198', 'ab1d8e');
while( $i < strlen( $user['username'] ) )
{
if( $b > ( count( $colours ) - 1 ) ) $b = 0;
$username .= '<span style="color: #' . $colours[ $b ] . '">' . $user['username'][$i] . '</span>';
++$b;
++$i;
}
$user['musername'] = '<strong>' . $username . '</strong>';
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.