<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
					xmlns:content="http://purl.org/rss/1.0/modules/content/"
					xmlns:wfw="http://wellformedweb.org/CommentAPI/"
					xmlns:atom="http://www.w3.org/2005/Atom"
				  >
<channel>
<atom:link rel="self"  type="application/rss+xml"  href="http://rulinux.net/rss_from_sect_4_subsect_7_thread_1646"  />
<title>rulinux.net - Форум - Rulinux.net - lastmod</title>
<link>http://rulinux.net/</link>
<description><![CDATA[Портал о GNU/Linux и не только]]></description>
<image><title>rulinux.net - Форум - Rulinux.net - lastmod</title>
<link>http://rulinux.net/</link>
<url>http://rulinux.net/rss_icon.png</url>
</image>
<item>
<title>Re:lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12887</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12887</guid>
<pubDate>Thu, 14 May 2009 20:00:59 +0400</pubDate>
<description><![CDATA[<p>может в design/simple-black/css/main.css</p><p>A:visited {
color: #d1d0d0;
}</p><p>махнуть на</p><p>A:visited {
color: #A0A0A0;
}</p><p>?
</p>]]></description>
</item>
<item>
<title>Re:lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12886</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12886</guid>
<pubDate>Wed, 13 May 2009 20:22:03 +0400</pubDate>
<description><![CDATA[<p>теперь в css a:visited от не виситед по контрасней бы слегка отделить цветом и совсем будет хорошо )</p>]]></description>
</item>
<item>
<title>Re:lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12885</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12885</guid>
<pubDate>Wed, 13 May 2009 20:09:54 +0400</pubDate>
<description><![CDATA[<p>Так читать и править проще</p>]]></description>
</item>
<item>
<title>Re:lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12884</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12884</guid>
<pubDate>Wed, 13 May 2009 20:05:37 +0400</pubDate>
<description><![CDATA[<p>отдельный запрос конечно может быть проще, однако всегда лучше два и более запроса объединить в один - выполнятся будет быстрее</p>]]></description>
</item>
<item>
<title>Re:lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12883</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12883</guid>
<pubDate>Wed, 13 May 2009 20:00:58 +0400</pubDate>
<description><![CDATA[<p>Поправил. да и запрос немного проще:</p><p><fieldset style="border: 1px dashed black; padding:0px;"><ol style="background-color:#3d3d3d;" start="1">SELECT MAX(posting_date) lastmod FROM forum_messages WHERE thread_id=&lt;ID темы&gt;</ol></fieldset></p>]]></description>
</item>
<item>
<title>lastmod</title>
<link>https://rulinux.net/message.php?newsid=1646&amp;page=1#12882</link>
<guid>https://rulinux.net/message.php?newsid=1646&amp;page=1#12882</guid>
<pubDate>Wed, 13 May 2009 19:10:00 +0400</pubDate>
<description><![CDATA[<p>Прикрутите в списке тем (group.php) параметр lastmod типа как на lor.</p><p>Сходу это выглядит так:</p><p>1) в таблицах forum_threads и forum_messages тип поля posting_date смените с text на datatime.</p><p>2) поднимите индексы на эти поля.</p><p>В group.php запрос </p><p>"SELECT * FROM forum_threads WHERE forum_id = &#039;$forumid&#039; ORDER BY stat&lt;&gt;&#039;attached&#039; ASC,  posting_date DESC LIMIT $limit"</p><p>махните на что-то типа:</p><p>"SELECT ft.*, MAX(UNIX_TIMESTAMP(fm.posting_date)) AS lastmod FROM forum_threads AS ft INNER JOIN forum_messages AS fm ON (fm.thread_id = ft.thread_id AND fm.forum_id = ft.forum_id) WHERE ft.forum_id = &#039;$forumid&#039; GROUP BY ft.thread_id ORDER BY ft.stat&lt;&gt;&#039;attached&#039; ASC,  ft.posting_date DESC LIMIT $limit"</p><p>3) выводите lastmod как GET параметр group.php в списке тем</p>]]></description>
</item>
</channel>
</rss>