»Forumlar »SE ? Core Labs »Hızlı Forum Konu Silme Button
  https://seditio.com.tr/eski1/forums.php?m=posts&q=1057
          Geri Dön      -      Sayfayı Yazdırmak için tıklayın
Author: Kaan, Posted: 2010-11-16 01:13 GMT.
Forum Taopics Delete Button

Forum konular? okumaya gerek duymadan silmenizi sa?lar.

Gereksiz g?rd???n?z Forum konular?n? hemen silmeniz i?in haz?rlanm??t?r.
Bu ?zelli?i sadece admin yetkisine sahip kullan?c?lar kullanabilir.

Uygulama:

system/core/forums/forums.topics.inc.php yi a??n alttakini bulun.
Kod:
$row['ft_pages'] .= (is_int($a/5) || $a<10 || $a==$row['ft_maxpages']) ? " <a href=\"".$row['ft_url']."&amp;d=".($a-1) * $cfg['maxtopicsperpage']."\">".$a."</a>" : '';
    }
}

Alt?na ekleyin.
Kod:
//////////////////////////////////
if ($usr['isadmin']) {
$adel = "<form id=\"movetopic\" action=\"forums.php?m=topics&amp;a=move&amp;".sed_xg()."&amp;s=".$s."&amp;q=".$row['ft_id']."\" method=\"post\">";
$adel .= "[<a href=\"forums.php?m=topics&amp;a=delete&amp;".sed_xg()."&amp;s=".$s."&amp;q=".$row['ft_id']."\">x</a>]</form>";
}
///////////////////////////////////////////////

Alttakini bulun.
Kod:
$t-> assign(array(

Alt?na Ekleyin.
Kod:
"FORUMS_TOPICS_ADMIN" => $adel,

skins/teman?z/forums.topics.tpl yi a??n alttakini aray?n.
Kod:
{FORUMS_TOPICS_ROW_VIEWCOUNT}

?n?ne ekleyin.
Kod:
{FORUMS_TOPICS_ADMIN}

?rnek:
Kod:
{FORUMS_TOPICS_ROW_VIEWCOUNT} {FORUMS_TOPICS_ADMIN}
Author: world, Posted: 2010-11-30 19:09 GMT.
bu silme butonu nerde olcak konular?n hemen yan?ndam?

Powered by SeditioPrint version