vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Integration with vBulletin - RSS Post feed (no mods, no plugins) (https://vborg.vbsupport.ru/showthread.php?t=221608)

R*NightOwl 08-23-2009 10:00 PM

RSS Post feed (no mods, no plugins)
 
1 Attachment(s)
This is a php script which outputs posts made in the forum in RSS format,
this is not an addition to the existing RSS system but rather an independent PHP file which generates "mock" RSS information.

Format of output is this:
Code:

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
                <item>
                        <title>Title of the forum topic</title>
                        <postTitle>Title of my post</postTitle>
                        <link>http://127.0.0.1/vb/showpost.php?p=4</link>
                        <pubDate>Sat, 22 Aug 2009 21:42:48 CDT</pubDate>
                        <description>this is the post content</description>
                        <thread>http://127.0.0.1/vb/showthread.php?t=1&goto=newpost</thread>
                        <dc:creator>s0beit</dc:creator>
                        <guid isPermaLink="true">http://127.0.0.1/vb/showthread.php?t=1</guid>
                </item>
        </channel>
</rss>

Each post is exported, including new topics if you configure your URL to do such.

Options:
  • nohtml - strip html from RSS fields
  • include - specify which forums to include in the feed (separated by commas)
  • exclude - specify which forums to exclude in the feed (separated by commas)
  • bbcode - strip bbcode from RSS fields
  • newline - strip newline from RSS fields
  • showthread - show new thread posts in the feed

Here is an example URL:
Code:

http://localhost/vb/external_post.php?bbcode=1&nohtml=1&newline=1&exclude=1,3
From an RSS-feed reading TCL script for eggdrop, which is what it was originally designed for:
Quote:

(20:54:18) (&TGSBot) [NEW POST] URL OMITTED
(20:54:18) (&TGSBot) ibtrippin226: pretty sweet? you fkn nerdgasmed over it on irc probably would be a good idea
(21:01:17) (&TGSBot) [NEW POST] URL OMITTED
(21:01:18) (&TGSBot) Konota: -Points to signature-
(21:02:18) (&TGSBot) [NEW POST] URL OMITTED
(21:02:19) (&TGSBot) b0mbowns: Chocolate Rain by Tay ZondayListen to the diarrhea version did I spell diarrhea correctly? That is a pretty hard word to memorize.
I must state one last time that this is "mock" RSS, i do not have an XML class or RSS class to design the output, i simply echo information, if this is a problem to you then you can fix it yourself.

This is also my first "mod", be nice.

Zate 08-24-2009 03:20 PM

why this and not using external.php ?

Uberguilds 03-01-2011 08:09 AM

I would imagine so that you could set RSS feeds to specific forums or users instead of just one global.

R*NightOwl 03-01-2011 08:17 AM

Quote:

Originally Posted by Uberguilds (Post 2168158)
I would imagine so that you could set RSS feeds to specific forums or users instead of just one global.

I mostly used this to feed data to my eggdrop, external.php wasn't detailed enough and i didn't think it warranted modifying it to meet my ends. This works perfectly well.


All times are GMT. The time now is 04:57 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.01019 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete