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)
-   -   NEW Modified RSS News Feed Hack (https://vborg.vbsupport.ru/showthread.php?t=63798)

P.Jackson 05-17-2004 07:09 PM

any ideas why the bots post as different users now since upgrade? was working ok before..

Slapyo 05-17-2004 11:33 PM

there were no changes in the code that has to do with making the post. all of that stayed the same, just quotes were changed and then it was recorded in the scheduled tasks log if you have it turned on. mine is still posting with the bot and nobody else and i use v1.25 off this upload.

P.Jackson 05-18-2004 03:53 PM

tried that and still messed up is posting from the user that views the thread yet its meant to post the news every hour only

peterjun 05-19-2004 01:28 AM

Can anyone help me trouble shoot this error message? I've installed per directons and when i run rss.php manually, I get this:

Warning: main(class.RSS.php): failed to open stream: No such file or directory in /home/peterjun/public_html/includes/RSS/rss_update.php on line 28

Fatal error: main(): Failed opening required 'class.RSS.php' (include_path='') in /home/peterjun/public_html/includes/RSS/rss_update.php on line 28

Interestingly, I also don't have the configuration panel (admincp -> hacks -> rss news feed) in my admincp and had to manually point my webpage to that php file. Thanks for any help!

Slapyo 05-19-2004 02:57 AM

did you make the file edits? there are 2 files that you have to edit. read the instructions.txt and you will see the files you need to edit and what changes need to be made.

P.Jackson 05-19-2004 03:54 PM

fixed my prob slapya i hope :D

Slapyo 05-19-2004 09:13 PM

everything running like it should now?

peterjun 05-20-2004 02:36 AM

Thanks Slapyo. I solved the problem with the admincp by editing the file.. I edited the other files, but still get the same error message.

Warning: main(class.RSS.php): failed to open stream: No such file or directory in /home/peterjun/public_html/includes/RSS/rss_update.php on line 28

Fatal error: main(): Failed opening required 'class.RSS.php' (include_path='') in /home/peterjun/public_html/includes/RSS/rss_update.php on line 28

I'll delve more, but was wondering if you knew any quick solutions.

Erwin 05-20-2004 12:25 PM

Good job. :) I'm running this as a cron job on my server - I just removed the log cron action function from the rss.php file. It works well. Thanks!

proxyMX 05-20-2004 02:19 PM

Quote:

Originally Posted by mirdin
You'll have to ask your host to upgrade to a more recent version of PHP.

Or if you follow the link to the php function I posted before, it shows this code:

PHP Code:

// For users prior to PHP 4.3.0 you may do this:
function unhtmlentities($string
{
   
$trans_tbl get_html_translation_table(HTML_ENTITIES);
   
$trans_tbl array_flip($trans_tbl);
   return 
strtr($string$trans_tbl);
}

$c unhtmlentities($a);

echo 
$c// I'll "walk" the <b>dog</b> now

?> 

If upgrading PHP is not possible for you then you could try to replace the html_entity_decode function using this example.


By the way, has anyone managed to fix the double post issues? I have these issues with both yahoo and bbc feeds.

Sorry, call me stupid, but how do you actually get an RSS feed?

Slapyo 05-20-2004 07:39 PM

my initial post for this hack has a list of some common RSS feeds, it is at the very bottom of the post just above the attachments.

Erwin 05-21-2004 11:57 AM

Is there any way to avoid the bot posting the same headlines again and again?

Slapyo 05-21-2004 02:07 PM

is there a pubDate field in the feed you are pulling?

Intex 05-22-2004 09:20 AM

Slapyo - very nice hack. I've installed it and it works fine.

The only problem I can see is when the RSS feeds are pulled in, e.g. from The Register, the oldest posts are appearing that the top. I guess you can't do anything about that and it's down to the people that create the XML?

/me clicks install.

Slapyo 05-24-2004 06:30 AM

ya, its some weird thing with how the RSS script processes the feed. i've noticed that as well.

Milez 05-26-2004 11:53 AM

I would give blood for an rss feed that had more than a simple 1 line description with a link. I want to keep users on my forum. I would gladly pay for this service.

Slapyo 05-26-2004 06:59 PM

<a href="http://www.syndic8.com" target="_blank">http://www.syndic8.com</a>

might find something there.

maestrosdelweb 05-27-2004 02:47 AM

Hi. The w3c accepted ATOM feed format as the standard (blooger is also promoting them).

Any chance of an ATOM version of this script for the future?

Slapyo 05-27-2004 06:39 AM

as of right now i don't plan on doing any more to the script till i finish up school. have a few weeks left till i graduate then i will have some time. but there were a couple things i was thinking about adding in. one was adding in the ability to use RDF feeds, so this would go along with that, i could make an option for what kind of feed it is. will keep this in mind.

maestrosdelweb 05-27-2004 07:04 AM

Great. I'll check the code to see if I can help. Best regards and good luck with school.

Intex 06-02-2004 11:21 AM

I've had this running for a couple of weeks now and everything works well. I think it could be further improved by:
  • Stripping the HTML tags off some the thread titles before posting. This doesn't particularly look very good. Maybe there's a hack that will parse HTML on thread names?
  • The RSS feeds are simply pulled from the respective website. However, every newsfeed will have the latest information at the top of the XML, which is normal bahaviour. However in a forum environment, this is undesirable because the top most item gets posted into the forum first and later threads get posted above as they're newer. The script would need to revserve this to get the desired effect, i.e. newest threads at the top of the forum.
  • Having an option to not count posts from the bot that's being used to post. Maybe there's a hack for this too?

Slapyo 06-02-2004 02:47 PM

in rss_update.php:

FIND:
PHP Code:

$rss_title html_entity_decode($rss_titleENT_NOQUOTES);
$rss_description html_entity_decode($rss_descriptionENT_NOQUOTES); 

ADD, ABOVE:
PHP Code:

$rss_title strip_tags($rss_title);
$rss_description strip_tags($rss_description); 

that should fix HTML tags showing up in both the title and in the descritpion. i know about the way the feed is pulled, parsed, and posted. i will have to look into a work around so that it gets posted the right way and parses the RSS from the bottom up.

the function used to insert posts was one that vB already had built it. this uses the exact same function that vB does to insert posts. that also includes upping he post count and stuff like that. removing the post count would take some time. a quick fix for that is to make that forum not have post counts increase. but then any normal user that replies to a post won't get a post.

Intex 06-02-2004 02:58 PM

Slapyo - thx for the info. I'll make adjustments to the code to get rid of the HTML stuff. I've already disabled posts for the forum where RSS feeds are put in.

Good job - thx :).

