![]() |
VBCode outside of vbulletin
I am writing a news page for my website, it collects topics from a news forum and displays them on the homepage.
This works fine, except for one issue. If our news editors use vbcode, it doesnt parse (this is not using a portal and does not include any vb files, its all done via making queries to vb's database). Question is, how would I be able to parse the vbcode if its entered. This is totally standalone to the vbulletin, and for efficiency reasons I dont want to start integrating with vb core files. Help here would be greatly appreciated. Heres the function (un-optimised at this time) PHP Code:
* Smileys is not top priority, vbcode however is. Thanks for any help on this one. |
well, you ahve to require global.php of vb and then use bbcodeparse2 function.
|
Is that function portable, as in, could I life it from global.php and copy it into the main site source and it work (with slight code modification of the function for obvious reasons) i.e. variables and the likes, or would that be a complete pain?
|
The code looks like it's for vB3 :confused:
(Technically vB3 hacking isn't allowed, but since this isn't edited any vB3 files, i'll go ahead and post it) Use this code in your while loop PHP Code:
PHP Code:
|
Quote:
of course it would be possible, but it would be much easier to require global.php :) |
All times are GMT. The time now is 09:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|