<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
 <generator>http://textpattern.com/</generator>
 <title>Textpattern Tips – Display the published and modified dates</title>
 <description>Display the published and modified dates - comments</description>
 <link>https://textpattern.tips/display-the-published-and-modified-dates</link>
 <atom:link href="https://textpattern.tips/display-the-published-and-modified-dates?f=comment-feed" rel="self" type="application/rss+xml" />
 <pubDate>Sun, 06 Dec 09 02:28:44 +0000</pubDate>

 <item>
     <title>Comment on Display the published and modified dates by Patrick</title>
     <link><a href="https://textpattern.tips/display-the-published-and-modified-dates#c000468" id="c000468">1</a></link>
     <guid><a href="https://textpattern.tips/display-the-published-and-modified-dates#c000468" id="c000468">1</a></guid>
     <pubDate>Sat, 11 Apr 09 06:46:14 +0000</pubDate>
     <description><![CDATA[<p>This tip is an answer to Tye from this original <a href="http://forum.textpattern.com/viewtopic.php?id=30277" rel="nofollow">thread</a> .<br>When I wrote this code, I noticed a problem with  inequal dates between published and modified ones. This problem, reported by <a href="http://forum.textpattern.com/viewtopic.php?pid=203820#p203820" rel="nofollow">Rick Silletti</a> , had been corrected by <a href="http://code.google.com/p/textpattern/source/detail?r=3172" rel="nofollow">Wet</a> now.<br>So, notice you&#8217;ll don&#8217;t need a format date attribute for the next <span class="caps">TXP</span> 4.0.9 version if you want to use the preferences date format choosen.</p><p>The new simplified tip will be as this :</p><p><code>&lt;p class="published"&gt;Published by &lt;txp:author /&gt; on &lt;txp:posted /&gt; &lt;txp:php&gt;
$changed = modified(array());
echo $changed == posted(array()) ? '' : '| Modified by '.safe_field("RealName", "txp_users", "name='".safe_field("LastModID", "textpattern", "ID='".$thisarticle['thisid']."'")."'").' on '.modified(array()).'';&lt;/txp:php&gt;</code></p>]]></description>
     <content:encoded><![CDATA[<p>This tip is an answer to Tye from this original <a href="http://forum.textpattern.com/viewtopic.php?id=30277" rel="nofollow">thread</a> .<br>When I wrote this code, I noticed a problem with  inequal dates between published and modified ones. This problem, reported by <a href="http://forum.textpattern.com/viewtopic.php?pid=203820#p203820" rel="nofollow">Rick Silletti</a> , had been corrected by <a href="http://code.google.com/p/textpattern/source/detail?r=3172" rel="nofollow">Wet</a> now.<br>So, notice you&#8217;ll don&#8217;t need a format date attribute for the next <span class="caps">TXP</span> 4.0.9 version if you want to use the preferences date format choosen.</p><p>The new simplified tip will be as this :</p><p><code>&lt;p class="published"&gt;Published by &lt;txp:author /&gt; on &lt;txp:posted /&gt; &lt;txp:php&gt;
$changed = modified(array());
echo $changed == posted(array()) ? '' : '| Modified by '.safe_field("RealName", "txp_users", "name='".safe_field("LastModID", "textpattern", "ID='".$thisarticle['thisid']."'")."'").' on '.modified(array()).'';&lt;/txp:php&gt;</code></p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="https://cara-tm.com">Patrick</a></dc:creator>
 
</item>
<item>
     <title>Comment on Display the published and modified dates by Jonathan</title>
     <link><a href="https://textpattern.tips/display-the-published-and-modified-dates#c000611" id="c000611">1</a></link>
     <guid><a href="https://textpattern.tips/display-the-published-and-modified-dates#c000611" id="c000611">1</a></guid>
     <pubDate>Sun, 06 Dec 09 02:28:44 +0000</pubDate>
     <description><![CDATA[<p>Is there any way to use something like this in the footer instead of within the article?</p>]]></description>
     <content:encoded><![CDATA[<p>Is there any way to use something like this in the footer instead of within the article?</p>]]></content:encoded>
     <dc:creator><a rel="nofollow" href="http://jonlandrum.com/">Jonathan</a></dc:creator>
 
</item>

</channel>
</rss>