<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Date problem]]></title>
		<link>https://punbb.informer.com/forums/topic/17180/date-problem/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/17180/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Date problem.]]></description>
		<lastBuildDate>Wed, 03 Oct 2007 23:23:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101410/#p101410</link>
			<description><![CDATA[<p>Thanks <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (rexron)]]></author>
			<pubDate>Wed, 03 Oct 2007 23:23:18 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101410/#p101410</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101398/#p101398</link>
			<description><![CDATA[<p>I believe there&#039;s a typo here<br /></p><div class="codebox"><pre><code>$thisdate = date(&#039;l, d F Y&#039;, $cur_topic[&#039;postet&#039;]);</code></pre></div><p>Change to<br /></p><div class="codebox"><pre><code>$thisdate = date(&#039;l, d F Y&#039;, $cur_topic[&#039;posted&#039;]);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Strofanto)]]></author>
			<pubDate>Wed, 03 Oct 2007 20:06:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101398/#p101398</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101384/#p101384</link>
			<description><![CDATA[<p>I believe this is what generates the topics and date/time.<br />This is a section of index.php.</p><div class="codebox"><pre><code>// Fetch $show topics
    $result = $db-&gt;query(&#039;SELECT t.id, t.poster, t.subject, t.posted, t.last_post, f.id AS fid, f.forum_name FROM &#039;.$db_prefix.&#039;topics AS t INNER JOIN &#039;.$db_prefix.&#039;forums AS f ON t.forum_id=f.id WHERE f.id=&#039;.$fid.&#039; AND t.moved_to IS NULL ORDER BY &#039;.$order_by.&#039; DESC&#039;) or error(&#039;Unable to fetch topic list&#039;, __FILE__, __LINE__, $db-&gt;error());
    $show_count = 0;
    if ( !$db-&gt;num_rows($result) ) return $output;
    while ( ($show_count &lt; $show) &amp;&amp; ($cur_topic = $db-&gt;fetch_assoc($result)) ) {
        $temp = &#039;&#039;;
        if ($pun_config[&#039;o_censoring&#039;] == &#039;1&#039;)
            $cur_topic[&#039;subject&#039;] = censor_words($cur_topic[&#039;subject&#039;]);
        if (pun_strlen($cur_topic[&#039;subject&#039;]) &gt; $max_subject_length)
            $subject_truncated = trim(substr($cur_topic[&#039;subject&#039;], 0, ($max_subject_length-5))).&#039; ...&#039;;
        else
            $subject_truncated = $cur_topic[&#039;subject&#039;];
        $newsheading = &#039;&lt;a href=&quot;&#039;.$pun_config[&#039;o_base_url&#039;].&#039;/viewtopic.php?id=&#039;.$cur_topic[&#039;id&#039;].&#039;&amp;action=new&quot; title=&quot;&#039;.pun_htmlspecialchars($cur_topic[&#039;subject&#039;]).&#039;&quot;&gt;&#039;.pun_htmlspecialchars($subject_truncated).&#039;&lt;/a&gt; - &lt;em&gt;Postet av &#039;.$cur_topic[&#039;poster&#039;].&#039; kl. &#039;.date(&#039;H:i&#039;, $cur_topic[&#039;Postet&#039;]).&#039;&lt;/em&gt;&lt;br&gt;&#039;;
        // Group posts by date    
        $thisdate = date(&#039;l, d F Y&#039;, $cur_topic[&#039;postet&#039;]);
        if ($thisdate != $saveddate) 
 
        {
            if ($saveddate)
            {
                $temp .= &quot;&lt;/div&gt;&lt;/div&gt;&quot;;
            }
            $temp .= &#039;&lt;div class=&quot;block&quot;&gt;&lt;h2&gt;&lt;span&gt;&#039;.$thisdate.&#039;&lt;/span&gt;&lt;/h2&gt;&lt;div class=&quot;box&quot;&gt;&lt;div class=&quot;inbox&quot;&gt;&lt;p&gt;&#039;;
            $saveddate = $thisdate;
        }
        else {
            $temp .= &#039;&lt;div class=&quot;inbox&quot;&gt;&lt;p&gt;&#039;;
        }
        $temp .= $newsheading.&#039;&lt;/p&gt;&lt;p&gt;&#039;;
        $id = $cur_topic[&#039;id&#039;];
        $msg = $db-&gt;query(&#039;SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM &#039;.$db_prefix.&#039;posts WHERE topic_id=&#039;.$id.&#039; LIMIT 1&#039;) or error(&#039;Unable to fetch post info&#039;, __FILE__, __LINE__, $db-&gt;error());
            if ( !$db-&gt;num_rows($msg) ) continue;
        $cur_post = $db-&gt;fetch_assoc($msg);
        // Display first paragraph only (comment out next four lines to turn off)
        if ($truncate == 1)
        {
        $paragraph = preg_split(&quot;/s*n+/&quot;, $cur_post[&#039;message&#039;]);
            if (isset($paragraph[1])) {
                $cur_post[&#039;message&#039;] = $paragraph[0] . &quot;...&quot;;
            }
        }
        $cur_post[&#039;message&#039;] = parse_message($cur_post[&#039;message&#039;], 0);
        $temp .= $cur_post[&#039;message&#039;];
        $temp .= &quot;&lt;/p&gt;&lt;/div&gt;&quot;;
        if (isset($output)) {
            $output .= $temp;
        }
        else {
            $output = $temp;
        }
        ++$show_count;</code></pre></div><p>Do you see anything wrong here.<br />Date and time works for the rest of the forum.</p><p>RexRon</p>]]></description>
			<author><![CDATA[null@example.com (rexron)]]></author>
			<pubDate>Wed, 03 Oct 2007 16:24:45 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101384/#p101384</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101370/#p101370</link>
			<description><![CDATA[<p>Check if there&#039;s actually anything in the timestamp DB fields.</p>]]></description>
			<author><![CDATA[null@example.com (elbekko)]]></author>
			<pubDate>Wed, 03 Oct 2007 12:21:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101370/#p101370</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101361/#p101361</link>
			<description><![CDATA[<p>Not sure what code to post. Is it functions.php*? I believe I stumbeld over something there once.</p><p>About days. Exactly what I mean <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />However, it´s Mandag. I think Måndag swedish <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Sincerely<br />RexRon</p>]]></description>
			<author><![CDATA[null@example.com (rexron)]]></author>
			<pubDate>Wed, 03 Oct 2007 08:42:43 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101361/#p101361</guid>
		</item>
		<item>
			<title><![CDATA[Re: Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101360/#p101360</link>
			<description><![CDATA[<p>There&#039;s probably an error in your code, can you post it?</p><br /><p>Also by generating days in norwegian you mean Måndag instead of Monday and so on?</p>]]></description>
			<author><![CDATA[null@example.com (Strofanto)]]></author>
			<pubDate>Wed, 03 Oct 2007 07:37:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101360/#p101360</guid>
		</item>
		<item>
			<title><![CDATA[Date problem]]></title>
			<link>https://punbb.informer.com/forums/post/101351/#p101351</link>
			<description><![CDATA[<p>I installed the miniportal mod.<br />Cool mod but I see a problem.<br />Follow this link to see what I mean.<br /><a href="http://www.forum.eterya.com">www.forum.eterya.com</a></p><p>Under the lorum ipsum generated text there´s a box showing the most recent posts.<br />Now... I did not post these the year I was born <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>The header date says Thursday, 01 January 1970 nomatter what.<br />Beside the title it says 01.00. This is allso wrong.</p><p>Can someone help me with this? If so, I´d like to be able to generate the days in norwegian.</p><p>Sincerely<br />Ronny</p>]]></description>
			<author><![CDATA[null@example.com (rexron)]]></author>
			<pubDate>Wed, 03 Oct 2007 00:01:17 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/101351/#p101351</guid>
		</item>
	</channel>
</rss>
