Author Topic: How do I change colors of members  (Read 12458 times)

0 Members and 1 Guest are viewing this topic.

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
How do I change colors of members
« on: November 26, 2009, 12:12:15 AM »
How do I change colors of members

For example, the administration or Admin color red.

And members of the color blue?
« Last Edit: November 26, 2009, 07:30:13 PM by Rembrandt »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #1 on: November 26, 2009, 01:33:53 AM »
Try this:
in includes/functions.php find:
    $user_name_link $user_name;
  }


Insert below:
  $user_level GUEST;
  if (
$image_user_info get_user_info($image_row['user_id']))
    
$user_level $image_user_info[$user_table_fields['user_level']];

  
$user_name_link '<span class="' . ($user_level == ADMIN "admin" : ($user_level == USER "member" "guest")) . '">' $user_name_link '</span>';


In style.css style sheet, add:
Code: (CSS) [Select]
.guest, .guest a:link, .guest a:visited{
  color: green;
}

.member, .member a:link, .member a:visited{
  color: blue;
}

.admin, .admin a:link, .admin a:visited{
  color: red;
}

.guest a:hover, .guest a:active, .member a:hover, .member a:active, .admin a:hover, .admin a:active{
  color: inherit;
}

P.S.
I've deleted your duplicate topic
« Last Edit: November 30, 2009, 09:35:28 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #2 on: November 28, 2009, 12:56:26 AM »
sorry ,, don't work  :(

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #3 on: November 28, 2009, 02:37:57 AM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Rembrandt

  • Guest
Re: How do I change colors of members
« Reply #4 on: November 28, 2009, 05:59:49 AM »
sorry ,, don't work 

is it simply and easy, and it works

mfg Andi

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #5 on: November 29, 2009, 02:37:15 AM »
works for me:
xxx: 4images. vano. org/ajaxcomments/categories. php?cat_id=5

nice .. where is the problem ?

i  use it 4 topids

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #6 on: November 29, 2009, 05:24:29 AM »
nice .. where is the problem ?

i  use it 4 topids
Not sure how anyone could possibly answer that question...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #7 on: November 29, 2009, 06:02:06 AM »
nice .. where is the problem ?

i  use it 4 topids
Not sure how anyone could possibly answer that question...

ok , look to this...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #8 on: November 29, 2009, 06:28:47 AM »
That part looks fine, how about style.css? any chances I can see the site?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #9 on: November 30, 2009, 06:33:01 AM »
That part looks fine, how about style.css? any chances I can see the site?

sure you can see the site ,

w w w . ff11ff . c o m/topics

my site in Arabic ,

abuot the style.css , you can take alook

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #10 on: November 30, 2009, 09:21:03 AM »
try this:
Code: (CSS code) [Select]
.guest, .guest a:link, .guest a:visited{
}

.member, .member a:link, .member a:visited{
  color: blue;
}

.admin, .admin a:link, .admin a:visited{
  color: red;
}

.guest a:hover, .guest a:active, .member a:hover, .member a:active, .admin a:hover, .admin a:active{
  color: #ff3300;
}
« Last Edit: November 30, 2009, 09:36:24 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #11 on: November 30, 2009, 05:47:29 PM »
try this:
Code: (CSS code) [Select]
.guest, .guest a:link, .guest a:visited{
}

.member, .member a:link, .member a:visited{
  color: blue;
}

.admin, .admin a:link, .admin a:visited{
  color: red;
}

.guest a:hover, .guest a:active, .member a:hover, .member a:active, .admin a:hover, .admin a:active{
  color: #ff3300;
}

even this don't work  :cry:


maybe another files disactivate this modification ?

if i can attach all script's  files for you to see it ? and development it ?  :oops:

Offline V@nо

  • Addicted member
  • ******
  • Posts: 1.223
    • View Profile
Re: How do I change colors of members
« Reply #12 on: November 30, 2009, 08:56:17 PM »
I'll check it out later today, but I've tested it using your style.css and it worked. Perhaps you could troubleshoot it with firebug extension for firefox...the problem is definatelly somwhere in the style.
Your first three "must do" before you ask a question:
If I asked you to PM me, I meant PM to my primary account, this account doesn't accept PMs.

Offline m_7

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: How do I change colors of members
« Reply #13 on: November 30, 2009, 10:49:45 PM »
I'll check it out later today, but I've tested it using your style.css and it worked. Perhaps you could troubleshoot it with firebug extension for firefox...the problem is definatelly somwhere in the style.

I'll change the style and tell you ,

brb

==========
back

even with the default style ? doesn't work  :cry:
« Last Edit: November 30, 2009, 11:00:08 PM by m_7 »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: How do I change colors of members
« Reply #14 on: December 01, 2009, 01:05:06 AM »
I can't find any images from non-admin user on your site, but links to admins profiles on details page on your site shows in correct color in both IE6 and FF3.6
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)