vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I modify getnew routine to accept different date for each forum? (https://vborg.vbsupport.ru/showthread.php?t=67290)

edschaum 07-17-2004 08:35 PM

How can I modify getnew routine to accept different date for each forum?
 
Hi,

I recently wrote a persistant mark forum read routine which stores a separate time value for when each forum was last marked as read.

What I want to do next is to get a "quickscan" routine going - i.e., read new messages in every forum using the individual time stored for each forum.

It seems like the easiest way to do this would be to modify the "getnew"
routine in search.php to accept a separate time value for each forum instead of the single time that is used repeatedly. I keep staring at the code but I'm not coming up with any easy solutions on how to accomplish this.

Anyone want to help with this? All I can offer is acknowledgement in the docs and my thanks.

Ed

edschaum 07-18-2004 06:22 PM

The main thing I need to get this working is to be able to pull a list of all the forumid's that the current user has access to.

Is there a single built-in function that will return an array of all forumid's that a user is allowed to view?

Merjawy 07-18-2004 09:56 PM

I am not sure I understood you but lets try this

search.php?do=getdaily&days=X

X=how many days back to search for posts

getdaily&days=7 will result in a week worth of posts

if thats not what you're looking for, I am sure it will give you an idea to how to go about what you need

edschaum 07-19-2004 11:13 AM

Hi,

Thanks for the reply. What I'm looking for is some help modifying the code inside search.php.

Ed

MissKalunji 11-27-2011 12:01 AM

Quote:

Originally Posted by Merjawy (Post 534511)
I am not sure I understood you but lets try this

search.php?do=getdaily&days=X

X=how many days back to search for posts

getdaily&days=7 will result in a week worth of posts

if thats not what you're looking for, I am sure it will give you an idea to how to go about what you need

thank you! i've been wondering how to write it.


All times are GMT. The time now is 03:37 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.00977 seconds
  • Memory Usage 1,717KB
  • 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