Log in

View Full Version : Calling BB CODE Functions outside VB


Man1c M0g
10-09-2005, 08:49 PM
My site is pretty extensively integrated with Vbulletin, which allows me to add bits to my tutorials such as 'last 5 comments' sections, etc. These are simply pulled from the pagetext row of the post table You can see an example here - http://biorust.com/tutorials/detail/7/en/ (ensure you scroll down around 1/2 way down the page).

My problem is that I can't seem to successfully call a function outside the VB engine that parses the BB code in the text of the comments. I've tried following this thread (https://vborg.vbsupport.ru/showthread.php?t=82693), but to no avail. Anyone else got any ideas?

Kirk Y
10-09-2005, 09:21 PM
Did you try including global.php, in addition to the "this thread" instructions.

Man1c M0g
10-09-2005, 09:35 PM
Did you try including global.php, in addition to the "this thread" instructions.

I did, yeah. All my pages include global.php - its how I get the membership bar down the right working if you are logged in...

Kirk Y
10-11-2005, 11:51 PM
Perhaps try:

chdir('/home/site/public_html/forums/');

Replacing the home/site/etc... with your applicable values of course.

Man1c M0g
10-12-2005, 05:49 AM
Perhaps try:

chdir('/home/site/public_html/forums/');

Replacing the home/site/etc... with your applicable values of course.

Thanks, but I eventually sorted this problem by myself. It was actually to do with the way that VB3.5 references the database settings. When called externally, it wasn't getting the values it needed.

All sorted now though. ;)