EllisLab text mark
Advanced Search
     
RSS Showing Updated Posts
Posted: 18 December 2009 05:02 PM   [ Ignore ]
Joined: 2008-06-29
175 posts

I have used the searched function and deleted the code which comes after the <Guid>. But it still sends email and RSS updates everytime I make a change in my old post and update it.

I use google reader
My normal RSS page & mozilla RSS do not do this.

Help me pls

{assign_variable:master_weblog_name="misc_article| nut_article|train_article"}
{exp
:rss:feed weblog="{master_weblog_name}"}

<?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:content="http://purl.org/rss/1.0/modules/content/">

    <
channel>
    
    <
title>Exercise Biology</title>
    <
link>{weblog_url}</link>
    <
description>{weblog_description}</description>
    <
dc:language>{weblog_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/" />
    
{exp:weblog:entries limit="8" rdf="off" dynamic_start="on" disable="member_data|trackbacks"}
    
<item>
      <
title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
      <
link>{title_permalink=site/articles}</link>
     <
guid>{title_permalink=site/articles}</guid>
  <
description><![CDATA[{summary}]]></description
      <
dc:subject>{exp:xml_encode}{categories backspace="1"}{category_name}{/categories}{/exp:xml_encode}</dc:subject>
     <
dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    </
item>
{/exp:weblog:entries}
    
    
</channel>
</
rss>

{/exp:rss:feed} 

[Mod Edit: Moved to the How to forum]

 Signature 

Exercise Biology - The Science of Exercise, Fitness & Nutrition

 
Posted: 18 December 2009 05:09 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-04-29
26055 posts

It’s Google reader that’s doing this. Not much more you can do other than to ignore it.

 
Posted: 18 December 2009 09:17 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2008-06-29
175 posts

It’s no the google reader. Everytime I get an email when I make an update.

 Signature 

Exercise Biology - The Science of Exercise, Fitness & Nutrition

 
Posted: 18 December 2009 10:12 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2008-06-14
1448 posts

What is the contents of an example email? What is the from address?

Can you paste an example?

 Signature 

Piccirilli Dorsey
http://picdorsey.com

 
Posted: 19 December 2009 03:18 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2008-06-29
175 posts

This an example of an email I got today. I updated some of the posts just to ehceck:


Exercise Biology - The Science of Exercise & Nutrition‏
From:    noreply+feedproxy@google.com on behalf of Exercise Biology (.(JavaScript must be enabled to view this email address))
 
Sent:    19 December 2009 17:15PM
Exercise Biology - The Science of Exercise & Nutrition
 

  * Creatine Increases Dihydrotestosterone (DHT): Is Creatine Bad For Your Health?
  * Can Exercise or Diet Prevent Abdominal Visceral Fat Gain?
  * Healthy & Quick Breakfast Recipes
  * How to Hit Your Biceps Long Head & Short Head Muscle?
  * The Best Ab Exercise for Lower and Upper Abs
  * How To Make Your Back Exercises More Effective?
  * Strength Progression: The Key to Muscle Growth
  * Nutritional Tips for Vegetarian Lifters

Creatine Increases Dihydrotestosterone (DHT): Is Creatine Bad For Your Health?

 Signature 

Exercise Biology - The Science of Exercise, Fitness & Nutrition

 
Posted: 19 December 2009 05:18 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi anoopbal,

That email is from Google. I’m afraid that we can’t help with setting up Google Feed Reader to only email you on new posts. What I can do is to move this thread into the How To forum for you if you would like to get some community input on this?

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 19 December 2009 06:07 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2006-10-22
1643 posts

You could try to take the seconds out of the template.
Unless you explicitly specify them in the date field when posting an entry, they will vary after every update of an entry.

I don’t know based on what Google determines a post has changed, so there’s no guarantee, but maybe worth a try.

 Signature 

utilitEEs - Addons for EE

 
Posted: 20 December 2009 05:15 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi anoopbal,

I’m going to move this thread into the How To forum so that you can get community input into this specific issue with Google Reader.

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 21 December 2009 05:08 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Avatar
Joined: 2008-10-28
77 posts

I would not blame Google Reader. GR is reading your feed, not making things up. It knows when your posts are updating…because your FEED is telling it, which is generated by EE.

I would check what your feed is really outputting on update. You need to look at the actual XML not just the view of the feed in a reader and compare what is output for a post after editing it (but not updating the entry date).

I was having this problem as well and created a test rss feed…I will report back when I figure this out.

 Signature 

@mahalie
EE: http://mithun.com
Blog: http://23rdworld.com

 
Posted: 21 December 2009 05:41 PM   [ Ignore ]   [ # 9 ]   [ Rating: 0 ]
Avatar
Joined: 2008-10-28
77 posts

Here is the code I used in a test RSS feed to compare the behavior of various date options:

<item>
     <
guid>{title_permalink="knowledge/article"}#When:{gmt_entry_date format="%H:%i:%s"}</guid>
      
<description><![CDATA[<ul>
      <
li>gmt_entry_date{gmt_entry_date format="%Y-%m-%d %H:%i:%s"}</li>
      <
li>entry_date{entry_date format="%Y-%m-%d %H:%i:%s"}</li>
      <
li>gmt_edit_date{gmt_edit_date format="%Y-%m-%d %H:%i:%s"}</li>
      <
li>edit_date{edit_date format="%Y-%m-%d %H:%i:%s"}</li>
      </
ul>]]></description>
      <
dc:date>{gmt_entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
      <
dc:date2>{entry_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date2>
</
item

Comparing the feed before and after an update of a post (without changing the entry date) it’s clear that dates are changing each time for the entry date…

<!-- RESULT 1 -->
    <
item>
      <
guid>http://mithun.com/knowledge/article/design_optimization_of_a_lab_production_environment/#When:15:30:55</guid>
      
<description><![CDATA[<ul>
      <
li>gmt_entry_date2009-12-21 15:30:55</li>
      <
li>entry_date:     2009-12-21 08:30:55</li>
      <
li>gmt_edit_date:  2009-12-21 20:18:56</li>
      <
li>edit_date:      2009-12-21 13:18:56</li>
      </
ul>]]></description>
      <
dc:date>2009-12-21T15:30:55+00:00</dc:date>
      <
dc:date2>2009-12-21T08:30:55+00:00</dc:date2>
    </
item>
<!-- 
RESULT 2after updating entry but NOT changing Entry Date -->
    <
item>
      <
guid>http://mithun.com/knowledge/article/design_optimization_of_a_lab_production_environment/#When:15:30:37</guid>
      
<description><![CDATA[<ul>
      <
li>gmt_entry_date2009-12-21 15:30:37</li>
      <
li>entry_date:     2009-12-21 08:30:37</li>
      <
li>gmt_edit_date:  2009-12-21 20:27:38</li>
      <
li>edit_date:      2009-12-21 13:27:38</li>
      </
ul>]]></description>
      <
dc:date>2009-12-21T15:30:37+00:00</dc:date>
      <
dc:date2>2009-12-21T08:30:37+00:00</dc:date2>
    </
item

It would seem that while the entry date, hour and minute are correct (unchanged) in both entries, the seconds must be getting generated at output (not read from database) since the seconds change each time on ALL the date fields.

I haven’t dug into the DB so I’m not sure if it’s not storing the seconds or appending them dynamically for some other reason but the obvious solution is to not include seconds if you don’t want your feed showing a change when you update a post. Obviously it would be preferable to include seconds in GUID especially (for uniqueness) and for complying with RSS feed standards (I’ll just put a generic 00 in seconds for mine).

Perhaps this is only a problem with EE 1.6.7. If not, it would be really nice if someone with ‘Lab Assistant’ or above rank could mention this problem as it relates to RSS feed behavior in the docs: http://expressionengine.com/docs/templates/date_variable_formatting.html

 Signature 

@mahalie
EE: http://mithun.com
Blog: http://23rdworld.com

 
Posted: 21 December 2009 10:48 PM   [ Ignore ]   [ # 10 ]   [ Rating: 0 ]
Joined: 2008-06-29
175 posts

Thanks a lot, Mahalie!

I changed the seconds to 12 from someone else post and it works!! Even in the email.

Someone should add this is to the wiki.

 Signature 

Exercise Biology - The Science of Exercise, Fitness & Nutrition

 
Posted: 23 December 2009 10:33 PM   [ Ignore ]   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2008-10-28
77 posts

Just wanted to mention, after spending way too much time on the RSS template I wrote an article on fixing and improving the default template. For the purposes of this thread, make sure you remove or make static the seconds in the format attribute of the date field in both the guid and the dc:date lines of the item section.

If you just want the code, I’ve posted a fixed default template on snipplr.

 Signature 

@mahalie
EE: http://mithun.com
Blog: http://23rdworld.com