Author Topic: Another commentrow color for the administrator comment  (Read 2728 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Another commentrow color for the administrator comment
« on: December 12, 2010, 10:24:29 PM »
Hi,

When the Adminstrator comment an image, I want that HIS commetrow get another color. I have seen that in a lot of blogs.

How can we do that?

Thanks in advance,
Cruxy

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: Another commentrow color for the administrator comment
« Reply #1 on: December 12, 2010, 11:18:57 PM »
In details.php find:
Code: [Select]
        "comment_user_id" => $comment_user_id,

insert below:
Code: [Select]
        "comment_user_admin" => ($comment_row[$i]['user_level] == ADMIN),

In template use:
{if comment_user_admin}style for admin{endif comment_user_admin}
{ifno comment_user_admin}style for everyone else{endifno comment_user_admin}
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)