Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 09 Jul 2012, 18:32
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
I want to make admin's colour red in last subject and last message

I just want to be red colour who write last message or answer message. If admin who write answer message to subject be red colour, I did that code
<if condition="in_array($gthread[usergroupid], array(6))"> <a href="member.php?$session[sessionurl]u=$gthread[userid]" target="_blank"><font color="#FF0000">$gthread[username]</font></a> <else /> <a href="member.php?$session[sessionurl]u=$gthread[userid]" target="_blank">$gthread[username]</a> </if>
I made that code like this if admin write subject.
<if condition="in_array($gthread[usergroupid], array(6))"> <a href="member.php?$session[sessionurl]u=$gthread[postuserid]" target="_blank"><font color="#FF0000">$gthread[postusername]</font></a> <else /> <a href="member.php?$session[sessionurl]u=$gthread[postuserid]" target="_blank">$gthread[postusername]</a> </if>
but i got error. this code didnt work if user write subject. for example user write subject and admin write message colour is red but users colour is red too. can you help me for this failure?

--------------- Added 09 Jul 2012 at 22:31 ---------------

???
Reply With Quote
  #2  
Old 10 Jul 2012, 19:02
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
????
Reply With Quote
  #3  
Old 11 Jul 2012, 12:52
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
First we can simplify the code a bit if it's just the administrator your looking for:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

That assumes that $gthread contains a value called "usergroupid".
__________________
-Joe
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
You can PM me if you want but be warned I do not read them often.
Reply With Quote
  #4  
Old 11 Jul 2012, 18:57
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
As you say I applied excatly these codes, but when an user opened a thread (topic) and administrator wrote a reply to thread, the colour of user is also turning to red??
Reply With Quote
  #5  
Old 11 Jul 2012, 19:35
Vaq Vaq is offline
 
Join Date: Dec 2011
Where would you put that code
Reply With Quote
  #6  
Old 11 Jul 2012, 19:48
vBMerkezi vBMerkezi is offline
 
Join Date: Jun 2012
Eklenti Adı : [AJAX] DZMods Pro - Top X

Template : dzm_latest_post_bit
Reply With Quote
  #7  
Old 11 Jul 2012, 19:50
Vaq Vaq is offline
 
Join Date: Dec 2011
Thank you
Reply With Quote
  #8  
Old 11 Jul 2012, 21:18
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Then maybe $gthread[usergroupid] isn't the usergroupid of the user who posted the thread. Maybe it doesn't even exist.
__________________
-Joe
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
You can PM me if you want but be warned I do not read them often.
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Private Message Auto-Subject Hack cthree vBulletin 2.x Full Releases 14 26 Dec 2005 19:45

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 21:03.

Layout Options | Width: Wide Color: