The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm making my own news backend for vB3.. and it used to be working fine, everything pulled from the DB correctly, I just had to add bbcode parsing. BUT, now that I have gotten the bbcode parsing to work.. everything else that is pullled from the DB comes out with F or W. I have it pulling two posts from forumid 1, and the first post displays
Author: F Title: F Replycount: F And the second, the same, but with W. Both are also showing a postdate for February 3, 2004. :\ >_< WTf is wrong? (Demo: http://eightbitmonster.com) |
#2
|
|||
|
|||
![]()
That is strange! Can you post your code for the select and fetch_array?
|
#3
|
|||
|
|||
![]() Quote:
Code:
$data = $DB_site->query(" SELECT thread.threadid, thread.title, thread.replycount, thread.postusername, thread.postuserid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, forumid, post.postid, pagetext FROM " . TABLE_PREFIX . "thread AS thread LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid) WHERE forumid IN($newsforumid) GROUP BY post.postid ORDER BY dateline DESC"); while( $news = mysql_fetch_array($data) ) { $postdate = vbdate("F d, Y", $news['dateline']); // FORMAT DATELINE $news = parse_bbcode2($news['pagetext'], no, yes, $allowsmilie, yes);; echo("<table class=tborder cellpadding=6 cellspacing=0 border=0 width=100% align=center><tbody>"); echo("<tr><td width=1% class=tcat><img src=\"images/byte/caticon.gif\" alt=\"Replies: ".$news["replycount"]."\" border=0></td>"); echo("<td class=tcat><a href=./forum/showthread.php?t=".$news["threadid"].">".$news["title"]."</a>"); echo("<div class=smallfont>Posted by: <a href=./forum/member.php?u=".$news["postuserid"].">".$news["postusername"]."</a></div></td></tr></tbody>"); echo("<tbody><tr><td class=alt1 colspan=2><div class=smallfont>$news</div>"); echo("<div class=right>$postdate</div></tr></td></tbody></table><br />"); } |
#4
|
||||
|
||||
![]()
You should change
PHP Code:
PHP Code:
And for your F-Problem: It should be PHP Code:
![]() |
#5
|
|||
|
|||
![]() Quote:
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|