The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
LBmtb's Recent Topics on Non-VB Pages Details »» | |||||||||||||||||||||||||
RECENT TOPICS by LBmtb
Version 1.03 Last updated: March 27th, 2007 DESCRIPTION This script will display the topics with the most recent posts on a non-vb page (any HTML page). The page it's on must have a .php extension or you should setup apache to parse the page correctly. The threads with the latest posts are on top. The output is a clean list in this format: HTML Code:
<ul class="vb_topics"> <li><a href="http://www.yourdomain.com/forum/showthread.php?t=4150">This is the latest thread</a> <span class="vb_last_post">(user1 @ 12/18/06 05:58 PM)</span></li> <li><a href="http://www.yourdomain.com/forum/showthread.php?t=4138">Another recent thread</a> <span class="vb_last_post">(user2 @ 12/18/06 05:58 PM)</span></li> </ul>
There is a copyright line. I am releasing this script on the condition that you do not remove this line unless you send $5 via paypal to webmaster@socaltrailriders.org. Thanks in advance for understanding. NEED CUSTOMIZATION OR PROFESSIONAL INSTALLATION? Email me at webmaster@socaltrailriders.org, PM me on vbulletin.org, or aim me at "lbmtb" to inquire about customizing this script or installation. REVISION HISTORY Version 1.03: Adds small preview of first post when the user rolls over the links Version 1.02: option to exclude certain forums Version 1.01: option to only include certain forums Version 1.0: Initial Release INSTRUCTIONS: 1) Copy and paste the following code where you want the list to appear and adjust the values in the section "CUSTOMIZE THE FOLLOWING": PHP Code:
3) Enjoy! 4) Donate (this step optional) UPGRADE INSTRUCTIONS (from 1.02 to 1.03): FIND: Code:
$thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter FROM ".$db_prefix."thread WHERE visible=1 AND open=1 $fid_final $fidx_final ORDER BY lastpost desc LIMIT $limit"); Code:
$thread_sql = mysql_query("SELECT SQL_CACHE t.threadid,t.title,t.lastpost,t.lastposter,t.forumid,substring(p.pagetext,1,90) as post_text FROM ".$GLOBALS['db_prefix']."thread t INNER JOIN ".$GLOBALS['db_prefix']."post p ON t.firstpostid = p.postid WHERE t.visible=1 AND t.open=1 $fidi_final $fidx_final ORDER BY t.lastpost desc LIMIT $limit"); Code:
$tid = $thread_get['threadid']; Code:
$text = $thread_get['post_text']; Code:
forumid=".$value Code:
t.forumid=".$value Code:
echo "<li><a href=\"$forum_url/showthread.php?t=$tid\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n"; Code:
echo "<li><a href=\"$forum_url/showthread.php?t=$tid\" title=\"".$text."\">$thread_get[title]</a> <span class=\"$recent_poster\">($poster $seperator $date2)</span></li>\n"; UPGRADE INSTRUCTIONS (from 1.01 to 1.02): FIND: PHP Code:
PHP Code:
PHP Code:
NOTES: This is my first mod/script so be nice, please DEMO: http://www.socaltrailriders.org/latest_posts.php Supporters / CoAuthors Show Your Support
|
Comments |
#22
|
||||
|
||||
LBmtb: all db settings seems to be ok ... its kind of weird why it doesnt work :S
|
#23
|
|||
|
|||
I'm about to install this now. I think ill donate you the $5 as well, because i'm hoping you may be able to help me with getting it to fit into the current style of my site, as I know ill end up having trouble with that part.
Also what are the chances you will release other vbadvanced mods for non vb pages? Because then you would be my god lol. There are all these mods that I used to use, but since going to a non vb page for my homepage, I have not been able to use any of them. |
#24
|
|||
|
|||
Quote:
Chances of releasing vbadvanced mods for non vb pages are fairly slim. I don't and have never used vbadvanced before. I also have an upcoming events script on my site - that one I got off of vbulletin.org. I'm sure you can find it if you search. PM me with mod ideas if you'd like. |
#25
|
||||
|
||||
I have this same problem. v1.00 works but v1.01 does not.
Bob |
#26
|
|||
|
|||
Ah, dangit. You guys are right. Here's the fix:
FIND: PHP Code:
PHP Code:
|
#27
|
|||
|
|||
Plan for tomorrow: Add the ability to exclude forums. Currently you can only specify forums to include.
The include would be useful if you want threads from just one or two forums. If you want most forums to be displayed except for one or two then you'd want to use the exclude thing. |
#28
|
||||
|
||||
Quote:
Bob |
#29
|
|||
|
|||
Good to hear!
Updated the script with the ability to exclude certain forums. Included upgrade instructions from 1.01. So now you can either specify forums to include OR forums to exclude. Anybody have any suggestions for future releases? |
#30
|
|||
|
|||
Well I sent you a list of other mods suggestions, but so far this looks great. I'm just trying to get it positioned into the right spot on my homepage tho, i'll probably spend hours on that lol.
Some suggestions could be to also include a snipet of the post, and if you do that, then I have heaps of ideas to go on from their. also do you have the vbseo version? also you misspelled your domain name in the copyright part. Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|