Show Admin Color in Who's Online

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bjf123
    Member
    • Dec 2004
    • 60

    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?
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #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: [color=red]#123456[/color]">
    Change the color code appropriately.

    And in the second box use:

    Code:
    </span>

    Comment

    • bjf123
      Member
      • Dec 2004
      • 60

      #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

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #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 -->
        
        [color=red]<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>[/color]
        
        <!-- 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

        • bjf123
          Member
          • Dec 2004
          • 60

          #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

          • Jake Bunce
            Senior Member
            • Dec 2000
            • 46598
            • 3.6.x

            #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>
            
            				[color=red]<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>[/color]
            
            			</div>
            		</td>
            	</tr>
            </tbody>
            <!-- end logged-in users -->
            </if>

            Comment

            • bjf123
              Member
              • Dec 2004
              • 60

              #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

              • organik81
                Senior Member
                • Jan 2005
                • 265
                • 4.2.X

                #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 21 Jan '05, 11:53am.

                Comment

                • Jake Bunce
                  Senior Member
                  • Dec 2000
                  • 46598
                  • 3.6.x

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

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

                  Comment

                  • organik81
                    Senior Member
                    • Jan 2005
                    • 265
                    • 4.2.X

                    #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 21 Jan '05, 12:00pm.

                    Comment

                    • Jake Bunce
                      Senior Member
                      • Dec 2000
                      • 46598
                      • 3.6.x

                      #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>
                      				[color=red]<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 />[/color]
                      				<div>$activeusers</div>
                      			</div>
                      		</td>
                      	</tr>
                      </tbody>
                      <!-- end logged-in users -->
                      </if>

                      Comment

                      • organik81
                        Senior Member
                        • Jan 2005
                        • 265
                        • 4.2.X

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

                        Comment

                        • Treasure Quest
                          Senior Member
                          • Jan 2005
                          • 155

                          #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

                          • Andrew111888
                            Senior Member
                            • Mar 2003
                            • 2288
                            • 3.0.5

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

                            Comment

                            • Treasure Quest
                              Senior Member
                              • Jan 2005
                              • 155

                              #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...