ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Is it possible to set up a rss feed for member only content?

April 14, 2011 7:28pm

Subscribe [3]
  • #1 / Apr 14, 2011 7:28pm

    JulesWebb

    271 posts

    Is it possible to set up a rss feed for member only content?

    Not sure if EE is the right place to ask this question, but I’m hoping you’ll have the answer for me—if not maybe you could give me a direction to head in :cheese:

  • #2 / Apr 15, 2011 2:01am

    Cheif

    626 posts

    Have you tried placing an IF/IFELSE comment around the feed content to test if_logged_in ?

  • #3 / Apr 15, 2011 3:03am

    Dave @ Exp:resso

    465 posts

    Yep either what Chief said or you can protect the entire template with the template access prefs, so only certain member groups can view. Note that template type needs to be set to ‘RSS page’

  • #4 / Apr 15, 2011 4:36am

    JulesWebb

    271 posts

    Thank you both for your responses.

    I have not actually tried anything yet, because I wasn’t sure if it was possible.  I don’t understand how the feed gets through if articles can’t be viewed unless the user is logged in.  When a person subscribes do they fill out a un and pw when they first set up the feed?  I subscribe to a lot of rss feeds, but none of them are members only content.

    I appreciate the education!
    cheers
    jules

  • #5 / Apr 15, 2011 12:04pm

    Sue Crocker

    26054 posts

    Hi, Jules. First question - what are you using to read your feeds?

  • #6 / Apr 15, 2011 5:50pm

    JulesWebb

    271 posts

    Hi, Jules. First question - what are you using to read your feeds?

    Me personally?  I bring in my feeds with my yahoo home page.

    I know you didn’t ask for it, but in case it’s relevant below is my rss feed code.  I know if I included status=“public|members only|open” that the titles for the members only content would show up, but then if they clicked on the link they would end up with a 401 page.  This is not a desirable result. If this were a business I guess that would be a great marketing opportunity, but this is a religious site and they don’t want non-site members seeing links to member only content.  It would be nice for members to have a rss feed that showed content available to them, but I don’t see how this could be done. Which is why I posed the question. I thought with all the experience out there on the EE forum I could find out for sure what is and isn’t possible.

    Thank you soooo much!
    Jules

    {preload_replace:master_channel_name="news"}
    {exp:rss:feed channel="{master_channel_name}" status="public" debug="yes"}
    
    <?xml version="1.0" encoding="{encoding}"?>
    <rss version="2.0"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:atom="http://www.w3.org/2005/Atom"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
        <channel>
        
        <title>{site_name}</title>
        <link>{site_url}{channel_url}</link>
        <description>{channel_description}</description>
        <dc:language>{channel_language}</dc:language>
        <dc:creator>{email}</dc:creator>
        <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
        <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        <admin:generatorAgent rdf:resource="http://expressionengine.com/" >
        <atom:link href="{site_url}site/rss" rel="self" type="application/rss+xml" >
        
    {exp:channel:entries channel="{master_channel_name}" limit="10" dynamic_start="on" disable="member_data|pagination"}
        <item>
          <title>{title}</title>
          <link>{title_permalink='site/index'}</link>
          <guid>{title_permalink='site/index'}#When:{gmt_entry_date format="%H:%i:%sZ"}</guid>
          <description>{excerpt}</description>
          <dc:subject>{categories backspace="1"}{category_name}, {/categories}</dc:subject>
          <dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
        </item>
    {/exp:channel:entries}
        
        </channel>
    </rss>
    
    {/exp:rss:feed}
  • #7 / Apr 19, 2011 5:42pm

    Sue Crocker

    26054 posts

    Hi, WebbDiva - the answer is ... sorta.

    I took one of my eehowto RSS feeds and set it to Enable HTTP Authentication?

    And then I had to login twice, but it worked in Safari. Greg tested it in Firefox.. Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases