![]() |
Change Post Icon when specific user group posts
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! |
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).
|
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?
|
All times are GMT. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|