Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Jul 2007, 13:03
orban orban is offline
 
Join Date: Jan 2005
How to avoid sessions when parsing bbcode?

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.
Reply With Quote
  #2  
Old 28 Jul 2007, 11:57
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
You'll either have to:
1./ Strip down global.php to what the parser needs, or,
2./ Deal with it, what's the problem?
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:57.

Layout Options | Width: Wide Color: