FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Add another group colour to bottom of main page?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
icon6.gif  Re: Add another group colour to bottom of main page? [message #159849 is a reply to message #159848] Sun, 28 June 2009 18:09 Go to previous messageGo to previous message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma:
Senior Member
Oops looks like I jumped into the deep end of the pool with this one!

So far so good, but I'm going to have to take my time with this one.
Found FUDforum/src/logedin.inc.t around line 21 - 35
	$c = uq('SELECT u.id, u.alias, u.users_opt, u.custom_color FROM {SQL_TABLE_PREFIX}ses s INNER JOIN {SQL_TABLE_PREFIX}users u ON u.id=s.user_id WHERE s.time_sec>'.$tm_expire.' AND (u.users_opt & 32768)=0 ORDER BY s.time_sec DESC LIMIT '.$GLOBALS['MAX_LOGGEDIN_USERS']);
	$obj->online_users_text = array();
	while ($r = db_rowarr($c)) {
		$obj->online_users_text[$r[0]] = draw_user_link($r[1], $r[2], $r[3]);
	}
	unset($c);

	q('UPDATE {SQL_TABLE_PREFIX}stats_cache SET
		cache_age='.__request_timestamp__.',
		last_user_id='.(int)$obj->last_user_id.',
		user_count='.(int)$obj->user_count.',
		online_users_anon='.(int)$obj->online_users_anon.',
		online_users_hidden='.(int)$obj->online_users_hidden.',
		online_users_reg='.(int)$obj->online_users_reg.',
		online_users_text='.ssn(serialize($obj->online_users_text)));



Also found FUDforum/thm/default/tmpl/logedin.tmpl

Line 25:
<span class="SmallText">{MSG: status_line}&nbsp;&nbsp;&nbsp;<span class="adminColor">[{MSG: administrator}]</span>&nbsp;&nbsp;<span class="modsColor">[{MSG: moderator}]</span></span><br />


I have high confidence that I can manage the 2nd one but the 1st is definitely beyond my understanding, so I will have to study some on this. If I even have the right sections that is!


"I'm a Witcher, I solve human problems; not always using a sword!"
[Message index]
 
Read Message
Read Message
Read Message icon6.gif
Read Message
Read Message icon6.gif
Read Message icon6.gif
Read Message icon6.gif
Previous Topic: Attachments to NNTP Postings
Next Topic: Banner Ad On Every Page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu May 16 13:08:36 GMT 2024

Total time taken to generate the page: 0.07850 seconds