vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   A simple hack that YOU can help me with. (https://vborg.vbsupport.ru/showthread.php?t=37380)

Andy Z 04-15-2002 10:47 PM

Every time the page loads it will execute that query, every day the date() part will change with the server's clock. So the next day for your server it would return different results. With nicksaunders code it would pull the threads from the last 24 hours from the time the person called the page from his/her browser. To get this on a non-vB page, it still has to be a php-processed page (usually only .php like extensions). On the non-vB page put:
<?php
require('/home/username/public_html/forums/global.php');
?>
and replace that path with the paths to your forums (on most linux hosts that should be pretty close).

Gutspiller 04-16-2002 02:31 AM

Quote:

Originally posted by andypotter
Every time the page loads it will execute that query, every day the date() part will change with the server's clock. So the next day for your server it would return different results. With nicksaunders code it would pull the threads from the last 24 hours from the time the person called the page from his/her browser. To get this on a non-vB page, it still has to be a php-processed page (usually only .php like extensions). On the non-vB page put:
<?php
require('/home/username/public_html/forums/global.php');
?>
and replace that path with the paths to your forums (on most linux hosts that should be pretty close).

Like I said, I want to be able to adjust the time. I said that in my first post. I don't want it specific on page loads, server time, or users time. I want to set the when the 24 hour block restarts. THAT is what I want the code for. Can somebody please provide the code for that? :(

N!ck 04-17-2002 01:22 AM

the 24 hours is always 24 hours before you loaded the page. it never starts over.

once again, this is the number of THREADS affected, and the script doesn't lie ;). if you want to change it to show posts, i'll have to do a left join which is a pain in the butt (actually, i'm lazy and don't want to do it unnecessarily)

Gutspiller 04-17-2002 02:44 AM

Quote:

Originally posted by nicksaunders
the 24 hours is always 24 hours before you loaded the page. it never starts over.

once again, this is the number of THREADS affected, and the script doesn't lie ;). if you want to change it to show posts, i'll have to do a left join which is a pain in the butt (actually, i'm lazy and don't want to do it unnecessarily)

I am a little confused as to what you mean. Also, it still doesn't show the posts in the right forum. I have included everything that you said and it still will show a number of posts that haven't been posted in the forums that I have specified to watch. I didn't think this hack would be this hard? :ermm:

I just want it to work. :( (and so far it hasn't worked once) :disappointed:

Can you fix it? I mean if you haven't even tested it, I don't see how you can be so sure you know exactly what it's doing.

N!ck 04-18-2002 01:06 AM

i don't think i'm advanced enough to do this then :P

firefly, assistance please. thanks

Gutspiller 04-18-2002 02:19 AM

Quote:

Originally posted by nicksaunders
i don't think i'm advanced enough to do this then :P

firefly, assistance please. thanks

OK, thanks for all your help anyhow. :)


All times are GMT. The time now is 01:46 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.00943 seconds
  • Memory Usage 1,728KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete