The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
|||
|
|||
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).
|
#3
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|