The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Code not working
Hello,
I am trying to replace the username with a profile field. Trying to get the following code to work as a plugin. Can some look it over and see why it doesn't work? Code:
if ($vbulletin->userinfo['usergroupid']=='1') { $output = str_replace('$post[musername]', $post[field2], $output); } Itworx4me |
#2
|
||||
|
||||
And you are putting this into a plugin where?
|
#3
|
||||
|
||||
global_complete
Thanks, Itworx4me |
#4
|
||||
|
||||
All the templates have already been evaluated at that point (i.e. variables replaced with actual values).
|
#5
|
||||
|
||||
Quote:
Thanks, Itworx4me |
#6
|
||||
|
||||
The best way would be just to edit your templates.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|