Page 1 of 31 123411 ... LastLast
Results 1 to 20 of 616

Thread: [Module] Customizable RSS feed module

  1. #1

    Default [Module] Customizable RSS feed module

    This is the generic RSS feed module for CMPS 2.0 and vBulletin 3.5.2 and is a significant update from the original version.


    What's New

    For starters there's now only one php file to deal with as all of the configuration parameters are now controlled by editing the module via CMPS. All of the existing control is still available as is the ability to use plain or fancy formatting - including modifying the output via css.


    Installation

    Installing the module is as simple as using the vBa CMPS -> Download/Upload Module dialog. This will create everything that's needed to get started including 2 templates; adv_portal_rss and adv_portal_rssbits, and the rss_cmps2.php module.

    Once the module has been uploaded use the vBa CMPS -> Edit Modules screen to customize the settings using the RSS Feed Options section. As a minimum it is necessary to specify the RSS Feed URL and the RSS Cache Directory. As noted in the help text the RSS Cache Directory must be world-writable (chmod 777) for things to work properly.

    To create additional RSS feeds simply copy the existing module, rename it to something relevant and fill in the information about that feed. All the RSS feed modules may use the same cache directory, though you may have multiple directories if desired.


    Getting fancy

    The adv_portal_rssbits template makes use of css to format the title, category and description. By default these classes don't exist so the text will be displayed using whatever the defaults are. Below are some sample css definitions that may be added to the Additional CSS Definitions (located in ACP -> Style Manager -> (style) Main CSS) for your style.

    Code:
    .rsstitle { font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; color: #003366; }
    .rsstitle a:link, .rsstitle a:visited, .rsstitle a:active { text-decoration: none; color: #003366; }
    .rsstitle a:hover { text-decoration: none; color: #3964A8; }
    .rssdesc {font: normal 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; }
    .rsscat {font: bold 8pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif; }

    Advanced Usage

    The Data qualification code may be used to filter out individual feed items if desired. Use the text box to enter the appropriate php code to evaluate the $rss_item data and return a 'true' or 'false' value according to whether the item should be displayed. To display all feed items leave this blank.

    The Data modification code may be used to manipulate the $rss_item data however desired. For example, since the publication date for the item isn't normally shown by the template this information could be added to the beginning of the description if a publication date is part of the available information by using the following.

    PHP Code:
    if ($rss_item['PUBDATE']) $rss_item['DESCRIPTION'] = vbdate($vbulletin->options['dateformat'], strtotime($rss_item['PUBDATE']), $vbulletin->options['yestoday']) . ' <span class="time">' vbdate($vbulletin->options['timeformat'], strtotime($rss_item['PUBDATE'])) . '</span><br />' $rss_item['DESCRIPTION']; 
    Likewise, if the descriptions are too long you might add code to trim the length and display a "... [more]" where the "[more]" has the link used in the title.

    Enjoy!


    Revisions

    1/4/2006
    1. Added support for having the feed area scrollable. This adds two new options to the module and also contains a revised adv_portal_rss template.

    If you don't require scrollable support there's no need to download this update.

    12/28/2005
    1. Fixed a bug when the closing </image> tag had other tags following it.

    To update replace the rss_cmps2.php file or uninstall and reinstall the module.

    12/23/2005
    1. Fixed a bug when using 'fancy' formatting and using the 'qualifier'.

    To update replace the rss_cmps2.php module and the adv_portal_rssbits template.

    12/20/2005
    1. Modified the template such that the css classes are only used when using 'fancy' formatting.
    2. Added an optional Icon ID that may be specified to prefix the title when using 'plain' formatting.



    PS - If you like this module and would like to make a donation you may do so via PayPal.
    Last edited by Tom M; 01-23-2006 at 08:54 PM. Reason: updated module
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  2. #2
    Join Date
    Nov 2005
    Posts
    20

    Default Re: [Module] Customizable RSS feed module

    Looks really exellent thankyou, i wondered, im using your original version (you know the trouble i had to get it working) but it is working and it's a great mod, i understand why i was so frustrated before, the reason being that the module only shows about 70% of the time, a refresh will on occasion show the mod and thus null my fears about it not working would this new version enable me to play with the cache settings to show the mod 100% of the time? thanx again for this it's wonderfull and sorry for my hot headedness

    -A

  3. #3

    Default Re: [Module] Customizable RSS feed module

    What I've found is that whether or not things display really depends on how reliable the site hosting the feed is. The code isn't real robust if it gets an error page instead of the rss data and thus it decides that there's nothing to show. When that happens to me I usually just go and look at the respective cache file to make sure what's in it before I go and delete it in order to force a reread of the feed and that usually clears it up. At least until the next time the feed has a hiccup.

    EDIT: I've uploaded and updated version that's much more robust as far as error conditions are concerned.
    Last edited by Tom M; 12-15-2005 at 05:18 PM.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  4. #4
    Join Date
    Nov 2005
    Posts
    20

    Default Re: [Module] Customizable RSS feed module

    Fatal error: file_put_contents cannot write in file. in /modules/rss_cmps2.php on line 121

    killed my entire front page...

    -A

  5. #5

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by alicat
    Fatal error: file_put_contents cannot write in file. in /modules/rss_cmps2.php on line 121

    killed my entire front page...

    -A
    That may be caused by 2 things.

    1. The directory you specified for the cache doesn't exist.
    2. You don't have the correct permissions on the directory you specified for your cache.

    The directory specified during the configuration process must already exist and it must be world-writable (chmod 777) for things to work.

    On a side note, it's always a good idea to set the permissions so that only admins can see the module when first getting things going. That way if there's a hiccup nobody else is aware of it
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  6. #6
    Join Date
    Nov 2005
    Posts
    20

    Default Re: [Module] Customizable RSS feed module

    i've deleted it...worried me for a minute as i have a busy site and this downtime is a pain, i' can see what it was trying to do, it did'nt overwrite when i imported and made an extra mod...anyways, i'll leave it...thaanx anyways, good for a fresh install maybe i should of done some small manual edits like you said
    Last edited by alicat; 12-15-2005 at 08:35 PM.

  7. #7

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by alicat
    i cannot remove it, work my module backup...**** how do i remove this module? both are inactive, somethings really gone here...its ****ed my site....
    Did you alredy correct the other problem? See my previous post.

  8. #8
    Join Date
    Nov 2005
    Posts
    20

    Default Re: [Module] Customizable RSS feed module

    Yes all correct, ive reverted back to the original which works fine, just need it to show 100% of the time tho it shows just about 50/50...

    -A

  9. #9

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by alicat
    Yes all correct, ive reverted back to the original which works fine, just need it to show 100% of the time tho it shows just about 50/50...

    -A
    As you might expect, it works fine for me. What's the url of the feed you are using?
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  10. #10
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    dang..i got a white index page with an error same as post 4.

    using feed http://www.gamespot.com/misc/rss/gam...dates_news.xml

    I will work on it more as I know it should work. I also have that "article bot" going and that seems to work
    Last edited by geoff; 12-18-2005 at 09:14 PM. Reason: added content

  11. #11

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by geoff
    dang..i got a white index page with an error

    using feed http://www.gamespot.com/misc/rss/gam...dates_news.xml
    What's the error?

    Make sure that you filled in the path to the cache directory and CHMOD it to 777.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  12. #12
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    my path for the cache is /forums/articlebot/cache/

    can i use this one? do i need the slash in the beginning? or end?
    i really would like this to do a shacknews report but their rss xml doesnt seem to do a thing

  13. #13

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by geoff
    my path for the cache is /forums/articlebot/cache/

    can i use this one? do i need the slash in the beginning? or end?
    i really would like this to do a shacknews report but their rss xml doesnt seem to do a thing
    You need to specify the absolute path to the directory w/o the trailing slash. I have the link you used running fine on my site so once you clear up the cache issue you should be good to go.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  14. #14
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    i really dont know what to do...when i set chmod to 777, my ftp proggy says it made it 777 but when i go back and check it says 755...grr. Im not sure what the error is now..

    just for clarification, absoulte path is http://www.site.com/forum.... ?

  15. #15

    Default Re: [Module] Customizable RSS feed module

    Quote Originally Posted by geoff
    i really dont know what to do...when i set chmod to 777, my ftp proggy says it made it 777 but when i go back and check it says 755...grr. Im not sure what the error is now..

    just for clarification, absoulte path is http://www.site.com/forum.... ?
    You host may not allow you to set world-writable folders so you may need to contact them.

    The path would be /home/yoursite/cache or whatever and not the url (http://www.yoursite.com/cache). It's a good idea to always place world-writable directories outside accessible space.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  16. #16
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    yep...it's my "WONDERFUL" host...they changed some policy that you cant have 777 the beginning of this month..a lot of folks arent to happy

  17. #17
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    ok...all good now..nothing that a good php script cant handle...still not happy with my host though...nice hack Tom!!

  18. #18

    Default Re: [Module] Customizable RSS feed module

    ok...all good now..nothing that a good php script cant handle...
    Glad you got it sorted out. I am curious how you fixed it though.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  19. #19
    Join Date
    Sep 2005
    Location
    Oklahoma
    Posts
    162

    Default Re: [Module] Customizable RSS feed module

    I added a php script forcing the folder to become 777. Plus, i found a vaild shacknews rss deally to dsiplay "geek" news..hehe.

    also, i forgot to add a "/" before my path of the cache folder

  20. #20

    Default Re: [Module] Customizable RSS feed module

    Ah, I thought you'd coded around it in the module somehow.

Page 1 of 31 123411 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Webcam Feed Module
    By SVTOA in forum Add-On Modules & Modifications
    Replies: 11
    Last Post: 06-11-2006, 02:14 PM
  2. vBa CMPS: Customizable RSS feed module
    By Tom M in forum Add-On Modules & Modifications
    Replies: 86
    Last Post: 05-30-2006, 01:31 AM
  3. RSS feed module for VBA 2 and VB3.5
    By rsailors in forum Modifications (version 3.x & 2.x)
    Replies: 6
    Last Post: 03-25-2006, 11:18 PM
  4. [REQ] RSS feed module
    By rgourley in forum Module & Modification Discussion & Requests
    Replies: 15
    Last Post: 10-22-2005, 12:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •