PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
nani
New Member
New Member


Joined: Jun 10, 2003
Posts: 5

PostPosted: Tue Jun 10, 2003 3:38 pm Reply with quote Back to top

hi there

I have installed ver 6.5
but there is seemse to be a problem with forums block.

only the new topics are being dispayed by time posted
while if you reply to any of previous topics it will stay like that.

so for example, if somebody opens an new topic
that topic will stay on top of forums block
until another NEW topic has been posted

in short words, forums block
is only working for NEW TOPICS
and NOT for NEW REPLIES

any idea?

thank you

p.s. this is my code fot block-forums.php
Quote:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* This is a 2 min hack of the old forum block to work with the phpBB2 */
/* port. */
/* */
/* 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. */
/************************************************************************/
if (eregi("block-Forums.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
global $prefix, $dbi, $sitename;
$result = sql_query("SELECT forum_id, topic_id, topic_title FROM ".$prefix."_bbtopics ORDER BY topic_time DESC LIMIT 10", $dbi);
$content = "<center><font class=\"blue\"><b> Last Subisions</b></font></center><br>";
while(list($forum_id, $topic_id, $topic_title) = sql_fetch_row($result, $dbi)) {

$topic_title = substr("$topic_title", 0,15);
$result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
if( ( $auth_view != 2 ) or ( $auth_read != 2 ) ) {
$content .= "<img src=\"images/blocks/icon_mini_message.gif\" border=\"0\" alt=\"\" width=\"13\" height=\"14\">&<a href=\"postt.html$topic_id\">$topic_title...</a><br>";
}
}
$content .= "<br><center><a href=\"forums.html\"><i>Forums</i></a></center>";

?>

Can anyone help? Crying or Very sad
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Jun 18, 2003 6:02 am Reply with quote Back to top

Please post this problem at nukecops.com . Thanks.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

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.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum