The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
When I try to put something into postbit_display_start, like, say
Code:
echo "this is a test statement"; --------------- Added [DATE]1235820573[/DATE] at [TIME]1235820573[/TIME] --------------- Okay... I wrote this plugin: Postdata_start Code:
if ($post[field11] && $post[field12]) { require_once(DIR . '/includes/class_bbcode.php'); $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $parsed_text = $parser->do_parse($text, $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable); $text = $post[field11].$message.$post[field12]; } Code:
<if condition="$post[field11] AND $post[field12]">$parsed_text <else /> $post[message]</if> But when I tried it out, no HTML was outputted. And this is probably a serious security risk, seeing as people can type in PHP code for the fields and have it execute. How can I change that? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|