The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Parse bbcode/clean_gpc.
I've been trying to do it this way but it keeps telling me I'm using clean_gpc wrong.
Code:
<?php chdir("../"); require_once('./global.php'); require_once('./includes/class_bbcode.php'); $input->clean_gpc('p', $_POST['article'], TYPE_STR); $bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); echo $bbcode_parser->do_parse($GPC['article']); ?> Quote:
|
#2
|
|||
|
|||
Try..
Code:
$input->clean_gpc('p', 'article', TYPE_STR); |
#3
|
|||
|
|||
Still having the same problem :\ new code below.
Code:
<?php chdir("../"); require_once('./global.php'); require_once('./includes/class_bbcode.php'); $input->clean_gpc('p', 'article', TYPE_STR); $bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); echo $bbcode_parser->do_parse($GPC['article']); ?> |
#4
|
|||
|
|||
Try using $vbulletin->input->clean_gpc (and also $vbulletin->GPC to access the value).
|
#5
|
|||
|
|||
kh99 always beats me to these things, but I just want to add that using -> after a variable should only be done if you have instantiated a class with it.
For example: PHP Code:
|
#6
|
|||
|
|||
Thanks that worked I thought $vbulletin was set as a global in global.php since on other pages I was able to write queries with $db->query_read() instead of $vbulletin->db->query_read().
|
#7
|
|||
|
|||
Quote:
That's because I have too much spare time. |
#8
|
|||
|
|||
Quote:
You were using $input, which is not an instance of any class- especially of vBulletin's! Can I ask why you were using $input? |
#9
|
|||
|
|||
I don't know :\
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|