The Realist 06-02-2004 08:05 PM

Installed and working 100%.

Nice hack.

The Realist 06-02-2004 08:52 PM

Can someone or even the developer of this hack take a look at my request here:

https://vborg.vbsupport.ru/showthread.php?t=65767

It will come in handy for anyone using this hack.

Slapyo 06-03-2004 03:05 AM

i just replied to your post.

The Realist 06-03-2004 08:29 AM

Thanks Slapyo but Im no coder. Any available for this?

Slapyo 06-03-2004 01:19 PM

once i graduate in a couple weeks (june 13) i will have some time to be able to look into this further.

Intex 06-03-2004 01:20 PM

Slapyo - good luck with everything. Any help in the future will be appreciated.

clangrounds.com 06-03-2004 07:35 PM

I had to delete the remains of a past failed RSS install, but it worked like a charm after that! I've been creating different users/characters to report on the different news sections, and it's kind of funny since my members think they're real people posting all those threads. ;)

Slapyo 06-03-2004 08:46 PM

lol cool.

Intex 06-04-2004 10:16 AM

After a bit of searching, I've found a basic way to exclude selected forums from the new posts listing.


Search.php find:

PHP Code:

WHERE forumid IN(" . implode(', ', $forumids) . "


Replace with:

PHP Code:

WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x

X above should be replaced with the forum you want to exclude. If you want to exclude more than one forum, then simply separate each forum with a comma.

However, this would mean that your members who do want to see new posts regarding these RSS forums, won't see them. A solution to this would be to create a separate search.php file. Just copy the existing search.php and rename it to something like search-rss.php.

You can then add another link to your NAVBar or whereever you like to call this particularly search script and show new posts, i.e.



I know this isn't an ideal solution, but it's a solution nonetheless. As already discussed, it would be better to have it prompt you if you want to include RSS feeds. Then again, for users that don't and never do, this would be undesirable as well :).

I've just changed my NAVBar menu so that 'New Posts' was renamed 'Posts' and this has a drop-down menu, which allows me to select 'New Posts (No RSS)', 'New Posts (with RSS)' , 'Mark Posts Read' etc.

Hope you find this useful until another solution is developed. Maybe it will also help Slapyo on the query side anyway.

The Realist 06-04-2004 10:24 AM

I'll stick mine all in a drop down menu, makes life a lot easier. For the time being I have excluded all RRS posts from the new posts search.

Laters

PAINTBALLM 06-06-2004 05:52 PM

before i install this. one question.

Can I make a category on my forums JUST for news feeds, and have it post a new thread for every new topic? (for people to discuss and such).

Let me know

Intex 06-06-2004 06:00 PM

Not sure what you mean by category. If you mean post into a particular forum or sub-forum, then yes - this is exactly what the hack does. It will pull feeds from other websites and it will create a new thread for every headline.

For example, I have a forum called RSS Feeds which has many sub-forums. I've created numerous bots that retrieve content from other websites and it automatically posts threads into each of these sub-forums.


Quote:

Originally Posted by PAINTBALLM
before i install this. one question.

Can I make a category on my forums JUST for news feeds, and have it post a new thread for every new topic? (for people to discuss and such).

Let me know


PAINTBALLM 06-06-2004 06:43 PM

Thats what I mean, sorry. Nice... Installing now ;)

PAINTBALLM 06-06-2004 07:22 PM

wjen I run rss.php I get

Parse error: parse error in /www.pbmessage.com/forums/includes/functions_newpost.php on line 1188

Fatal error: Call to undefined function: build_new_post() in /www.pbmessage.com/forums/includes/RSS/rss_update.php on line 103

The Realist 06-06-2004 08:27 PM

Recheck your edits of the files again, you have done something wrong.

rsuplido 06-07-2004 07:41 PM

Cool Hack! Here'a a suggestion though. Can it be done so that clicking on a thread will redirect to a page split into two frames horizontally? the main news is at the top, the thread discussion is at the bottom. Possible?

Deimos 06-09-2004 12:32 PM

Hmm i've got a problem here :(
After it's all installed, no errors show up, but when I goto Enable the mod, every user (Including me) who accesses the forums shows logged in AS the news bot? And the forum listing doesn't show up AT ALL
If I disable the mod, it returns to normal................!?


All times are GMT. The time now is 10:53 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.01867 seconds
  • Memory Usage 1,829KB
  • 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
  • (5)bbcode_php_printable
  • (2)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