Amiatt zavarlak titeket mert egy kis segítségre szorulnék!
Tehát azután érdeklődnék hogy megvalósitható az a dolog hogy a moderátoroknak hozzászólás módositási jogot adjak, Illetve ha igen merre keressem.
Köszönöm a válaszotokat
Elküldve: 2009 június 04 - 18:17
Elküldve: 2009 június 04 - 20:20
Elküldve: 2009 június 04 - 21:15
Elküldve: 2009 június 04 - 21:30
Elküldve: 2009 június 04 - 21:57
Elküldve: 2009 június 04 - 23:06
Nyisd meg a következő fájlt : sources/lib/func_mod.php
$this->ipsclass->DB->simple_construct( array( 'select' => 'pid, topic_id', 'from' => 'posts', 'where' => 'pid'.$pid ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$posts[ $r['pid'] ] = $r['topic_id'];
$topics[ $r['topic_id'] ] = 1;
}$this->ipsclass->DB->simple_construct( array( 'select' => 'pid, author_id, topic_id', 'from' => 'posts', 'where' => 'pid'.$pid ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$posts[ $r['pid'] ] = $r['topic_id'];
$topics[ $r['topic_id'] ] = 1;
if( $r['author_id'] )
{
$pcnt[ $r['author_id'] ][] = $r['pid'];
}
}//----------------------------------------- // Update all relevant topics //-----------------------------------------
//-----------------------------------------
// Update members post count
//-----------------------------------------
if( is_array($pcnt) && count($pcnt) )
{
foreach( $pcnt as $k => $v )
{
$this->ipsclass->DB->simple_construct( array( 'update' => 'members',
'set' => "posts=posts-".count($v),
'where' => 'id='.$k
) );
$this->ipsclass->DB->simple_exec();
}
}$this->ipsclass->DB->simple_construct( array( 'select' => 'pid', 'from' => 'posts', 'where' => "topic_id".$tid ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$posts[] = $r['pid'];
}$this->ipsclass->DB->simple_construct( array( 'select' => 'pid, author_id', 'from' => 'posts', 'where' => "topic_id".$tid ) );
$this->ipsclass->DB->simple_exec();
while ( $r = $this->ipsclass->DB->fetch_row() )
{
$posts[] = $r['pid'];
if( $r['author_id'] )
{
$pcnt[ $r['author_id'] ][] = $r['pid'];
}
}//----------------------------------------- // Recount forum... //-----------------------------------------
//-----------------------------------------
// Update members post count
//-----------------------------------------
if( is_array($pcnt) && count($pcnt) )
{
foreach( $pcnt as $k => $v )
{
$this->ipsclass->DB->simple_construct( array( 'update' => 'members',
'set' => "posts=posts-".count($v),
'where' => 'id='.$k
) );
$this->ipsclass->DB->simple_exec();
}
}sources/lib/func_mod.php
sources/action_public/moderate.php
if ( $p['pid'] != $this->ipsclass->input['postdate'] )
{
$post_to_delete[] = $p['pid'];if( $p['author_id'] )
{
$pcnt[ $p['author_id'] ][] = $p['pid'];
}//----------------------------------------- // Kill old posts //-----------------------------------------
//-----------------------------------------
// Update members post count
//-----------------------------------------
if( is_array($pcnt) && count($pcnt) )
{
foreach( $pcnt as $k => $v )
{
$this->ipsclass->DB->simple_construct( array( 'update' => 'members',
'set' => "posts=posts-".count($v),
'where' => 'id='.$k
) );
$this->ipsclass->DB->simple_exec();
}
}sources/action_public/moderate.php
Elküldve: 2009 június 05 - 10:29
Elküldve: 2009 június 05 - 13:10
Elküldve: 2009 június 05 - 21:04
Elküldve: 2009 június 05 - 22:58