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