May 23 2012 01:38:08
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 6

· Members Online: 0

· Total Members: 495
· Newest Member: chronsk
Last Seen Users
· chronsk14:47:22
· budisantoso 1 day
· lidaer 1 day
· Yodix 2 days
· mr-casino 2 days
· dos5 4 days
· Machello93 4 days
· Leonardo_master 4 days
· ezgi 4 days
· xxyy 5 days

Login
 Username  Password  
View Thread: Howto chage appearing of online users
Pimped Fusion - Content Management System » Pimped-Fusion Support & Development » General Questions
Who is here? 1 Guest
 Print Thread
Howto chage appearing of online users
Thelicia
Hello,

in the Forum statistics, (super) admin level user are written in strong letters. Also wanted to add some color to them, but didn't find anything regarding this so far. Need a hint where i can find the settings...

Thx in advance.
 
http://www.decisions-of-truth.de
slaughter
/forum/includes/forum_statistics.php is the Code of the statistics.

But the function which makes the admin bold is in maincore.php at the end of the file:
Download source  Code
$new_members[] = profile_link($member['user_id'], $member['user_name'], $user_status, $link_class, $member['user_name'], (isset($member['user_level']) && $member['user_level'] > nMEMBER ? "font-weight: bold;" : ""));


 
Thelicia
ok changed to

Download source  Code
$new_members[] = profile_link($member['user_id'], $member['user_name'], $user_status, $link_class, $member['user_name'], (isset($member['user_level']) && $member['user_level'] > nMEMBER ? "font-weight: bold; color:#ff9900;" : ""));




now all users above member level are orange....

how to add an additional setting?

complete situation:

wanted to colour admins orange and super admins red.

with the current setting these 2 types of admin accounts aren't differentiated...

greetz thely
 
http://www.decisions-of-truth.de
Thelicia
/push
 
http://www.decisions-of-truth.de
Advertising Bot
Posted on 23-05-2012 01:38
Bot Agent

Posts: n^x
Joined: Always

  
xxyy
Download source  Code
$new_members[] = profile_link($member['user_id'], $member['user_name'], $user_status, $link_class, $member['user_name'], (isset($member['user_level']) && $member['user_level'] > nMEMBER ? "font-weight: bold; color:#ff9900;" : ""));


try
GeSHi: PHP
  1. if(isset($member['user_level'])){
  2. switch ($member['user_level']) {
  3. case nMEMBER:
  4. $ul="";
  5. break;
  6. case nMODERATOR:
  7. $ul="font-weight: bold; color:<span style='color:#ff9900'>#ff9900;</span>";
  8. //#ff9900=color for Moderators
  9. break;
  10. case nADMIN:
  11. $ul="font-weight: bold; color:<span style='color:#ffa500'>#ffa500</span>;";
  12. //admins orange
  13. case nSUPERADMIN:
  14. $ul="font-weight: bold; color:<span style='color:#ff0000'>#ff0000</span>;";
  15. //superadmins red
  16. }
  17. $new_members[] = profile_link($member['user_id'], $member['user_name'], $user_status, $link_class, $member['user_name'], (isset($member['user_level']) && $member['user_level'] > nMEMBER ? "font-weight: bold; color:#ff9900;" : ""));
Parsed in 0.024 seconds, using GeSHi 1.0.7.20

All information without guarantee.
Signaturexxyy
blacktigers.bplaced.net/banner/sig.png
Meine neue Webseite (in Development...)
Alle Angaben ohne Gewähr. Ich übernehme keine Haftung für Schäden an Hard/Software Wink
 
http://xxyy.bplaced.net/
Thelicia
nearly perfect xD

did it:
Download source  Code

if(isset($member['user_level'])){
   switch ($member['user_level']) {
   case nMODERATOR:
   $ul="font-weight: bold; color:#ffff00;";
   //moderators yellow
   break;
   case nADMIN:
   $ul="font-weight: bold; color:#ff9900;";
   //admins orange
   break;
   case nSUPERADMIN:
   $ul="font-weight: bold; color:#ff0000;";
   //superadmins red
   }
}
$new_members[] = profile_link($member['user_id'], $member['user_name'], $user_status, $link_class, $member['user_name'], (isset($member['user_level']) && $member['user_level'] > nMEMBER ? $ul : ""));



switch for member group can be left away... as $new_members[] checks for groups above members.

Edit:
maybe a good functionality to add in a future version of PiF. Just added it because People wanted me to...
Edited by Thelicia on 10-12-2010 03:08
 
http://www.decisions-of-truth.de
spunk
Nice!

This must be in next Release Grin
Please with Groupcolor also.
 
http://www.bdsm-ansichten.com
jebajseti
how about for groups? If user is in group and admin it would take admin color or moderator or etc. If user is in group vip and regular user should take vip color.

or even better, can someone make infusion for pimped-fusion http://www.phpfusion-mods.net/infusions/moddb/view.php?mod_id=377
Edited by jebajseti on 16-07-2011 19:59
 
jebajseti
it would be really cool Smile
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Users group profile and Welcome Message settings bugs Suspected Bugs and Errors 8 02-03-2012 04:10
Users + admin General Questions 11 21-02-2012 04:24
Goście Online - Za dużo Znalezione błędy 5 24-02-2011 10:16
Latest Users Modifikationen 4 12-09-2010 10:31
Änderung des Benutzer Online Panels Modifikationen 1 27-08-2010 15:28
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.22 seconds - 101 Queries 995,757 unique visits