Log in

View Full Version : How to avoid sessions when parsing bbcode?


orban
07-26-2007, 12:03 PM
I need to parse bbcode but I want to avoid any sessions.

To use class_bbcode.php you have to include global.php which includes init.php which starts a session.

require_once('./global.php');
require_once('./includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

Is there any way to use the bbcode parser without starting the whole vB system? Or force the script to register as a guest.

Dismounted
07-28-2007, 10:57 AM
You'll either have to:
1./ Strip down global.php to what the parser needs, or,
2./ Deal with it, what's the problem?