Joined: Dec 19, 2004 Posts: 2202 Location: Germany:Moderator German NukeSentinel Support
Posted:
Thu Sep 08, 2005 4:43 pm
I know this is an old bug.The ultramode.txt shows only 1 news. I found a fix for the mainfile.php but this doesnīt change anything there is still 1 news.I īm using chmod 666.
Any ideas ?
Original function mainfile.php:
Code:
function ultramode() {
global $prefix, $db;
$ultra = "ultramode.txt";
$file = fopen("$ultra", "w");
fwrite($file, "General purpose self-explanatory file with news headlines\n");
echo "<link>$nukeurl</link>\n";
$sql = "SELECT sid, aid, title, time, comments, topic FROM ".$prefix."_stories ORDER BY time DESC LIMIT 0,10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$sql = "select topictext, topicimage from ".$prefix."_topics where topicid='$row[topic]'";
$result = $db->sql_query($result);
$row2 = $db->sql_fetchrow($result);
$topictext = $row2[topictext];
$topicimage = $row2[topicimage];
$content = "%%\n$row[title]\n/modules.php?name=News&file=article&sid=$row[sid]\n$row[time]\n$row[aid]\n$row2[topictext]\n$row[comments]\n$row2[topicimage]\n";
fwrite($file, $content);
}
fclose($file);
}
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
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest Đ 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory
You can syndicate our news using the file
Website engines core code is Đ copyright by PHP-Nuke but has been heavily patched and modified by myself and others. PHP-Nuke is a free software released under the GNU/GPL.