View Full Version : Unexpected $end Error with Plugin
Brexen
08-27-2012, 02:48 PM
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:
Removed :P
This gives me this error:
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
$user['musername'] = "<span style=\"color: {$colour}; font-weight:bold\">" . $user['username'] . "</span>";
Brexen
08-27-2012, 03:05 PM
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
$user['musername'] = "<span style=\"color: {$colour}; font-weight:bold\">" . $user['username'] . "</span>";
Thanks again, learning alot today xD
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.