vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Auto execute query (https://vborg.vbsupport.ru/showthread.php?t=174725)

SCuN 03-31-2008 05:39 PM

Auto execute query
 
Do I greet someone could write script which he made these query to cron of every hour ?

UPDATE search SET ipaddress = 0
UPDATE user SET ipaddress = 0
UPDATE post SET ipaddress = 0

thanks :rolleyes:

Dismounted 04-01-2008 03:49 AM

Cron as in vBulletin Scheduled Task? Or proper crontab cron?

Marco van Herwaarden 04-01-2008 09:04 AM

What you are probably looking for is:

AdminCP -> vBulletin Options -> Message Posting and Editing Options ->
Log IP Addresses: Do not log IP

SCuN 04-01-2008 03:38 PM

Quote:

Cron as in vBulletin Scheduled Task? Or proper crontab cron?
vBulletin Scheduled Task...

Quote:

AdminCP -> vBulletin Options -> Message Posting and Editing Options ->
Log IP Addresses: Do not log IP
so marked have so but when someone registers his ip he is written down farther ... why I do not know...

Dismounted 04-02-2008 04:12 AM

This is basically the whole script:
PHP Code:

$vbulletin->db->query_write("UPDATE search SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE user SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE post SET ipaddress = 0"); 


SCuN 04-03-2008 05:06 AM

He Thanks very much

That is I have to create the file php with content

PHP Code:

$vbulletin->db->query_write("UPDATE search SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE user SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE post SET ipaddress = 0"); 

and to send him to /forum/includes/cron/ and I use from Scheduled Task
Apologize then that I give so stupid questions but I have vbulletin from 3 weeks

Dismounted 04-03-2008 05:18 AM

No, I believe you will need to add some standard cron PHP around it. Look in the files vBulletin comes with, and you will know what to add.

SCuN 04-03-2008 05:34 AM

ok thanks
I already know
PHP Code:

<?php
error_reporting
(E_ALL & ~E_NOTICE);
if (!
is_object($vbulletin->db))
{
    exit;
}

$vbulletin->db->query_write("UPDATE search SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE user SET ipaddress = 0");
$vbulletin->db->query_write("UPDATE post SET ipaddress = 0");

?>



All times are GMT. The time now is 11:05 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.01511 seconds
  • Memory Usage 1,732KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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