View Full Version : change color when edit?
MACHOBY
08-07-2002, 02:55 PM
Besides typing in the vb code, is there a way to have the text a certain color whenever a moderator edits a post?
well if you know anything of vb hacking you could do a query like this
find this in editpost.php
if ($checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid=$postinfo[userid] AND threadid=$threadinfo[threadid]")) {
$DB_site->query("DELETE FROM subscribethread WHERE userid=$postinfo[userid] AND threadid=$threadinfo[threadid]");
} // else : already unsubscribed, so no need to unsubscribe
}
and place this below it
if ($postinfo[userid]!=$bbuserinfo[userid] && $bbuserinfo[usergroupid]==5 && $bbuserinfo[usergroupid]==6 && $bbuserinfo[usergroupid]==7) {
$message = "[ COLOR=red ]" . $message . "[ /COLOR ]";
}
be sure to take the spaces out of the color tags since I dont want them to parse in this post :)
MACHOBY
08-07-2002, 05:00 PM
I found it and made the changes but it doesn't work. Attached is my editpost file. Any ideas?
Thanks!
MACHOBY
08-09-2002, 02:48 PM
TTT
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.