The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Ok that was helpful. I've been looking for the msdn of vbulletin, but I have another question...
If I put some html in a php variable (like $myvar = "<TABLE> STUFF </TABLE>, then ask it to show on a custom template, it still strips out the chars. Do I need to put a function of some sort on the template itself to allow it to be treated as code and not < $gt chars? Here is a pseudo of what i'm doing... PLUGIN in global_start: PHP Code:
Code:
$myvar EDIT: Can I use (taken from the api) string unhtmlspecialchars (string $text, [boolean $doUniCode = false]) in a template? |
#12
|
||||
|
||||
You cannot use functions in a template. You may use them in a plugin and then use the result from the plugin in the template.
|
#13
|
|||
|
|||
So how do I keep a template from stripping the html out of a php variable when I "eval" it into a template?
|
#14
|
||||
|
||||
I don't know exactly cuz I've never looked into it. You can take a look at what vb does in the code when you allow html in a forum. It has to parse the message text differently when html is allowed, so go see how they do it with that option enabled.
|
#15
|
|||
|
|||
And here it is, working just like it should. Profile fields as webpages!
PHP Code:
|
#16
|
|||
|
|||
I'm trying to get certain custom user fields to parse, on postbit_legacy.
I did this plugin in member_complete, but it's still not working. what am I doing wrong? Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|