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)

yellow281 02-02-2005 05:42 PM

"It all depends on the feeds. The point of the RSS feeds is usually to draw someone to the site where the news is posted, not to provide content to other sites for free. Some RSS Feeds are very thorough, but for the most part they are simply the headline, and a short blurb and a link to the article. If you are continually getting broken feeds, or partial posts then it is a bad news feed, and that is another issue, and it can be fixed by getting a different/better RSS feed"

The post shows ONLY a title in the title bar and no URL, description or any kind of post at all. I have gone through everypage on this hack and others have had the same issues but no one seems to have provided a definitive answer. I have tried with known feeds that work and the same problem for everyone of them. Title in the title bar, but no post at all.

It has to be something with the way this is set up. Can someone explain exactly where articlebot_post is supposed to be uploaded to, what type of file its supposed to be and exactly what the full contents of the file should look like. I am pretty certain this is where the error lies and a bunch of us just arent as smart and as intuitive as you coders :) Pretty please!

Thanks

pieman666 02-03-2005 09:09 AM

Could you check the feeds with a 'normal' rss reader, and see what you should be getting in your forums. If it is different then it could be a problem with the forum code, if not then it's the feeds limitation.

yellow281 02-03-2005 11:05 AM

Checked the feeds multiple times, its about 12 different feeds from reliable sources and they read fine in other readers. I have also tried feeds that people here have said are working for them. Its an issue with the configuration somewhere. If anyone has any idea or managed to fix this, I would be eternally grateful.

Literally, I think if someone that has this working could display the contents of their articlebot_post template (page) and tell me exactly where it needs to be uploaded and in what file format then this could cure the problem. Im certain its something to do with that.

Thanks

Kate

No Harmony 02-03-2005 06:57 PM

Quote:

Originally Posted by Beermonster
... I had it working fine but since I've upgraded to 3.0.6 and reinstalled it all I get is
Error: There is no file located at http://www.wired.com/news/feeds/rss2/0,2610,31,00.xml
when trying to add article

I get the same error on my vB 3.0.6, for any feed I am trying to add

interfx 02-04-2005 10:00 PM

Does this work with 3.0.6? Before I start installing, wanted to know...

Thanks

yoyoyoyo 02-04-2005 10:59 PM

Quote:

Originally Posted by yellow281
Literally, I think if someone that has this working could display the contents of their articlebot_post template (page) and tell me exactly where it needs to be uploaded and in what file format then this could cure the problem. Im certain its something to do with that.

Thanks

Kate

The templates are all in the directions. They are templates, not pages, so they are not uploaded- they are added via the Admin control panel: Styles & Templates -> Style Manager -> Add New Template ->

Quote:

Originally Posted by interfx
Does this work with 3.0.6? Before I start installing, wanted to know...

Thanks

yep!

No Harmony 02-05-2005 02:53 AM

If this works with 3.0.6, then what could be the cause of the problem with feeds?

mskgr 02-06-2005 07:08 PM

Quote:

Originally Posted by mrslugger
I've tried to get this to work, but if I try to add a feed it says "No file located at... whatever the url is"

Am I doing something wrong. I've put the url in exactly as it says and everything.

As I have the same problem on my vB3 Installation, I tried to find out the cause of those symptomps. The error your are reffering to is the :

Quote:

Error:&nbsp; There is no file located at <i>$rss_path</i>
Which is on line 735, of articlebot_admin.php

The error is displayed when the following is true - if (!$rss = @file_get_contents($rss_path)) - Unfortunately, according to php.net, filget_get_contents requires allow_url_fopen on php.ini script of your server to be turned ON. As this is a potential security risk, I really don't want to enable the wrapper for external files, so I didn't mess with my php.ini script. In addition, magpie doesn't need fopen for getting RSS's contents.

So, I went to line 735 and commented out that check...

Problem solved, script works fine...

MikaK 02-06-2005 08:05 PM

I have this hack installed on a 3.0.3 board and keep getting a cron daemon message like this:

From: "Cron Daemon" <>
To:
Subject: Cron <xxx@server> /usr/bin/curl http://soundchilds.net/loud_lounge/a...articlebot.php >/dev/null
Date: Sun, 06 Feb 2005 13:35:06 -0800

% Total % Received % Xferd Average Speed Time
Curr.
Dload Upload Total Current Left
Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:06
--:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:06
--:--:-- 0

Any idea what might cause it and how it could be corrected?
###EDIT###
It looks like the script delivers all properly despite the report. So... If this can not be corrected easily, how could I turn the cron report off?
#########

Thanks for any ideas!
-Mika

Ninth Dimension 02-08-2005 06:44 PM

Hi, I'm using this hack on my latest site, and I think it's fantastic.. I do have a question however, if you don't mind:

