vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Administrative and Maintenance Tools - vb Linkchecker Bot 1.1 (https://vborg.vbsupport.ru/showthread.php?t=190407)

Conner85 09-24-2008 11:14 PM

If you would be patient, he is probably going to help us both out with that same problem. And this mod isnt "s***", it's one of the best mods on this site. And for any new release, it will have bugs. But a comment like what you just made is showing no appreciation for the people who actually code things for unappreciative people as yourself. So learn to code this stuff yourself or learn to appreciate the people who code it for you, whether it works for you or not. Doesn't mean it doesn't work for other people.. who have actually stated that it does in fact work if you would read the whole thread.

Cust0ms 09-25-2008 10:46 AM

Ok, sorry... but I lost a lot of posts included good rs.com links...

pierians 09-25-2008 07:51 PM

Hello again, i have one problem.
I changed the php file so that the edit that bot makes is like this

Links Checked On: 25/9/08 By Link Checker Bot

Code:

$pa = '


Links Checked On: ' . date('d/m/y'). ' By Link Checker Bot'; //This will append this at the end of the checked post

I tried to edit also the post preg like this

Code:

$post = preg_replace("/Links Checked On(.+)By Link Checker Bot/"

and also in html

$post = preg_replace("/<b>Links Checked On<i>(.+)</i>By Link Checker Bot</b>

But when i check for 2nd time a topic two things happen.

1) The bot double edits the post and as a result there are 2 edits of the bot inside the post.
For example "
Links checked on 24/09/08 by link checker bot
Links checked on 25/09/08 by link checker bot "

Or

2) The hole post vanishes and the only thing left is the edit by the bot...

Could you please help me?

TrevsRevenge 09-26-2008 12:30 AM

sarkar and Dman91 First off this scritp rocks it works perfect it does timeout after a couple of minutes but using the delete botruns.txt and restarting the script it's a piece of cake. My Question to you guys is what can I strip out of this script to stop the pm's to the members after a post has been binned. The reason i ask this is I did one small section on my board and I must have gotten 500 Pm's alot of my staff asked me to take this option out. You can pm me or post the code I need to remove. Big Thanks guys I will be donating on your board you have made our lives alot easier.

Trev

Dman91 09-26-2008 10:17 AM

@TrevsRevenge - remove this
PHP Code:

            $pms "Hey,I'm the LC Bot. \n Your topic has been moved to trash since the links in it were dead. \n Please check it out.If u suppose the I am wrong, don't PM me, but PM any of the staff members of the site \n";
            
$pms .=  "[URL='$realurl']$realurl'[/URL]';
            
$pma "a:1:{s:2:\"cc\";a:1:{i:$uid;s:4:\"$uname\";}}";
            
$pms mysql_real_escape_string($pms);
            
$pma mysql_real_escape_string($pma); 

and
Code:

            //Pm user
            $qu6 = mysql_query("INSERT INTO `".$prefix."pmtext` (`fromuserid`, `fromusername` , `title` , `message` , `dateline` , `touserarray`) VALUES ('$botid' , '$botname' , '$pmt' , '$pms', ".time()." , '$pma')");
            $qu7 = mysql_query("SELECT `pmtextid` FROM `".$prefix."pmtext` WHERE `message` = '$pms'");
            $re7 = mysql_fetch_assoc($qu7);
            $pmtextid = $re7['pmtextid'];
            $qu8 = mysql_query("INSERT INTO `".$prefix."pm` (`pmtextid`, `userid`, `folderid`, `messageread`) VALUES ('$pmtextid' , '$uid' , '0' , '0')");
            $qu9 = mysql_query("UPDATE `".$prefix."user` SET `pmtotal` = `pmtotal` + 1 , `pmunread` = `pmunread` + 1 WHERE `userid` = '$uid'");

About the timeout issue you can either tell your server admin to increase mysql timeout setting or wait for next version
@pierians - Check PM

hscorp 09-28-2008 06:31 AM

when the next version will come a live?

iPodHacking.com 09-28-2008 02:10 PM

soon

hscorp 09-28-2008 08:01 PM

i had another problem

it works fine sometimes but sometimes stop in the middle with no error or reasons

anyhelp? :)

dreads 09-28-2008 08:55 PM

it can also be leaked by a private host 0o

thats happened to me before

Anyhow its a pretty good script :D

Dman91 09-29-2008 10:49 AM

@hscorp - Read my post on timeout somewhere...


All times are GMT. The time now is 02:35 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.01349 seconds
  • Memory Usage 1,743KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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