Here's my question when I make a post it shows the time as
Posted by NB on Wednesday, August 02 @ 05:33:21 EEST
Should it not be
Posted by NB on Wednesday, August 02 @ 05:33:21 EST
I Was trying to validate the backend.php rss feed tells me it needs to be corrected how does one go about doing this ?
NSN News 2.0.0
RavenNuke76 v2.02.02 FULL
Only registered users can see links on this board! Get registered or login to the forums!
Only registered users can see links on this board! Get registered or login to the forums!
lastBuildDate must be an RFC-822 date-time: Thu, 03 Aug 2006 06:16:20 EEST
needs to be
<pubDate>Wed, 02 Oct 2002 08:00:00 EST</pubDate>
are these the same problem are two different ones?
Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
Posted:
Thu Aug 03, 2006 2:06 pm
nb1, I cannot find this issue in the core PHP-nuke backend (at least for RN), so your backend.php must be a replacement in the NSN News distro? Can you post the code from that script here so we can take a look?
If this is true that it is from NSN News, I will move this thread over to that Forum so it has better visibility as such.
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* */
/************************************************************************/
/* Additional coding modifications by Raven 2004 */
/* http://ravenphpscripts.com -- http://ravenwebhosting.com */
/************************************************************************/
/* 100% RSS/XML and W3C Compliance by Gaylen Fraley (aka Raven) */
/* http://ravenphpscripts.com -- http://ravenwebhosting.com */
/************************************************************************/
$rssFeedLimit = 15;
header("Content-Type: text/xml");
include("mainfile.php");
if (isset($cat) AND !empty($cat)) {
$cat = intval($cat);
$catid = $db->sql_fetchrow($db->sql_query("SELECT catid FROM ".$user_prefix."_stories_cat WHERE title LIKE '%$cat%' LIMIT 1"));
if (empty($catid)) {
$result = $db->sql_query("SELECT sid, title FROM ".$user_prefix."_stories ORDER BY sid DESC LIMIT $rssFeedLimit");
} else {
$catid = intval($catid);
$result = $db->sql_query("SELECT sid, title FROM ".$user_prefix."_stories WHERE catid='$catid' ORDER BY sid DESC LIMIT $rssFeedLimit");
}
} else {
$result = $db->sql_query("SELECT sid, title FROM ".$user_prefix."_stories ORDER BY sid DESC LIMIT $rssFeedLimit");
}
Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
Posted:
Thu Aug 03, 2006 2:30 pm
This is not the one that is failing validation. In your link from your first post, that one is showing RSS version 2.0. There is no PubDate node in the code you posted.
I'm extremely sorry I forgot I had put some extra chatters in front of the original file name for backup purposes Okay my next question is changing the time when the post was made
Posted by NB on Wednesday, August 02 @ 05:33:21 EEST
Should it not be
Posted by NB on Wednesday, August 02 @ 05:33:21 EST
theme is fiapple
Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
Posted:
Thu Aug 03, 2006 3:25 pm
Unfortunately, I am not sure how NSN News is doing it. In the core PHP-Nuke News module, it is formatted in modules/News/article.php (may be a few other places), but it seems to be calling a function in mainfile.php:
// Beta 3 code by Quake 08/19/2005
// Written for Nuke-Evolution and Nuke Patched
function formatTimestamp($time) {
global $datetime, $locale;
setlocale(LC_TIME, $locale);
if (!is_numeric($time)) {
preg_match('/([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2})[0-9]{1,2})[0-9]{1,2})/', $time, $datetime);
$time = gmmktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]);
}
$time -= date('Z');
$datetime = strftime(_DATESTRING, $time);
$datetime = ucfirst($datetime);
return $datetime;
}
I have a feeling that NSN News is not using this function. It may be a bug but I will need to defer to someone who has NSN News 2.0.0 downloaded and installed. I don't have time to do that right now.
I will move this thread over to the NSN News forum.
View next topic View previous 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