Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
How to make a certain username a certain colour with PHP [HELP]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JoshuaLuke" data-source="post: 110918" data-attributes="member: 12258"><p>Hey, </p><p> </p><p>I have a users online page and it displays all the users online. I'm wanting to make my username bold and red so it stands out since im the owner (my username is Josh) but I can't figure out how to do it. Heres my code:</p><p> </p><p>[CODE]</p><p> </p><p><div class="habblet-container "> </p><p><div class="cbb clearfix red "> </p><p><h2 class="title">Online Users</h2> </p><p><div align="left"></p><p><div class="box-content"></p><p> </p><p><?php</p><p> </p><p>require_once 'global.php';</p><p> </p><p>$getUsers = dbquery("SELECT id,username,motto,look,online, last_online FROM users WHERE online = '1' ORDER BY id ASC");</p><p>$getMembers = dbquery("SELECT username FROM users WHERE rank = '8' ORDER BY id ASC");</p><p> </p><p> </p><p>if (mysql_num_rows($getUsers) > 0)</p><p>{</p><p>echo '<ul style="margin: 0; color:#000000">';</p><p> </p><p>while ($u = mysql_fetch_assoc($getUsers))</p><p>{</p><p>echo $users->formatUsername($u['id']);echo ', ';</p><p> </p><p>}</p><p> </p><p>echo '</ul>';</p><p>}</p><p>else</p><p>{</p><p>echo '<br /><br /><i>There are currently no users online.</i>';</p><p>}</p><p> </p><p>?> </p><p> </p><p> </div> </p><p></div> </p><p> </div></div></p><p>[/CODE]</p><p> </p><p>An ideas?</p></blockquote><p></p>
[QUOTE="JoshuaLuke, post: 110918, member: 12258"] Hey, I have a users online page and it displays all the users online. I'm wanting to make my username bold and red so it stands out since im the owner (my username is Josh) but I can't figure out how to do it. Heres my code: [CODE] <div class="habblet-container "> <div class="cbb clearfix red "> <h2 class="title">Online Users</h2> <div align="left"> <div class="box-content"> <?php require_once 'global.php'; $getUsers = dbquery("SELECT id,username,motto,look,online, last_online FROM users WHERE online = '1' ORDER BY id ASC"); $getMembers = dbquery("SELECT username FROM users WHERE rank = '8' ORDER BY id ASC"); if (mysql_num_rows($getUsers) > 0) { echo '<ul style="margin: 0; color:#000000">'; while ($u = mysql_fetch_assoc($getUsers)) { echo $users->formatUsername($u['id']);echo ', '; } echo '</ul>'; } else { echo '<br /><br /><i>There are currently no users online.</i>'; } ?> </div> </div> </div></div> [/CODE] An ideas? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
How to make a certain username a certain colour with PHP [HELP]
Top