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)

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. ;)


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.01659 seconds
  • Memory Usage 1,737KB
  • 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_php_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