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)

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


All times are GMT. The time now is 09:16 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.01424 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_quote_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