Not Solved Shoutbox Username Formatting
#1
Not Solved
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.
Reply
#2
Not Solved
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.':';
Reply
#3
Not Solved
That did it. Thanks! Smile
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)