The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Heya, new to vBulletin (gasp nooo, a newbie! =O)
Basically, I've been trying to simply pull first posts of each thread from say a News forum or announcement into the homepage. The forum is in a separate folder. Now, I've have manage to pull the data I want and display it on the homepage, but when it come to formatting the post (bbCodes and all) it been proving to be a headache. Was wondering if anyone have any suggestions as in how I could get the post formatted to how it would be displayed in forum outside? Maybe there is a method of using the vBulletin built-in bbCode parser? I have searched the forum, but I even suck at googling so, sorry if this is a repeated question. Thanks - Addy |
#2
|
||||
|
||||
![]() PHP Code:
|
#3
|
|||
|
|||
![]()
Ok, that's a step in the right directation! Yay!..
Right, I get Fatal error: Call to a member function query_first_slave() on a non-object in /home/cfpasta/domains/pasta.coldfront.net/public_html/forums/includes/functions.php on line 1310 The codes: PHP Code:
News object populated (plus the global.php include) by PHP Code:
(To avoid any confusions, the templates are not part of the forums templates is in fact our own.) ~Added~ Just adding this while I'm thinking about, our host just compiled php with mysqli, is it just a simple edit of config from mysql to mysqli and vB will switch over or a bit more to it? Just thought to ask before doing. Kill two birds with one stone, so they say |
#4
|
|||
|
|||
![]()
*echo* Hello?
Does anyone have any ideas how to fix Code:
Fatal error: Call to a member function query_first_slave() on a non-object in /home/cfpasta/domains/pasta.coldfront.net/public_html/forums/includes/functions.php on line 1310 |
#5
|
||||
|
||||
![]()
Since you are calling the parser inside the function - it does not have access to the required variables inside the local scope.
PHP Code:
|
#6
|
|||
|
|||
![]()
*facepalms*
Of course! So obvious now! The news class has no access to the $vbulletin class. Bad me! *slap head* Ok, Error gone, and lacking news now! Ha! *tries things* Thanks you Dismounted! ^_^ - Sorted and working! Woooooo!! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|