![]() |
Unexpected $end Error with Plugin
Can anyone help me fix this? I'm trying to create a plugin that allows a user in a specific usergroup to select a username colour from a dropdown menu in their profile.
This is what I have so far; Product: vBulletin Hook: fetch_musername PHP Code: Code:
Removed :P Code:
Parse error: syntax error, unexpected $end in /home/psych109/public_html/includes/functions.php(1620) : eval()'d code on line 52 |
I think you're just missing one closing '}' at the end.
Also, I remember seeing this code before - I don't think it needs to change $vbulletin->usergroupcache["6"]['opentag'] or $vbulletin->usergroupcache["6"]['closetag']. I think you just want to set $user['musername'], like Code:
$user['musername'] = "<span style=\"color: {$colour}; font-weight:bold\">" . $user['username'] . "</span>"; |
Quote:
|
All times are GMT. The time now is 09:08 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:
|