Home Upload Browse List Search Help
Toasty!.txt
Filesize: 764.00 B
Downloads: 26
Download Link
//-----------------------------------------
// Build the number of posts since the last visit
//-----------------------------------------

$last_time = $this->ipsclass->member[\'last_visit\'];
if ( $this->ipsclass->member[\'members_markers\'][\'board\'] > $last_time )
{
$last_time = $this->ipsclass->member[\'members_markers\'][\'board\'];
}

$this->ipsclass->DB->simple_construct( array( \'select\' => \'count(*) as topic_title\',
\'from\' => \'topics\',
\'where\' => \"approved=1 AND state != \'link\' AND last_post > \'\".$last_time.\"\'\" ) );

$this->ipsclass->DB->simple_exec();

$topic = $this->ipsclass->DB->fetch_row();

$new = $topic[\'topic_title\'];
Description: //-----------------------------------------
// Build the number of posts since the last visit
//-----------------------------------------

$last_time = $this->ipsclass->member['last_visit'];
if ( $this->ipsclass->member['members_markers']['board'] > $last_time )
{
$last_time = $this->ipsclass->member['members_markers']['board'];
}

$this->ipsclass->DB->simple_construct( array( 'select' => 'count(*) as topic_title',
'from' => 'topics',
'where' => "approved=1 AND state != 'link' AND last_post > '".$last_time."'" ) );

$this->ipsclass->DB->simple_exec();

$topic = $this->ipsclass->DB->fetch_row();

$new = $topic['topic_title'];
Comments: No Comments


.: Eternal-Filez :: © 2003-2008 The Eternal Network :: Designz by: MastricX :: Powered by: TEN'th :.