vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Get number of new posts from a forum (https://vborg.vbsupport.ru/showthread.php?t=169471)

UberMensch 02-02-2008 09:40 PM

Get number of new posts from a forum
 
How can I fetch the number of new posts from a specific forum? I doubt this can be done with templates alone, so I'm expecting a bit of php is required. How could I achieve this?

Lynne 02-02-2008 10:00 PM

You would do a query in a plugin - but which plugin would depend on where you want to use this count. You would also need to define 'new' - do you mean new in the last 24 hours, new since the user was last online, new in that the user has never read it, etc.

UberMensch 02-02-2008 10:13 PM

Quote:

Originally Posted by Lynne (Post 1434896)
You would do a query in a plugin - but which plugin would depend on where you want to use this count. You would also need to define 'new' - do you mean new in the last 24 hours, new since the user was last online, new in that the user has never read it, etc.

The plugin would be the hook called when the board index is viewed. By "new" I mean the new posts since the user was last online ;)

Lynne 02-02-2008 11:08 PM

You might want to see if this hack would do what you want since it's alreay written: https://vborg.vbsupport.ru/showthread.php?t=122995

UberMensch 02-03-2008 10:21 AM

With a bit of editing, that should work out fine! Thanks for your help ;)


All times are GMT. The time now is 01:10 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.01120 seconds
  • Memory Usage 1,714KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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