The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I'm looking for a way to change the post icon of a thread whenever a member of a specific user group posts in that thread. I'm also looking for a way to link that image to the last post posted by a member of that specific user group. The functionality is similar to http://forums.startrekonline.com Thank you! |
#2
|
|||
|
|||
![]()
I think the thing to do would be to execute code in the function build_thread_counters() in includes/functions_databuild.php, do a check of the thread's posts and modify the iconid for the thead accordingly. Unfortunately there's no hook there to allow it to be done in a plugin. So you could either try to find hooks to cover everywhere the icon would need to change, or else edit includes/functions_databuild.php (normally you'd try to avoid that so that you don't have to deal with it when upgrading, but sometimes there's no choice).
|
#3
|
|||
|
|||
![]()
Thank you for your response. How would I go about checking what usergroup a particular poster is in? Would it be a variable or function I can call?
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|