The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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!! |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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:
Fatal error: Cannot instantiate non-existent class: vb_bbcodeparser in /path/to/forum/directory/news.php on line 10 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? |
|
#4
|
|||
|
|||
|
Try adding
PHP Code:
Thanks, Alan. |
|
#5
|
|||
|
|||
|
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
.
|
|
#6
|
||||
|
||||
|
vbdate() is my friend! I had been using my own function to display the date peoperly up till now, lol. Thanks!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|