I notice that you've a 'Regex Search & Replace' built in, and thisis fantastic as I was hoping to be able to use it to replace new-lineswith spaces.

The two feeds I'm currently using(http://rss.news.yahoo.com/rss/oddlyenough andhttp://rss.news.yahoo.com/rss/science) are putting a lot of newlinesinto the descriptions, and I want to remove them.. now I assume thatthe 'Regex Search & Replace' can do this... but I don't know whatcode to use.

Thank you :D

yellow281 02-08-2005 08:36 PM

Mine is now working thanks to the kind guys who helped me, particularly Poolking - you guys rocked. Thanks again :)

interfx 02-08-2005 08:37 PM

Is there a way to take the RSS feed you get from Yahoo.com, and insert the words "read more" before the link to the entire story?

Seems simple, but would help my site look more professional...

Thanks in advance -
INterFX

Ninth Dimension 02-08-2005 08:40 PM

Quote:

Originally Posted by interfx
Is there a way to take the RSS feed you getfromYahoo.com, and insert the words "read more" before the link totheentire story?

Seems simple, but would help my site look more professional...

Thanks in advance -
INterFX

This is easy, just edit the articlebot_post template.. here, use mine
PHP Code:

$article[description]

[
b][url="$article[link]"]Read More...[/url][/b]
[
size=1](External link older links might not be active)[/size


Couch 02-23-2005 01:50 PM

I can probably work this out through trial and error, but as I am no php expert I was wondering if someone can help me.

The rss feed I am getting is only updated once a day as it is a TV guide for the day. However it has several <title> tags around each program.

I am presuming that I can comment out part of the code in articlebot.php so that the file is not trimmed down. I want the whole rss file displayed as one post, with the first <title> used as the title of the thread.

Thanks if you can help :)

Hubsi 02-24-2005 01:58 PM

at first, sorry for my bad english

now my reason for this post

i try to use a rss structure like this: http://www.kino-zeit.de/rss.php
there are fields of <content:encoded> with more informations and pictures as html code

in this thread are few posts about this theme, but no answers
there its named rss2

at last, is there a way to realize my problem?

THX Hubsi :)

Turboface 02-25-2005 02:16 AM

It seems like I have everything all set up here. I haven't set up a cron job yet for the articlebot.php file. I just decided to run it manually to see if it worked and it didn't. I got the following error:

Code:

Warning: chdir(): No such file or directory (errno 2) in /usr/home/turbo1/html/www.entertainmentedition.com/forums/articlebot/articlebot.php on line 42

Warning: main(./global.php): failed to open stream: No such file or directory in /usr/home/turbo1/html/www.entertainmentedition.com/forums/articlebot/articlebot.php on line 43

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /usr/home/turbo1/html/www.entertainmentedition.com/forums/articlebot/articlebot.php on line 43

Any ideas?

tanyeri24 02-25-2005 03:30 AM

Quote:

Originally Posted by Velocd
www.animesystem.com/forums/

Bots include:
Kanno, Aspen, Zen, Crowbar

Currently my bots are dominating the forum and will soon have a higher postcount then some of the regulars. Har har. :ermm:

where exactly are the bots on your forums? after 10 minutes searching İ gave up

tanyeri24 02-25-2005 05:38 PM

no demo available?

School-Help 02-25-2005 06:53 PM

Someone please help! I get a blank news post with only the title when my bot posts. It is not the feed because i am using bbc and yahoo feeds. Someone help!

memobug 02-25-2005 08:04 PM

Quote:

Originally Posted by tanyeri24
no demo available?

How would you demo this?

Here is a forum full of short posts made by the robot, if that is meaningful to you. The feed was translated by a native Czech, so the English itself may be a little odd.

http://forum.bonsaitalk.com/forumdisplay.php?f=80

Regards,

Matt

memobug 02-25-2005 08:07 PM

Quote:

Originally Posted by School-Help
Someone please help! I get a blank news post with only the title when my bot posts. It is not the feed because i am using bbc and yahoo feeds. Someone help!

I documented a cpanel cron setup and a working feed back on this page:
https://vborg.vbsupport.ru/showpost....&postcount=441

I'd suggest that if you are having problems, you get it working with that feed and those particulars defined in that post. If it's not working then describe the problem. It is really too much to try to address every possible variable at once.

Regards,

Matt

tanyeri24 02-26-2005 12:51 AM

memobug that was what ı'm searching. thx for usefull link.

huss 02-28-2005 05:22 PM

Quote:

Originally Posted by tanyeri24
memobug that was what ı'm searching. thx for usefull link.

This is just a great hack. One of the most useful ever, that will really build traffic and loyalty. Thanks.

Turboface 03-01-2005 08:08 PM

As you can see here - http://www.entertainmentedition.com/...splay.php?f=71 - the posts have a title, but no message.

Any ideas on what might be the problem here?

:surprised:

iamboard 03-02-2005 05:38 PM

I would like to post news headlines on a particular subject. I'd like to supply the key words (only once) and have the news headlines for those stories automatically appear on my site along with a link to those articles. I would like those headline with links to those stories to appear automatically without my intervention. Will your .... allow me to do that and how would I do it?

School-Help 03-04-2005 06:52 PM

Quote:

Originally Posted by Turboface
As you can see here - http://www.entertainmentedition.com/...splay.php?f=71 - the posts have a title, but no message.

Any ideas on what might be the problem here?

:surprised:

I have the same problem a reply which i have tried countless of times? Any support?

havefun 03-13-2005 09:08 PM

thank u for your hack :)

toolblast 03-14-2005 06:17 PM

Maybe you've meantioned about it before,

I have an rss feed from a site called lockergnome.

EXAMPLE: http://feeds.lockergnome.com/rss/web.xml

Problem is, they take all their forum posts and put them into the RSS feed.

That is ok, but then the ArticleBot starts from the BOTTOM and works its way to the TOP. Meaning that the posts will be out of order.

The articlebot posts the LAST message in the forum, and then gets to the first later on... so some people on my forum are sitting there reading this post that doesnt make sense cause it isnt the starting thread...



HOW CAN I MAKE IT SO IT READS THE FIRST POST IN THE RSS, THEN WORKS ITS WAY DOWN INSTEAD OF UP?


Thanks in advance! Great hack!

havefun 03-15-2005 11:41 AM

some members where bored to see the RSS-posts (threads)
after using "new posts". if you don't like see that posts there
follow the steps below...

so i modified the links in "navbar"

important:
65 & 66 are my forum ids where the rss-feeds are postet.
so you have to change them (it).

find 3 times:
PHP Code:

search.php?$session[sessionurl]do=getnew 

and change it to:
PHP Code:

search.php?$session[sessionurl]do=getnew&exclude=65,66 

if you have only one forum for RSS than it has to be like this:
PHP Code:

search.php?$session[sessionurl]do=getnew&exclude=65 

and if you have more forums:
PHP Code:

search.php?$session[sessionurl]do=getnew&exclude=65,66,67,68 

_______
demo for 3.0.7:
http://www.acnw.de/board/forumdisplay.php?f=65

jbear6 03-19-2005 01:31 AM

Great hack Velocd,
Thanks! you're work is very much appreciated :cool:

Thanks to memobug also :cool:

Regards,
Jbear6

DeadGaze 03-20-2005 12:19 AM

hmm try to install but i get thiss error on my site
anyone knows what it is and get it to work
PHP Code:

Fatal errorCall to undefined function: array_change_key_case() in rss_parse.inc on line 203 


Benj 04-04-2005 02:53 PM

this is prob a really stupid question but you cant do this hack with out setting up the cron job can you ??? bastard host (globat.com beware) dont support them for security reasons :disappointed:

venomx 04-04-2005 07:16 PM

You can always set up a VBcron...

School-Help 04-10-2005 01:03 PM

Still get blank threads posted by my BOT. Is no one ever going to help me.

xtreme-mobile 04-10-2005 01:23 PM

ive just installed this hack but my bot is not posting

am i doing something wrong?

ive gone into the set up bit and ive linked to all the code stuff for the feed but he dont post anything lol

any ideas?

JsnakeJ 04-10-2005 01:30 PM

Thanks. This hack is great.

JsnakeJ 04-10-2005 01:40 PM

You have to wait till the site updates.

sub_ubi 04-10-2005 04:31 PM

Great hack but a quick question:

Would it be possible to replace HTML with BB code using regex?

My favorite RSS uses a ton of HTML. I figure I can comment out or remove this line in articlebot.php:

Code:

$article['description'] = strip_tags(html_entity_decode($article['description']));
But how can I turn the HTML into BBcode with regex?

TTG 04-11-2005 02:34 AM

Quote:

Originally Posted by benj
this is prob a really stupid question but you cant do this hack with out setting up the cron job can you ??? bastard host (globat.com beware) dont support them for security reasons :disappointed:

"The other methods are placing an include_once in your index.php file, or in your phpinclude_end template. In the former case an extra query will be called everytime your index.php is accessed, while in the latter an extra query is called on every page." ..

It's listed in the hack instructions.

TTG 04-11-2005 02:37 AM

Quote:

Originally Posted by School-Help
Still get blank threads posted by my BOT. Is no one ever going to help me.


Did you create the new template .. ?


All times are GMT. The time now is 06:31 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.02181 seconds
  • Memory Usage 1,855KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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