Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post There Is At Least One New Reply In This Thread..... 
 
There was a section in one of the files that I could comment out to make sure that the post cehck was not done to prevent "There is at least one new reply in this thread.." message from coming up when you try to submit a response. Here is the actual coding to comment out:
Quote:
/*
    if(!empty($_POST['post_time']) && ($mode == 'reply' || $mode == 'quote'))
    {
        global $topic_id;
        $last_post_time = intval($_POST['post_time']);

        if(isset($topic_id) && $last_post_time)
        {
            $sql = "SELECT post_time FROM " . POSTS_TABLE . " WHERE topic_id = $topic_id ORDER BY post_time DESC LIMIT 0, 1";
            global $db;

            if(($result = $db->sql_query($sql)) !== false)
            {
                if( $row = $db->sql_fetchrow($result) )
                {
                    $last_post_time2 = $row['post_time'];
                    if($last_post_time2 > $last_post_time)
                    {
                    $error_msg .= (empty($error_msg) ? '' : '<br />') . $lang['Warn_new_post'];
                    }
                }
                $db->sql_freeresult($result);
            }
        }
    }
*/


I just can't remember which file it was. Anyone know??

Thanks in advance!
 



 
Paul_RS1Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: There Is At Least One New Reply In This Thread..... 
 
maybe

includes/functions_post.php
 




____________
*VOLVO CLUB*
 
difusSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: There Is At Least One New Reply In This Thread..... 
 
yes, as difus said its in functions_post.php arroung line 150 or similar

Code: [Download] [Hide] [Select]
    // Check to see if there's a new post while the user is posting
    global $_POST;
    global $lang;
    if(!empty($_POST['post_time']) && ($mode == 'reply' || $mode == 'quote'))
    {
        global $topic_id;
        $last_post_time = intval($_POST['post_time']);

        if(isset($topic_id) && $last_post_time)
        {
            $sql = "SELECT post_time FROM " . POSTS_TABLE . " WHERE topic_id = $topic_id ORDER BY post_time DESC LIMIT 0, 1";
            global $db;

            if(($result = $db->sql_query($sql)) !== false)
            {
                if( $row = $db->sql_fetchrow($result) )
                {
                    $last_post_time2 = $row['post_time'];
                    if($last_post_time2 > $last_post_time)
                    {
                    $error_msg .= (empty($error_msg) ? '' : '<br />') . $lang['Warn_new_post'];
                    }
                }
                $db->sql_freeresult($result);
            }
        }
    }


cya
 




____________

Play Games at GamesCampus!
 
KugeLSichASend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: There Is At Least One New Reply In This Thread..... 
 
Thank you guys!!! You all rock as usual
 



 
Paul_RS1Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: There Is At Least One New Reply In This Thread..... 
 
Moved to Docs.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron