Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
nani
New Member
New Member



Joined: Jun 10, 2003
Posts: 5

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

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! ] */
/* */
/* 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=\"modules.php?name=Forums&file=viewtopic&t=$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: 17088

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

Please post this problem at nukecops.com . Thanks.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©