The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VB4 queries converted to VB5 ?
I had 2 queries I ran against the db in VB4 to pull most recent posts (in a non-vb page), and all posts from a specific forum.
Wondering if someone can help me convert these to VB5.6 -- I've not quite got the vb5 DB format figured out yet this one grabs stuff from my FYI thread -- SELECT thread.threadid, thread.title, thread.dateline, post.threadid,thread.firstpostid, thread.lastpost, thread.visible, thread.lastposter, thread.lastposterid, post.threadid, post.pagetext FROM " . $TABLE_PREFIX . "thread AS thread LEFT JOIN " . $TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid) WHERE thread.forumid =56 AND thread.visible = 1 GROUP BY thread.threadid ORDER BY thread.lastpost DESC LIMIT 0, " . $postret . " "); this one shows most recent posts -- SELECT thread.threadid, thread.title, thread.dateline, thread.lastpost, thread.visible, thread.lastposter, thread.lastposterid, forum.forumid, forum.title as forumtitle, user.userid, usergroup.opentag, usergroup.closetag FROM " . $TABLE_PREFIX . "thread AS thread INNER JOIN " . $TABLE_PREFIX . "forum AS forum ON(forum.forumid = thread.forumid) LEFT JOIN " . $TABLE_PREFIX . "user AS user ON (thread.lastposterid = user.userid) LEFT JOIN " . $TABLE_PREFIX . "usergroup AS usergroup ON (usergroup.usergroupid = user.usergroupid) WHERE thread.forumid NOT IN($excforum) AND thread.visible = 1 GROUP BY thread.threadid ORDER BY thread.lastpost DESC LIMIT 0, " . $postret . " "); Thanks Really appreciate any help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|