MyBB Community Forums

Full Version: VIP members change username colour?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have never came across a website with this in it yet.

What I would like to have is a feature that allows special groups like VIP members that have purchased a VIP membership to change their username colour to whatever they want and they would do this by going to "edit profile" then it would be their username and then beside it "change colour" and a colour grid would appear and they could change colour.

Anyone that can figure out how this is done is a MyBB god.
(2011-10-22, 09:06 AM)Sama34 Wrote: [ -> ]You can try using this:
http://community.mybb.com/thread-48180.html
Doesn't work with my version Undecided

[Image: cb33a13e93e1c60cd0c4b98820dc8c0e.png]

Any other ideas?

Open plugin file and Change compatibility => 14* to 16*
Thanks but now I don't know where to put all the code in. The acp must have been different when he done this to what its like now because I cant find the sections he is talking about :/
Paste the edits required here and I'd help out on where to edit them.
usercp_format
<html>
<head>
<title>{$mybb->settings['bbname']} - Change Appearance</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$errors}
{$userpreview}
<form action="usercp.php?action=format" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Change username appearance</strong></td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>Enter your new username appearance settings</strong></td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>Color:</strong><br/><span style="smalltext">Hex color. Don't forget the #</span></td>
<td class="trow2" width="60%"><input type="text" class="textbox" name="user_color" size="25" maxlength="7" value="{$usercolor}" /></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>Font:</strong><br/><span style="smalltext">Font name. Remember users may not be able to see it.</span></td>
<td class="trow1" width="60%"><input type="text" class="textbox" name="user_font" size="25" maxlength="30" value="{$userfont}" /></td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>Decoration:</strong><br/><span style="smalltext">Text decoration. Choose one.</span></td>
<td class="trow2" width="60%">
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="0" {$extraformat['0']} />Bold</span>
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="1" {$extraformat['1']} />Italic</span>
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="2" {$extraformat['2']} />Strike</span>
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="3" {$extraformat['3']} />Underline</span>
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="4" {$extraformat['4']} />Blink</span>
<span class="smalltext"><input type="radio" class="radio" name="extra_format" value="5" {$extraformat['5']} />None</span>
</tr>
<td class="trow1" width="40%">
<strong>Note:</strong>
<td class="trow1" width="60%">
<span style="smalltext">Leave in blank what you don't want to use.</span></td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_format_user" />
<input type="submit" class="button" name="submit" value="Update Username Appearance" />
<input type="submit" class="button" name="userpreview" value="Preview Username Appearance" />
</div>
</form>
{$postpreview}
<form action="usercp.php?action=format" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<br/>
<br />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Change post appearance</strong></td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>Enter your new post appearance settings</strong></td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>Color:</strong><br/><span style="smalltext">Hex color. Don't forget the #</span></td>
<td class="trow2" width="60%"><input type="text" class="textbox" name="post_color" size="25" maxlength="7" value="{$postcolor}" /></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>Font:</strong><br/><span style="smalltext">Font name. Remember users may not be able to see it.</span></td>
<td class="trow1" width="60%"><input type="text" class="textbox" name="post_font" size="25" maxlength="30" value="{$postfont}" /></td>
</tr>
<td class="trow2" width="40%">
<strong>Note:</strong>
<td class="trow2" width="60%">
<span style="smalltext">Leave in blank what you don't want to use.</span></td>
</tr>

</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_format_post" />
<input type="submit" class="button" name="formatpost" value="Update Post Appearance" />
<input type="submit" class="button" name="postpreview" value="Preview Post Appearance" />
</div>
</form>
<br />
<br />
</td>
</tr>
</table>
{$footer}
</body>
</html>


usercp_format_preview_user
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="4"><strong>Username Style Preview</strong></td>
</tr>
<tr>
<td class="tcat" width="30%"><strong>Preview</strong></td>
<td class="tcat" width="20%"><strong>Color</strong></td>
<td class="tcat" width="30%"><strong>Font</strong></td>
<td class="tcat" width="20%"><strong>Extra Style</strong></td>
</tr>
<tr>
<td class="trow1" width="30%">{$username_formatted}</td>
<td class="trow1" width="20%">{$preview_color}</td>
<td class="trow1" width="30%">{$preview_font}</td>
<td class="trow1" width="20%">{$preview_style}</td>
</tr>
</table>
<br/><br/>

usercp_format_preview_post
<br/><br/>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3"><strong>Post Style Preview</strong></td>
</tr>
<tr>
<td class="tcat" width="40%"><strong>Preview</strong></td>
<td class="tcat" width="30%"><strong>Color</strong></td>
<td class="tcat" width="30%"><strong>Font</strong></td>
</tr>
<tr>
<td class="trow1" width="40%">{$bpformat}My Post Style Preview{$apformat}</td>
<td class="trow1" width="30%">{$preview_color}</td>
<td class="trow1" width="30%">{$preview_font}</td>
</tr>
</table>
<br/>


Find in usercp_nav_profile the editsig link. Should be the last one. Add below:

<div><a href="usercp.php?action=format" class="usercp_nav_item usercp_nav_format">Change Appearance</a></div>


What is the problem? Maybe you have to create the first three templates?
(2011-10-23, 12:19 AM)Sama34 Wrote: [ -> ]What is the problem? Maybe you have to create the first three templates?
Maybe but he didn't mention it in the tutorial Undecided

(2011-11-01, 12:19 PM)McCoist Wrote: [ -> ]
(2011-10-23, 12:19 AM)Sama34 Wrote: [ -> ]What is the problem? Maybe you have to create the first three templates?
Maybe but he didn't mention it in the tutorial Undecided

Maybe it is common sense for me to try that kind of stuff before asking for help...
Pages: 1 2