Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Oct 2007, 17:46
Kaitlyn2004 Kaitlyn2004 is offline
 
Join Date: Jul 2006
Highlight thread

I want to highlight a thread in the forumdisplay if they are in a certain usergroup. Looking at $thread in the threadbit_display hook, it has their user id and username, but no usergroup. I don't want to run a query each time to get their usergroup...

Am I missing something or is this not easy to do?
Reply With Quote
  #2  
Old 24 Oct 2007, 10:21
Opserty Opserty is offline
 
Join Date: Apr 2007
You need to add a join to the thread queries.

Add a New Plugin

Hook Location: forumdisplay_query
PHP Code:

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

You should then be able to use $thread['usergroupid'] to get the thread starters primary usergroup.

Last edited by Opserty : 24 Oct 2007 at 10:27.
Reply With Quote
Reply


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 03:06.

Layout Options | Width: Wide Color: