<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>help request for coloured usernames</title>
        <description> Hello,

I hope I am posting in the correct forum.
The situation:
I got hands on a little mod which allows the users to set a custom colour for their usernames at login. This mode is working with Phorum 5.1 branch. Unfortunately the author is not known to me.

The users would like to have this feature in the upgraded version of 5.2.19 as well. I am a bit at a loss here, as I have VERY little php knowlegde. I have managed to get the search function for 5.2 working but I am not able to get the statements following the search working.

If there is someone willing and interested to help me, how would we go from here ? 

Help would be very appreciated. Thank you in advance.</description>
        <link>https://www.phorum.org/support/read.php?20,154451,154451#msg-154451</link>
        <lastBuildDate>Fri, 14 Aug 2026 10:19:54 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154503#msg-154503</guid>
            <title>Re: help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154503#msg-154503</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>gelbeseiten</strong><br />One thought: as the username is a link, is the custom_user_field overwritten with the link_color setting from the settings.tpl?<br />
<br />
Or did I place it at the wrong spot, as all this is pretty new to me ?</div></blockquote>
<br />
Sorry for the delay. My community uses commercial/paid software now, but I keep coming back here because I had a strong attachment to Phorum. I would have to find the time to play with this myself to make sure I&#039;m wrapping my head around it right and not overlooking anything either.<br />
<br />
Yes, being a link, the link color will display. Perhaps try this instead....<br />
<br />
[code=&quot;php&quot;]<br />
&lt;div class=&quot;message-author icon-user&quot;&gt;<br />
<br />
	&lt;!-- Determine whether there is a custom color --&gt;<br />
<br />
	{IF MESSAGES-&gt;user-&gt;color}<br />
		&lt;BR&gt; &lt;FONT COLOR=&quot;{MESSAGES-&gt;user-&gt;color}&quot;&gt; {MESSAGES-&gt;author} &lt;/FONT&gt;<br />
        {ELSE}<br />
		&lt;BR&gt; {MESSAGES-&gt;author}<br />
	{/IF}<br />
<br />
	&lt;!-- Should we display a link to the user profile? --&gt;<br />
<br />
	{IF MESSAGES-&gt;URL-&gt;PROFILE}<br />
		&lt;BR&gt; &lt;small&gt;[ &lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PROFILE}&quot;&gt; Profile &lt;/a&gt; ]&lt;/small&gt;<br />
	{/IF}<br />
<br />
	&lt;!-- Should we display a link to directly private message the user? --&gt;<br />
	<br />
        {IF MESSAGES-&gt;URL-&gt;PM}<br />
		&lt;BR&gt; &lt;small&gt;[ &lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PM}&quot;&gt;{LANG-&gt;PrivateReply}&lt;/a&gt; ]&lt;/small&gt;<br />
	{/IF}<br />
<br />
&lt;/div&gt;<br />
[/code]<br />
<br />
This way, the link color doesn&#039;t override the custom color, and a separate link to provided for the profile just like one for the private message. The &lt;BR&gt; tags are simple line breaks.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Fri, 25 Oct 2013 09:22:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154480#msg-154480</guid>
            <title>Re: help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154480#msg-154480</link>
            <description><![CDATA[ I must doing something wrong as the username is not shown in the color which is entered into the database to the correct userid.<br />
Steps I did.<br />
<br />
Created the custom-user-field in the admin area, named color<br />
Added the field to the register.tpl<br />
changed the read.tpl and added the code from above around line 34. It looks like this<br />
<br />
<pre class="bbcode">&lt;td width=&quot;100%&quot;&gt;
                &lt;div class=&quot;message-author icon-user&quot;&gt;
                {IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PROFILE}&quot;&gt;{/IF}
		{IF MESSAGES-&gt;user-&gt;color}&lt;FONT COLOR=&quot;{MESSAGES-&gt;user-&gt;color}&quot;&gt; {MESSAGES-&gt;author} &lt;/FONT&gt;
                     {ELSE}{MESSAGES-&gt;author}{/IF}{IF MESSAGES-&gt;URL-&gt;PROFILE}&lt;/a&gt;{/IF}
                            {IF MESSAGES-&gt;URL-&gt;PM}&lt;small&gt;[ &lt;a href=&quot;{MESSAGES-&gt;URL-&gt;PM}&quot;&gt;{LANG-&gt;PrivateReply}&lt;/a&gt; ]&lt;/small&gt;{/IF}
                        &lt;/div&gt;</pre>
<br />
After this I created a new user and a new post.<br />
<br />
One thought: as the username is a link, is the custom_user_field overwritten with the link_color setting from the settings.tpl?<br />
<br />
Or did I place it at the wrong spot, as all this is pretty new to me ?]]></description>
            <dc:creator>gelbeseiten</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Sun, 20 Oct 2013 20:06:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154479#msg-154479</guid>
            <title>Re: help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154479#msg-154479</link>
            <description><![CDATA[ &quot;Color?:&quot; is what shows onscreen to the user so they know what is being asked to put into the input box.]]></description>
            <dc:creator>Skinny</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Sun, 20 Oct 2013 15:34:35 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154478#msg-154478</guid>
            <title>Re: help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154478#msg-154478</link>
            <description><![CDATA[ sorry, I am a bit late here.  Thank you for the tip. I will try that and see what happens. <br />
<br />
One question, Robert<br />
<br />
in the first code sample the  &quot;Color?:&quot;  for what stands this ?  <br />
<br />
Could you explain it to me ?<br />
Thank you.]]></description>
            <dc:creator>gelbeseiten</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Sun, 20 Oct 2013 09:25:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154465#msg-154465</guid>
            <title>Re: help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154465#msg-154465</link>
            <description><![CDATA[ I would do it with a template hack. I would create a custom profile field in the Admin panel called &quot;color&quot; and then on the registration.tpl form within the &lt;form&gt; and &lt;/form&gt; tags add this...<br />
<br />
[code=&quot;php&quot;]<br />
Color?: &lt;input type=&quot;text&quot; name=&quot;color&quot; size=&quot;30&quot; value=&quot;&quot; /&gt;<br />
[/code]<br />
<br />
... and then on the read.tpl add this....<br />
<br />
[code=&quot;php&quot;]<br />
{IF MESSAGES-&gt;user-&gt;color}<br />
   &lt;FONT COLOR={MESSAGES-&gt;user-&gt;color}&gt; {MESSAGES-&gt;author} &lt;/FONT&gt;<br />
{ELSE}<br />
   {MESSAGES-&gt;author}<br />
{/IF} <br />
[/code]]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Wed, 16 Oct 2013 21:29:54 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?20,154451,154451#msg-154451</guid>
            <title>help request for coloured usernames</title>
            <link>https://www.phorum.org/support/read.php?20,154451,154451#msg-154451</link>
            <description><![CDATA[ Hello,<br />
<br />
I hope I am posting in the correct forum.<br />
The situation:<br />
I got hands on a little mod which allows the users to set a custom colour for their usernames at login. This mode is working with Phorum 5.1 branch. Unfortunately the author is not known to me.<br />
<br />
The users would like to have this feature in the upgraded version of 5.2.19 as well. I am a bit at a loss here, as I have VERY little php knowlegde. I have managed to get the search function for 5.2 working but I am not able to get the statements following the search working.<br />
<br />
If there is someone willing and interested to help me, how would we go from here ? <br />
<br />
Help would be very appreciated. Thank you in advance.]]></description>
            <dc:creator>gelbeseiten</dc:creator>
            <category>Phorum Hack/Mod Requests</category>
            <pubDate>Mon, 14 Oct 2013 23:59:20 -0500</pubDate>
        </item>
    </channel>
</rss>
