Adding more fields to the Whos Online Legend in forums.

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Adding more fields to the Whos Online Legend in forums.
WeigelRich
CZ Active Member
WeigelRich has been a member for over 19 year's 19 Year Member
usa.gif pennsylvania.gif
Occupation: Safety Specialist
Age: 45
Gender: Male
Website:
Status: Offline
Joined: Jul 06, 2005
0.02 posts per day
Posts: 123
Points: 4,498
 Yahoo Messenger MSN Messenger 
Ok. I was trying to add more to the legend in the whos online for the forums. It shows Administrators - orange and Moderators - green. I wanted to add two more. So I went into the index_body.tpl and changed this line.

          <td colspan="6" class="row2"> <span class="smalltext">{TOTAL_USERS_ONLINE}
            &nbsp; [ <b>{L_WHOSONLINE_ADMIN}</b> ] &nbsp; [ <b>{L_WHOSONLINE_MOD}</b> ] &nbsp; [ <b>{L_WHOSONLINE_HTD}
            ]<br>
            {TOTAL_POSTS}<br>
            {LOGGED_IN_USER_LIST}<br>
            {TOTAL_USERS}
            </span></td>


To this line:
          <td colspan="6" class="row2"> <span class="smalltext">{TOTAL_USERS_ONLINE}
            &nbsp; [ <b>{L_WHOSONLINE_ADMIN}</b> ] &nbsp; [ <b>{L_WHOSONLINE_MOD}</b> ] &nbsp; [ <b>{L_WHOSONLINE_HTD}</b> ] &nbsp; [ <b>{L_WHOSONLINE_TD}</b>
            ]<br>
            {TOTAL_POSTS}<br>
            {LOGGED_IN_USER_LIST}<br>
            {TOTAL_USERS}
            </span></td>


Ok now that made the brackets for. shown in the image below.


Now what I can't find is where to put in and show the color and name coming from the groups. It shows the admin and mods but my mods are my TD's and HTD's. I would rather have them show in color. Anyone know the files that might need edited to do this. I have searched them but not being to good with php yet. I have not come across it or by passed it from the lack of not nowing.

Thanks for the help.



_________________
Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Look in the includes/page_header.php for the way the administrator is defined and see if you can copy that.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
WeigelRich
CZ Active Member
WeigelRich has been a member for over 19 year's 19 Year Member
usa.gif pennsylvania.gif
Occupation: Safety Specialist
Age: 45
Gender: Male
Website:
Status: Offline
Joined: Jul 06, 2005
0.02 posts per day
Posts: 123
Points: 4,498
 Yahoo Messenger MSN Messenger 
Ok In the page_header.php it shows

        'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
        'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),


Then added...
      'L_WHOSONLINE_HTD' => sprintf($lang['HTD_online_color'], '<span style="color:#' . $theme['fontcolor4'] . '">', '</span>'),
      'L_WHOSONLINE_TD' => sprintf($lang['TD_online_color'], '<span style="color:#' . $theme['fontcolor5'] . '">', '</span'),


Now I am taking it I need to change it in the lang-main.php or lang-admin.php. I am currently looking into that. Could there be anything else I might be missing.

Edit: Ok Telli I have found the files and edited them in the page_header.php and the lang-main.php. Now the only thing I can't figure out is where the colors come from.. How do I define the colors for the those two.

Or how to make it show as the new instead of moderator..



_________________
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum