[ OK ] color in last visit

This mod will register when the user last logged in, allong with the info about how meny users have visited the board

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

[ OK ] color in last visit

Postby Gael on Sun 23. Nov, 2003 23:09

hello

i install this mod and i want to make a new rank: "developper"...
i creat the rank, and i give a color for him...the color work in who-is-online but i don't know how make the color in last visit...

can you help me ???

thank
Last edited by Gael on Mon 12. Jan, 2004 23:15, edited 1 time in total.
Gael
Poster
Poster
 
Posts: 8
Joined: Sun 23. Nov, 2003 23:01

Postby Gael on Sun 28. Dec, 2003 16:27

nobody ? :cry:
Gael
Poster
Poster
 
Posts: 8
Joined: Sun 23. Nov, 2003 23:01

Postby kooky on Tue 30. Dec, 2003 00:53

What is your rank Name ?

in your constants.php search for:
Code: Select all
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);


before add this:
Code: Select all
define('YOUR_RANK_NAME', id_of_your_rank);



Then in your index.php search for:
Code: Select all
         case ADMIN:
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
            break;
         case MOD:
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
            break;


After add:
Code: Select all
         case YOUR_RANK_NAME:
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
            break;


i assume that should work :wink:
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Gael on Tue 30. Dec, 2003 12:57

thank for your reply :) but it's doesnt works...

look :

Image

in my constant.php :

Code: Select all
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
define('LESS_ADMIN', 3);
define('MEM', 4);
define('SEM', 5);
define('PRI', 6);


in my index.php

Code: Select all
   {
      case ADMIN :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
         break;
      case LESS_ADMIN :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
         break;
      case SEM :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
         break;
      case MEM :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
         break;
      case PRI :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
         break;
      case MOD :
            $todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
            $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
         break;
   }



Image
Gael
Poster
Poster
 
Posts: 8
Joined: Sun 23. Nov, 2003 23:01

Postby kooky on Wed 31. Dec, 2003 16:50

i see your screenshot

That works for LESS_ADMIN (Super Modérateur)

Maybe other ranks colors are not showing because they use the same color as LESS_ADMIN :wink:
You have to define fontcolor5, fontcolor6 etc...

Try it
i will try myself as soon as possible :roll:
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Postby Gael on Thu 01. Jan, 2004 11:53

thank :)

i try to define other color for rank today( but less_admin works before i do your installation, like Admin and modérateur... )

happy new year :D
Gael
Poster
Poster
 
Posts: 8
Joined: Sun 23. Nov, 2003 23:01

Postby Gael on Fri 02. Jan, 2004 12:33

it's doesnt works :oops: :oops: :oops:
Gael
Poster
Poster
 
Posts: 8
Joined: Sun 23. Nov, 2003 23:01

Postby kooky on Sat 03. Jan, 2004 18:27

Which mod do you use to add Privé, Semi-Privé, etc...


i will try myself :wink:
kooky
brilliant supporter
 
Posts: 1329
Joined: Tue 31. Dec, 2002 17:52
Location: Au pays des rêves

Next

Return to Last visit [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron