Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Recent Topics on Non-VB Pages Details »»
Recent Topics on Non-VB Pages
Version: 2.0, by LBmtb LBmtb is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.2 Rating:
Released: 09-08-2008 Last Update: Never Installs: 44
Additional Files  
No support by the author.

RECENT TOPICS by LBmtb
Version 2.0
Last updated: September 9th, 2008

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. You may output the recent topics in table format, list format, or retrieve an array of the topics for custom output. Installing this script assumes basic PHP knowledge. PHP5 is required. This is an updated version of this mod: https://vborg.vbsupport.ru/showthread.php?p=1141334

COPYRIGHT
I am releasing this script on the condition that you do not remove the copyrights from the code. You may not modify and redistribute the code without written permission. 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 for installation.

REVISION HISTORY
Version 2.00: Complete code rewrite (OOP). Preview of first post removed for performance. Made it possible for multiple recent topic blocks to be added to a page.
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) Unpack the files into it's own directory. Make sure that recent_topics.class.php, config.php, and register.class.php stay in the same directory now and after you upload to your web server.
2) Go into config.php and modify the values for your forum URL and the database connection.
3) Go into usage.php to see examples and instructions on the usage of Recent Topics. If you use Recent Topics in a different directory, make sure to adjust the 'require_once('recent_topics.class.php');' line to reflect that change.
4) Mark as Installed
5) Donate (optional)

DEMO:
http://www.socaltrailriders.org/recentTopics/usage.php

DONATIONS
Having recent topics on the rest of your website is a great way to show what's currently going on in your forum. I tried to make the process of adding this functionality as easy on you as I could. If you like what this brings to your website, please consider making a donation. It would be much appreciated. My paypal email is: webmaster@socaltrailriders.org

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-26-2008, 12:56 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We upgraded to php 5 and used your code multiple times. We would have preferred the vBSEO option but you apparently haven't coded that yet and you didn't answer my pm, so that's cool.

You can also use multiple images with this as we've done on our own site, it requires changing the word "topics" in every copied file set of this code to whatever the multiple use is.

So we named them, news, videos, religion, etc. So that it would pull the image from a different file and allow multiple imagery with this, which is something we added to as your product didn't come standard with that. If people would like to see an example of the code to do this, let me know.

Shown here in application:

http://www.legionofangels.net
Reply With Quote
  #13  
Old 09-27-2008, 03:48 PM
maidos maidos is offline
 
Join Date: Jul 2006
Posts: 925
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks alot
Reply With Quote
  #14  
Old 09-27-2008, 10:42 PM
maidos maidos is offline
 
Join Date: Jul 2006
Posts: 925
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you select latest thread in a specific forum section id?
Reply With Quote
  #15  
Old 10-02-2008, 08:45 PM
legionofangels's Avatar
legionofangels legionofangels is offline
 
Join Date: Mar 2007
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by maidos View Post
can you select latest thread in a specific forum section id?
Yes, that is within his code. Exclude or Include certain forums based upon ID's.
Reply With Quote
  #16  
Old 10-06-2008, 04:09 PM
star88 star88 is offline
 
Join Date: May 2008
Location: France
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you very much for your work
Reply With Quote
  #17  
Old 10-24-2008, 09:54 AM
kud0gfx's Avatar
kud0gfx kud0gfx is offline
 
Join Date: Apr 2008
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i get the variables thread_starter

and thread_start_time

Thank you very much, if i get to make it rule properly, i will donate for sure!

and, could it only show the new threads? like the rss, not the new posts, i dont know if im explaining myself...

too expecting vbSEO compatible ^^
Reply With Quote
  #18  
Old 10-29-2008, 12:21 AM
CorneliusW CorneliusW is offline
 
Join Date: Feb 2003
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LBmtb View Post
I just downloaded the zip file and rechecked the files and they seem okay. What file does it say the error is on and what line? Feel free to PM me the full error and copy/paste that line plus the line before it and I can tell you where the error is.

Oh . . . I also forgot to mention that this requires PHP5. If there's enough demand I can make a PHP4 version.
I am running PHP 5 and I receive the same error on main page of website. I have the script files in the home directory so that its with my index.php. Here's the full error:

Quote:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/prowr7/public_html/mmaing/recent_topics.class.php on line 32
Reply With Quote
  #19  
Old 11-15-2008, 06:44 PM
Tomzl Tomzl is offline
 
Join Date: Jan 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My forum uses UTF-8 and I am getting strange characters using this script. Is this script UTF-8 compatible?
Reply With Quote
  #20  
Old 11-15-2008, 07:11 PM
Wsh Wsh is offline
 
Join Date: May 2004
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this show the actual thread content itself as well? or just the titles
Reply With Quote
  #21  
Old 02-16-2009, 03:02 PM
JohorBahru JohorBahru is offline
 
Join Date: Jan 2009
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

may i know how to edit the text size and number of characters?
thank you
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04692 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete