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)

inteller2k7 09-19-2008 12:32 PM

Quote:

Originally Posted by uzeyir (Post 1625618)
help me please

Yes you can, in the user settings under (// Start of user defined variables)
change this line( $check = '`forumid` = 2'; //Forums to check )
to match your forum numbers:

and for each forum it has to be entered this way,

`forumid` = 2 OR `forumid` = 3 - This will check both forum id 2 and 3

uzeyir 09-19-2008 12:37 PM

Quote:

Originally Posted by inteller2k7 (Post 1625623)
Yes you can, in the user settings under (// Start of user defined variables)
change this line( $check = '`forumid` = 2'; //Forums to check )
to match your forum numbers:

and for each forum it has to be entered this way,

`forumid` = 2 OR `forumid` = 3 - This will check both forum id 2 and 3

all forum check ?

Dman91 09-19-2008 03:10 PM

Exel, send me your bot.php
pnosko31 - Comment out the megashares array if it doesnt work ;)
edermix - Try using english and not your language and report back if it works
acco - I will fix this in next version

kud0gfx 09-19-2008 03:57 PM

Dman, no answer for me? :(

ShadowAssassin 09-19-2008 04:12 PM

Damn, This is soo confusing to setup, why can't you make a product, and we import it, its much easier ;)

chaot1c 09-19-2008 06:36 PM

When it PM's a member, I get a PHP error at the top(don't have the error, because I uninstalled the script for now)
and it sends them the wrong threadid, is there a way to fix this?

Skavenger 09-19-2008 07:09 PM

Any news about the product with ACP config?

Also,
Quote:

Originally Posted by Skavenger (Post 1623100)
Is there any way to disable bot's posts and PM system?


vietdjclub 09-19-2008 11:07 PM

Quote:

Originally Posted by Skavenger (Post 1625841)
Any news about the product with ACP config?

Also,

read here
https://vborg.vbsupport.ru/showpost....&postcount=118

Skavenger 09-20-2008 12:16 AM

Quote:

Originally Posted by vietdjclub (Post 1625944)

I saw that a few days ago, but there is no download link there and I don't understand why you are still linking to that page and not releasing the mod here.

vietdjclub 09-20-2008 12:31 AM

i want to post new thread but the author is not accepting.

d0nbiz 09-20-2008 01:39 AM

I get the following error when attempting to run vbbot.php

Quote:


Warning: fopen(botruns.txt) [function.fopen]: failed to open stream: Permission denied in /home/MYUSERNAME/public_html/forum/vbbot.php on line 25

Warning: fclose(): supplied argument is not a valid stream resource in /home/MYUSERNAME/public_html/forum/vbbot.php on line 26
Using Method where it seems that all topics have been checked.

Warning: unlink(botruns.txt) [function.unlink]: No such file or directory in /home/MYUSERNAME/public_html/forum/vbbot.php on line 294

Dman91 09-20-2008 03:05 AM

@kud0gfx - Well, the mysql is timing out... so you can wait for next version or ask your server admin to increase mysql timeout
@vietdjclub - I told you 100 times, to PM me to release and i would give you appropriate credits, if you dont agree to that let me know and i will be making acp on my own.
@d0nbiz - Read the FAQ at MaxWCoders

d0nbiz 09-20-2008 04:32 AM

I fixed the first error by adding botruns.txt

;
Now I'm getting this error when I try to run it:

Quote:

Parse error: syntax error, unexpected '=' in /home/MYUSERNAME/public_html/forum/vbbot.php on line 35

kud0gfx 09-20-2008 10:55 AM

Quote:

Originally Posted by Dman91 (Post 1626041)
@kud0gfx - Well, the mysql is timing out... so you can wait for next version or ask your server admin to increase mysql timeout

Thx Dman, i will ask to my server admin, and if he can't ill wiat for next version ;)

Thanks for sharing this great mod!

pierians 09-20-2008 03:59 PM

I have a suggestion to make for the next version...

When you check a thread for 2nd/3rd/4th etc time it edits again the post adding the new date, but it also keeps the edit from previous check.

For example:
Quote:

Links Checked On: 10/09/08 By Link Checker Bot


Links Checked On: 15/09/08 By Link Checker Bot
So my suggestion is that the bot overwright the previous message instead of adding a new one.

rmxs 09-20-2008 04:07 PM

Correct..

After 2 years maybe our boards have 100 links :)

pnosko31 09-20-2008 11:30 PM

Quote:

Originally Posted by pierians (Post 1626422)
I have a suggestion to make for the next version...

When you check a thread for 2nd/3rd/4th etc time it edits again the post adding the new date, but it also keeps the edit from previous check.

For example:


So my suggestion is that the bot overwright the previous message instead of adding a new one.

actually it shouldn't unless you have modified some of the text. It overwrites the text when I use it.

pnosko31 09-20-2008 11:31 PM

Quote:

Originally Posted by vietdjclub (Post 1625944)

if your not going to share then stop posting it

Dman91 09-21-2008 03:04 AM

pierians this should already be replaced if the board is not replacing you have modified the line that bot posts and forgot to edit it in preg_replace
d0nbiz - PM me bot.php file
Here is something for your reference
PHP Code:

$pa '
[b]Links checked on ' 
date('d/m/y'). ' at 'date('H:i') . ' by RapidW Bot[/b]'//This will append this at the end of the checked post 

Second Edit
Code:

$ppa = '<br /> <b>Links checked on ' . date('d/m/y'). ' at '. date('H:i') . ' by RapidW Bot</b>'; //VB uses a caching technique, this will append it to end of parsed post. This is HTML!
Third Edit (Needs to match with $pa and escaping
Code:

$post = preg_replace("/\[b\]Links checked on(.+)by RapidW Bot\[\/b\]/" , "" , $post); //Replace if it is already checked by LC bot
Fourth Edit (Needs to match with $ppa and escaping)
Code:

$postparsed = preg_replace("/\<br \/\> \<b\>Links checked on(.+)by RapidW Bot\<\/b\>/" , "" , $postparsed);
Note : (.+) Will match anything ;)

Skavenger 09-21-2008 03:16 AM

I have tested this in localhost and worked fine, but when I run the script in my live site the page keeps loading and nothing happen. How can I fix this?

Thanks

Dman91 09-21-2008 03:25 AM

Just keeps on loading says nothing?

Skavenger 09-21-2008 03:56 AM

Quote:

Originally Posted by Dman91 (Post 1626672)
Just keeps on loading says nothing?

Yes, just that.

Conner85 09-22-2008 03:54 AM

This is by far the best and most stable version of this script I've seen. Buuuuuuuuuuuuuut.. lol.

There's always something. But this isn't that big of a problem, and can probably be fixed easily.

This bot is binning links that are alive as well as dead links.

Should I send you my vbbot.php file?

Dman91 09-22-2008 03:06 PM

Conner85, you need to give me some more info is it binning megashares links which are good ? If yes, create a new folder chmod 777 move bot to that folder and try running it. This happens because cookie file which is required for megashares is sometimes not created.

pierians 09-22-2008 03:30 PM

Dman91 i've sent you my vbbot.php via pm because it keeps double edit my thread and does not replace the previous edits.
Could you fix this for me please?

Dman91 09-22-2008 05:10 PM

pierians, check pm.

Conner85 09-22-2008 05:40 PM

It's binning RS links which are good. 100% of the links are alive and it still goes to the trash. I saw some MU links but they were good too. But mainly just 2 full pages of RS. Should I try creating a new folder anyway?

Dman91 09-23-2008 07:48 AM

Nah that shouldnt affect did it give any error while checking those links ?

Conner85 09-24-2008 08:24 PM

Nope. It just binned like 2 pages worth of posts with 100% alive links.. lol.

Should I send you my file?

Cust0ms 09-24-2008 10:51 PM

looool
This shit removed ~5k threads with 100% works links!! :/ What now?!

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 07:33 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.01376 seconds
  • Memory Usage 1,835KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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