![]() |
Issues with Hook
Basically, I'm using a plugin on the fetch_musername hook to allow users to choose their own colour.
Here's the code: PHP Code:
Thanks in advance! |
What is the problem you're having? I think the code is basically correct, but I don't think you need to be using $vbulletin->usergroupcache["9"] - that might end up changing the color for users of group 9 (if you have one).
|
The problem I'm having is that users are being shown in a different colour than the one they've selected.
The usergroup cache update is because all of the users are in usergroup 9, so I figured if I set the musername and update the usergroup tags it's a foolproof way to go about it. --------------- Added [DATE]1341483055[/DATE] at [TIME]1341483055[/TIME] --------------- OK I've established that my code is fine - and the other plugins are causing the issue. I have a question though: Another plugin is calling the fetch_musername function to generate the markup username, using this code: PHP Code:
Anyone have any ideas? --------------- Added [DATE]1341484926[/DATE] at [TIME]1341484926[/TIME] --------------- After further playing, it seems the $vbulletin->usergroupcache["9"][opentag] & [closetag] aren't being overwritten in the array via my above code. |
All times are GMT. The time now is 01:16 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:
|