vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to use "thread started" in "lastpostby"? (https://vborg.vbsupport.ru/showthread.php?t=69337)

tjnugent 09-12-2004 02:49 AM

How to use "thread started" in "lastpostby"?
 
I'm reworking a site so that some of its forums act like normal forums, and some act more like blogs (first post in the forum is the blog entry, all replies are 'comments' on the blog entry). On the forumhome page (ie. index.php), we list everything, along with the "forum" description and the 'lastpostby' info (i.e., "Thread title by User on Date & Time"). But rather than displaying the 'lastpostby' info (which shows the most recent reply by anyone, anywhere in the forum) for the blogs, we'd prefer to show the date & title of the most recently started blog entry/thread (even if an older blog thread has received more recent replies).

Looking into the code, I don't see any easy of doing what we want to do. Once you're looking at a specific, individual thread (e.g., in forumdisplay) it's easy to grab the date that thread was opened. And there's lots of built-in functionality for finding the 'lastpostby' info for a forum. But I haven't found anything that would tell you what the last 'dateline' info for a forum (i.e. what the date was of the most recently started thread) was.

Do I need to create my own SQL query to find out that info? Or can it be done some other, easier way?

Dean C 09-12-2004 02:19 PM

Moved to General vBulletin Questions. Please read the forum descriptions more closely in future :) Thanks

tjnugent 09-12-2004 03:39 PM

Oh, sorry. I guess the difference between "General Modification Discussion" and "General vBulletin Questions" isn't clear to me. Wasn't my question referring to a modification to vB?

Whichever forum the question belongs to, the question still stands: Is there a relatively easy way to get the date and general thread info of the most recently started thread (instead of the most recently replied to thread)?

tjnugent 09-15-2004 03:13 PM

< bump >

Anybody? Bueller...? Bueller....?

:cheeky:


All times are GMT. The time now is 05:04 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.02594 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
  • (4)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