Announcement

Collapse
No announcement yet.

Show Admin Color in Who's Online

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Show Admin Color in Who's Online

    I've got a phpbb board that I'll be moving over the vB in the near future. One feature I like on the phpbb board that I haven't found an equivalent on vB is the line next to "Who's Online" shows [Administrator] [Moderator] so people will know any users shown below in those colors are Admins and Mods. Can that be done in vB?

  • #2
    You can specify username colors for groups in your:

    Admin CP -> Usergroups -> Usergroup Manager -> Edit Usergroup -> Username HTML Markup

    In the first box use:

    Code:
    <span style="color: #123456">
    Change the color code appropriately.

    And in the second box use:

    Code:
    </span>

    Comment


    • #3
      I've got the names color coded already, Admin - Red Bold, Super Mod - Blue Bold, Mod - Green. I'm looking to have the text [Administrator] [Super Moderator] and [Moderator] appear above the box where the names appear, so when these people are online, it lets everyone know what they are. Am I making sense?

      Comment


      • #4
        Edit this template:

        Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> FORUMHOME

        Find this code and add the red code:

        Code:
        		<td class="alt2"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        		<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
        	</tr>
        </tbody>
        </if>
        </table>
        <br />
        <!-- end what's going on box -->
        
        <div class="smallfont" align="center">
        	[<span style="color: red;">Administrator</span>] [<span style="color: blue;">Super Moderator</span>] [<span style="color: green;">Moderator</span>]
        </div>
        
        <!-- icons and login code -->
        <table cellpadding="0" cellspacing="2" border="0" width="100%">
        <tr valign="bottom">
        	<td>
        		<table cellpadding="2" cellspacing="0" border="0">
        		<tr>

        Comment


        • #5
          Thanks! That's close to what I'm looking for. This puts the labels below the What's Going On box. Is it possible to put the labels at the bottom of the box where it says Most users ever online was?

          Comment


          • #6
            Try this, same template:

            Code:
            <if condition="$show['loggedinusers']">
            <!-- logged-in users -->
            <tbody>
            	<tr>
            		<td class="thead" colspan="2">
            			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            			<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
            		</td>
            	</tr>
            </tbody>
            <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
            	<tr>
            		<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
            		<td class="alt1" width="100%">
            			<div class="smallfont">
            				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
            				<div>$activeusers</div>
            
            				<div class="smallfont" align="center">
            					[<span style="color: red;">Administrator</span>] [<span style="color: blue;">Super Moderator</span>] [<span style="color: green;">Moderator</span>]
            				</div>
            
            			</div>
            		</td>
            	</tr>
            </tbody>
            <!-- end logged-in users -->
            </if>

            Comment


            • #7
              That's it exactly! Thanks. I figured it was in there somewhere, but I'm not yet familiar enough with the code that I'd feel comfortable making random changes. Thanks again!

              Comment


              • #8
                Our settings are like this now :


                En çok kullanıcı 8, Bugün saat 19:24.
                xmuratcetinx, organik81.....(other members)
                [Administrator] [Co-Administrator] [Super Moderator].....



                __________________________________________________________________
                we want the settings to be like this :

                En çok kullanıcı 8, Bugün saat 19:24.
                [Administrator] [Co-Administrator] [Super Moderator].....

                xmuratcetinx, organik81.....
                (other members)

                ____________________________________________
                How can we do this....?
                Last edited by organik81; Fri 21st Jan '05, 11:53am.

                Comment


                • #9
                  You need to change the color codes and titles appropriately (highlighted in blue):

                  Code:
                  				<div class="smallfont" align="center">
                  					[<span style="color: red;">Administrator</span>] [<span style="color: blue;">Super Moderator</span>] [<span style="color: green;">Moderator</span>]
                  				</div>

                  Comment


                  • #10
                    Sorry my problem wasn't about the color settings.. There is a problem about the positions (places)... Thanks...

                    (U can see here : http://www.cennetforum.com/forum/)
                    Last edited by organik81; Fri 21st Jan '05, 12:00pm.

                    Comment


                    • #11
                      Oh, try this:

                      Code:
                      <if condition="$show['loggedinusers']">
                      <!-- logged-in users -->
                      <tbody>
                      	<tr>
                      		<td class="thead" colspan="2">
                      			<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                      			<a href="online.php?$session[sessionurl]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
                      		</td>
                      	</tr>
                      </tbody>
                      <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
                      	<tr>
                      		<td class="alt2"><a href="online.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
                      		<td class="alt1" width="100%">
                      			<div class="smallfont">
                      				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                      				<div class="smallfont" align="center">
                      					[<span style="color: red;">Administrator</span>] [<span style="color: blue;">Super Moderator</span>] [<span style="color: green;">Moderator</span>]
                      				</div><br />
                      				<div>$activeusers</div>
                      			</div>
                      		</td>
                      	</tr>
                      </tbody>
                      <!-- end logged-in users -->
                      </if>

                      Comment


                      • #12
                        Thank you very much Mr. Bunce..... now it's OK...

                        Comment


                        • #13
                          Hi,

                          I'm wanting to change the color for the super moderator and Admin.

                          How would I adjust this code to make it display BOLD and RED, also what would the code be for blue?

                          <span style="color: red;"> </span>

                          Thank you,

                          Greg

                          Comment


                          • #14
                            Code:
                            <span style="color: red; font-weight: bold;">text</span>
                            Code:
                            <span style="color: blue; font-weight: bold;">text</span>

                            Comment


                            • #15
                              Thank you,

                              I have added the string above but it does not work for me. Should I just add it to the code as stated above?

                              Thank you,

                              Greg

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...
                              X