RSS Showing Updated Posts
Posted: 18 December 2009 03:02 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  92
Joined  06-29-2008

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

Profile
 
 
Posted: 18 December 2009 03:09 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21039
Joined  04-29-2002

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

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 18 December 2009 07:17 PM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  92
Joined  06-29-2008

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

Profile
 
 
Posted: 18 December 2009 08:12 PM   [ Ignore ]   [ # 3 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  2203
Joined  06-13-2008

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

Can you paste an example?

 Signature 

Render Creative

Profile
MSG
 
 
Posted: 19 December 2009 01:18 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  92
Joined  06-29-2008

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 ()
 
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

Profile
 
 
Posted: 19 December 2009 03:18 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1572
Joined  06-20-2005

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

Profile
MSG
 
 
Posted: 19 December 2009 04:07 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1887
Joined  10-22-2006

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

Profile
 
 
Posted: 20 December 2009 03:15 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1572
Joined  06-20-2005

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

Profile
MSG
 
 
Posted: 21 December 2009 03:08 PM   [ Ignore ]   [ # 8 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  10-28-2008

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

Profile
 
 
Posted: 21 December 2009 03:41 PM   [ Ignore ]   [ # 9 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  10-28-2008

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_date: 2009-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 2, after 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_date: 2009-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

Profile
 
 
Posted: 21 December 2009 08:48 PM   [ Ignore ]   [ # 10 ]  
Grad Student
Rank
Total Posts:  92
Joined  06-29-2008

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

Profile
 
 
Posted: 23 December 2009 08:33 PM   [ Ignore ]   [ # 11 ]  
Grad Student
Avatar
Rank
Total Posts:  84
Joined  10-28-2008

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

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120563 Total Logged-in Users: 51
Total Topics: 126613 Total Anonymous Users: 28
Total Replies: 665595 Total Guests: 326
Total Posts: 792208    
Members ( View Memberlist )