I just downloaded phpnuke 6.5 and I added a new block to download recent news from Freshmeat. The problem I encountered was that every time I load a page on my site, it always calls the Freshmeat site, even though the refresh is set for 1 hour.
I discovered in 'mainfile.php' that the variable $otime is used to compare against the current time. However, $otime isn't set properly. (See below).
$sql = "SELECT title, content, url, refresh, time FROM ".$prefix."_blocks WHERE bid='$bid'";
$otime = $row[otime];
if ($otime < $past) {
The fix is to change the line that sets $otime to this:
$otime = $row[time];
What I'd like to know is, is this fixed in php-nuke 6.8? Is this a known issue?
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Sat Jul 12, 2003 6:24 pm
Great catch! An NO to both questions! I have moved this post to Bug Fixes, because that is what it is. We will get this passed to FB with your credit in it.
BTW, under Blocks Administration, the Freshmeat RSS feed is already supplied. You just need to activate it.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum