You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 121 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Time for block content not checked properly [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
thepacketmaster
Nuke Cadet
Nuke Cadet


Joined: Jul 12, 2003
Posts: 3


PostPosted: Sat Jul 12, 2003 6:06 pm Reply with quoteBack to top

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?
Find all posts by thepacketmasterView user's profileSend private message
Raven
General
General


Joined: Mar 22, 2003
Posts: 5233

Location: USA

PostPosted: Sat Jul 12, 2003 6:24 pm Reply with quoteBack to top

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.

_________________
Those who hear not the music think the dancers mad.
Raven Web Hosting|My Scripts & Stuff
Find all posts by RavenView user's profileSend private messageVisit poster's website
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 994

Location: Tulsa, OK

PostPosted: Sat Jul 12, 2003 7:42 pm Reply with quoteBack to top

i looked at that code for a hour 'cause my nc feed was slow and i finally decided it must have been my host -LOL thanks packetmaster!
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
Jenses
Private
Private


Joined: Jun 09, 2003
Posts: 45

Location: Denmark

PostPosted: Fri Jan 30, 2004 9:57 am Reply with quoteBack to top

Just imagin Twisted Evil this error know for such a long time is also present in PhpNuke 7.0 Crying or Very sad
Find all posts by JensesView user's profileSend private messageVisit poster's website
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 994

Location: Tulsa, OK

PostPosted: Sat Jan 31, 2004 4:21 am Reply with quoteBack to top

make sure you have the real 7.0.0 final

7.0 alpha 2 had it but its fixed in the final version of 7
http://prdownloads.sourceforge.net/phpnuke/PHP-Nuke-7.0.zip

otherwise, if youre having a blocks issue its prolly unrelated to this bug
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.183 Seconds - 196 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::