The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
html to BB conversion?
Hi,
would it be possible to convert my html (like in the editor) to the BBcode I've found out in the codes that Vb is already doing this... although I can't figure out how to do this on other pages of my website. My BBcode to HTML parser works but now I want to parse the content of my Editor to BBcode I've been looking around in the function files and this is what i've got: $bbcode = convert_wysiwyg_html_to_bbcode($html); (from includes/functions_wysiwyg.php) and then I get the following error: Fatal error: Call to a member function clean_gpc() on a non-object in /home/z-spot/webserver/forum/includes/functions_wysiwyg.php on line 94 I've found the clean_gpc() function but when I include this function into my testfile nothing changes :s This is the function: function &clean_gpc($source, $varname, $vartype = TYPE_NOCLEAN) { if (!isset($this->registry->GPC["$varname"])) // limit variable to only being "cleaned" once to avoid potential corruption { $sg =& $GLOBALS[$this->superglobal_lookup["$source"]]; $this->registry->GPC_exists["$varname"] = isset($sg["$varname"]); $this->registry->GPC["$varname"] =& $this->clean( $sg["$varname"], $vartype, isset($sg["$varname"]) ); } return $this->registry->GPC["$varname"]; } (Source: class_core.php) Would anyone be able to help me with this and figure out how I would be able to convert html code to BBcode Thanks, Jasper |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|