vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Article Bot (https://vborg.vbsupport.ru/showthread.php?t=67078)

rex_b 07-30-2004 06:14 PM

when I run /articlebot/articlebot.php I get this :

Warning: chdir(): No such file or directory (errno 2) in /home/rexb2/public_html/forum/articlebot/articlebot.php on line 42

Warning: main(./global.php): failed to open stream: No such file or directory in /home/rexb2/public_html/forum/articlebot/articlebot.php on line 43

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rexb2/public_html/forum/articlebot/articlebot.php on line 43

rex_b 07-30-2004 06:20 PM

fixed .. I'm an idiot.

rex_b 07-30-2004 06:43 PM

ok I ran the articlebot.php and it posted 1 article. So I changed the fetch in the admincp to 5 per interval and ran the articlbot.php again and nothing happend.

Any guesses?

rinkrat 07-30-2004 06:55 PM

Try changing the interval to less that it is. I have a special forum for the articles so I just cranked the fetch to 15 and the interval to 1 minute.

Speaking of this, is there a way I can just have it get ALL the articles and post them immediately?

rinkrat 07-30-2004 06:56 PM

I was checking out the posting times of the bot and realized that my cron isn't working but the scheduled task in VB admin is working. So I'll just go with the one in the control panel I guess.

rinkrat 07-30-2004 07:02 PM

Quote:

Originally Posted by Velocd
KW802, add the template to your default style.

As for that error, check articlebot.php, and make sure you configured the absolute paths correctly.



Execute articlebot.php in your browser. No errors? There shouldn't be any if you configured the paths correctly.

For those using vB's scheduled tasks, I'll look into making Article Bot more integrated with it (the hack was not built for it).. although I can't guarantee it'll be anytime soon.

I do recommend you use a real cron setup anyway (if you're on a NIX server, via your cPanel or shell), instead of vbulletin's system.


Since the adminCP works for me I'll be waiting for this. It's way easier for most people if you can do it from the admin menu. at least it works so that's what really matters.

klassicd 07-30-2004 08:25 PM

This is the greatest MOD ever made. I love you.

See mine in action here: www.thepokerpost.com

For anyone using PHP 4.3.0 are earlier add this function to the top of articlebot.php.

PHP Code:

 if (!function_exists('html_entity_decode')) {
  function 
html_entity_decode ($string$opt ENT_COMPAT) {
   
$trans_tbl get_html_translation_table (HTML_ENTITIES);
   
$trans_tbl array_flip ($trans_tbl);
   if (
$opt 1) { // Translating single quotes
     // Add single quote to translation table;
     // doesn't appear to be there by default
     
$trans_tbl["'"] = "'";
   }
   if (!(
$opt 2)) { // Not translating double quotes
     // Remove double quote from translation table
     
unset($trans_tbl["""]);
   }
   return 
strtr ($string$trans_tbl);
  }
}
// Just to be safe ;o)
if (!defined("ENT_COMPAT")) define("ENT_COMPAT"2);
if (!
defined("ENT_NOQUOTES")) define("ENT_NOQUOTES"0);
if (!
defined("ENT_QUOTES")) define("ENT_QUOTES"3); 


fonzerelli_79 08-01-2004 04:11 PM

installed this with no errors and on the surface everything seems to be ok

but no posts are being made by the blogs etc

ive used cron and the include in the php end template

the forum room isnt live - eg its display order is set to 0, but that shouldnt make a difference

what are the first things to check if posts arent being made

any help would be appreciated:)

Code Monkey 08-02-2004 12:38 AM

I installed this and it is fantastic. Thanks alot. I did have a problem with some code in the feed I am parsing. As well as keeping bold charecters intact. But I solved it by adding the following code.

I found
PHP Code:

$article['description'] = strip_tags(html_entity_decode(trim($article['description']))); 

and added above.

PHP Code:

$article['description'] = str_replace('<b>''[b]'$article['description']);
$article['description'] = str_replace('</b>''[/b]'$article['description']);
$article['description'] = str_replace('</b>''[/b]'$article['description']);
$article['description'] = str_replace('<b>''[b]'$article['description']);
$article['description'] = str_replace('<br />'"\n\r"$article['description']);
$article['description'] = str_replace('&lt;br /&gt;'"\n\r"$article['description']); 

And everything was fine. Thanks again for the great hack. :D

alexisbellido 08-02-2004 12:53 AM

Hi, I will give this hack a try in order to update my forum with the new entries in my blogs. I am not sure about the HTML support, most of my blog entries have links, will these still work?


All times are GMT. The time now is 04:37 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.01708 seconds
  • Memory Usage 1,763KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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