MyBB Community Forums
Shoutbox Username Formatting - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Shoutbox Username Formatting (/thread-142211.html)



Shoutbox Username Formatting - jaihare - 2013-07-08

Hey, folks.

I'm using the shoutbox plugin on my forum, and I'm wondering if there is a way to remove the sideways carrots (<>) from the username when displayed in the shoutbox.

For example, my name would be displayed as <jaihare>. I'd like to replace the carrots with a simple colon after the username.

Is there a way to do this?

Thanks!

I would assume, by the way, that this should appear in the Templates under shoutbox_shout:

<tr>
<td class="{$bgcolor}" align="left" title="{$shout_hover}">
<span style="font-family: Verdana, Tahoma, Arial, Sans-Serif; font-size: 13px;">{$username} {$shout['message']}{$options}</span>
</td>
</tr>

There is no &lt; or &gt; there that would cause this to appear. It's just using {$username} and somehow the carrots just show up. It must be set somewhere else, but I don't know where.


RE: Shoutbox Username Formatting - Destroy666 - 2013-07-08

Get a rabbit to inc/plugins/shoutbox.php and tell him to eat '&lt;'. and change '&gt;' to ':' so the line 807 looks like this:
					$username = build_profile_link($username, $shout['uid'], 'new').':';
And line 811 like this:
					$username = $lang->guest.':';



RE: Shoutbox Username Formatting - jaihare - 2013-07-10

That did it. Thanks! Smile