vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Latest Threads as forum block/sidebar (https://vborg.vbsupport.ru/showthread.php?t=247475)

laebshade 07-28-2010 01:28 PM

Latest Threads as forum block/sidebar
 
I've been searching high and low to find a way to do this: scouring this board/mods, but also on Google. I've found a way to include the latest threads in a non-vbulletin/plain html page, but that isn't what I want to do; I want to display the latest threads on the forum sidebar.

See, the ride forum I belong to, http://zzrbikes.com , used phpnuke previously. I migrated the site (still working out kinks) to vbulletin 4.0 suite. One of the issues the members have is the sidebar doesn't show the latest threads. The way phpnuke/phpbb2 showed the latest threads was it showed only the threads, not individual posts, and the person that last posted to the thread, and the date/time of the last post.

Is it possible to do this with vBulletin 4.0?

To recap: show on forum sidebar, 20 latest threads, not individual posts, that either have no reply or replies, in chronological order, and shows the last person who replied next to/below it, along with date/time.

is this doable?

Edit: you can view the way it currently shows by going to http://zzrbikes.com/forum.php and looking on the left sidebar. It shows the last 20 posts, not threads, and multiple posts from the same thread will show up in the sidebar.

Lynne 07-28-2010 01:50 PM

Yes, it's doable. If you don't want to use the existing New Threads forum blocks (which doesn't allow you to only show replyless threads), then just create a PHP block and write your own query to grab the threads with that criteria.

laebshade 07-28-2010 02:05 PM

Thank you for the quick reply. Do you have on hand a query that will do this, or can you tell me which table/fields I need to query to get the data?


All times are GMT. The time now is 03:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01639 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete