The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
thread title color by usergroup
I picked up a small mod here on the forum that changes a single assigned user's thread title color.........as follows
Quote:
What change would I need to make in order to do so? Thanks in advance! Tony |
#2
|
|||
|
|||
<span style="text-decoration: line-through">I think you might be able to use...</span>
I take it back - posts have the user info with them, but it doesn't look like $thread does. |
#3
|
||||
|
||||
You'll have to write a plugin to hook into the thread query (forumdisplay_query) and JOIN with the user table in order to get the postusers usergroupid. Then you'd be able to use $thread['usergroupid'] in the template.
|
#4
|
|||
|
|||
Thanks, But that something that's a bit much over my head
|
#5
|
|||
|
|||
Try this: create a new plugin using hook forumdisplay_query (make up a title and remember to check "Yes" next to "Plugin is Active", don't worry about the other fields), and use this for the code:
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
I created the plugin as written and changed the second plugin and it does not work.
just to make sure I did this correctly, the original plugin I did was in "thread_bit" should that be changed to "thread_query", or should that remain the same? |
#7
|
||||
|
||||
We need to know *exactly* what you used - write the code and state the hook location for each plugin.
|
#8
|
|||
|
|||
Went back and double checked and left something out. All is good and thank you all for the help!!!
--------------- Added [DATE]1288900078[/DATE] at [TIME]1288900078[/TIME] --------------- Is there a way of fixing it so the usernames of those in the same usergroup show the same color under the thread title on the index pages? |
#9
|
|||
|
|||
It's possible but not that easy. You'd have to do a database query to get the user info.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|