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

Home » FUDforum Development » Plugins and Code Hacks » Request: Message body color based on user level
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Request: Message body color based on user level [message #27945] Mon, 03 October 2005 12:25 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma:
Senior Member
I would love to be able to set a different color on the message body if the poster has a special userlevel, for example moderator or administrator, or perhaps even if the poster belongs to a special usergroup like registered_user or anonymous_user or special_user etc.

I have searched the forums for quite some time but I was not able to find any "hacks" like this and would really appreciate a hand in this if anyone have a clue =)

I am not the best coder in the world, else I would of course not ask for help, but if you can give me an example either in PHP and in what file to edit, or just in "fudcode" how to edit in the template I would appreciate it alot.

My first idea was to just edit the drawmsg.tmpl -> dmsg_normal_message_body and add some sort of {IF} string, but I do not know how to format the syntax, nor do I know how, or where to edit the usergroup check or how to find out the usergroup number (if needed) since I am absolutelly horrible at reading MYSQL tables (and everything else that has to do with coding to be honest)


[Message index]
 
Read Message
Read Message
Previous Topic: I can't search chinese topic
Next Topic: Mailing List Functionality w/crontab, instead of .procmailrc or .forward
Goto Forum:
  

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

Current Time: Sun Dec 01 01:10:08 GMT 2024

Total time taken to generate the page: 0.04419 seconds