![]() |
converting dateline and parsing bbcode
Hi everyone.
Those of you know about my vrssi project then you surely know why I need to know this. Anyways those who don't I am trying to display thread contents and display them as news in a static/dynamic webpage. Now it works just fine, but I have two little problems. One is the codes stored in the database are bb code not html so when it displays in webpage its like PHP Code:
Thanks in advance!! |
Hi,
For the BBCode, there is a bbcode parser class that will convert it for you. Take a look at includes/class_bbcode.php. For the dateline, use vbdate(). Eg: PHP Code:
Alan. |
Thanks m8 I got the dateline working just fine. However having some trouble with bbcode parsing. I have the news file in the forum directory so I just included the same files index.php has :). However when I initialize the bbcode parser it gives me this error:
Code:
This is what I have in 10, $rbbcode = & new vB_BbCodeParser($vbulletin, fetch_tag_list()); and later in the code I am trying to parse the data like this: $news = $rbbcode->parse($data['pagetext'], $forumid); The vB_BbCodeParser requires the following parameters, vB_Registry Reference to registry object array List of tags to parse Any ideas? |
Try adding
PHP Code:
Thanks, Alan. |
Thanks alan, I was reviewing the showthread.php file and saw that it does include the class_bbcode.php file seperately where I thought it is included within global.php. Thanks for your support :).
|
vbdate() is my friend! I had been using my own function to display the date peoperly up till now, lol. Thanks!
|
All times are GMT. The time now is 03:35 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:
|