vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can i get this information? (https://vborg.vbsupport.ru/showthread.php?t=160969)

aceofspades 10-23-2007 09:13 PM

Can i get this information?
 
Hi guys!

Im trying to plan a mod, and im wondering if i can get all of the below information from the vbulletin database.

*Which was the last user to login, and how long ago was his last action (clicking a link)
*What was the last post and who made it and in what from and what date / time it was posted.
*What was the last thread, what was it called, who made it, and how long ago.
*Who made the last pm. Who it was to, and how long ago.

Does this sound possible? Would getting all this information from the database take a long time?

MarkPW 10-23-2007 09:48 PM

Yes, it's possible to retrieve all the data you want.

Opserty 10-24-2007 08:39 AM

[sql]
SELECT * FROM X ORDER BY Y DESC LIMIT 1
[/sql]
  1. X = session Y = lastactivity
  2. X = post Y = dateline
  3. X = thread Y = dateline
  4. X = pmtext Y = dateline
I think its something like that. :p


All times are GMT. The time now is 01:37 PM.

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.01032 seconds
  • Memory Usage 1,706KB
  • 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