1.: "index_topfive.tpl" dosyasını FTP ile "templates/" içine yollayın!
2.: FTP den "index.php" açın!
3.: Arayın:
/* ############## USERONLINE ############## */
Üzerine Ekleyin:
/* ############## Top 5 Statistik Mainpage Start ############## */
// Start Top 5 Poster
$posts5 = $db->query("SELECT userid,username,userposts FROM bb".$n."_users ORDER BY userposts DESC LIMIT 5"
while ($posts5top = $db->fetch_array($posts5)){
$posts5name .= "» <a href=profile.php?userid=$posts5top[userid]&sid=$session[hash]>$posts5top[username]</a><br>";
$posts5post .= "$posts5top[userposts] <br>";
}
// Ende Top 5 Poster
// Start Letzte 5 Mitglieder
$user = $db->query("SELECT userid,userposts,username,regdate FROM bb".$n."_users WHERE activation='1' ORDER BY regdate DESC LIMIT 5"
while ($usertop = $db->fetch_array($user)){
$username .= "» <a href=\"profile.php?userid=$usertop[userid]&sid=$session[hash]\">$usertop[username]</a><br>";
$userposts .= "$usertop[userposts] <br>";
}
// Ende Letzte 5 Mitglieder
// Start Letzte 5 Beiträge
$pop = $db->query("SELECT
bb".$n."_threads.topic,
bb".$n."_threads.threadid,
bb".$n."_threads.lastposttime,
bb".$n."_threads.views,
bb".$n."_users.userid,
bb".$n."_threads.boardid as parentid,
bb".$n."_users.username,
bb".$n."_boards.invisible
FROM bb".$n."_threads
LEFT JOIN bb".$n."_users ON (bb".$n."_users.userid=bb".$n."_threads.lastposterid)
LEFT JOIN bb".$n."_boards ON (bb".$n."_boards.boardid=bb".$n."_threads.boardid)
WHERE bb".$n."_boards.invisible=0
ORDER BY bb".$n."_threads.lastposttime DESC LIMIT 5"
while ($poptop = $db->fetch_array($pop)){
// Start Top Themen
$pop1 = $db->query("SELECT bb".$n."_threads.topic,
bb".$n."_threads.threadid,
bb".$n."_threads.views,
bb".$n."_threads.boardid,
bb".$n."_boards.invisible
FROM bb".$n."_threads
LEFT JOIN bb".$n."_boards ON (bb".$n."_boards.boardid=bb".$n."_threads.boardid)
WHERE bb".$n."_boards.invisible=0
ORDER BY bb".$n."_threads.views DESC LIMIT 1"
while ($pop1top = $db->fetch_array($pop1)){
$pop1title = "<a href=\"thread.php?threadid=$pop1top[threadid]&boardid=$pop1top[boardid]&sid=$session[hash]\">$pop1top[topic]</a>";
$pop1views = "$pop1top[views]";
}
// Ende Top Themen
// Start Top Bewertung
$voted = $db->query("SELECT bb".$n."_threads.topic,
bb".$n."_threads.threadid,
bb".$n."_threads.voted,
bb".$n."_threads.votepoints,
bb".$n."_threads.boardid,
bb".$n."_boards.invisible
FROM bb".$n."_threads
LEFT JOIN bb".$n."_boards ON (bb".$n."_boards.boardid=bb".$n."_threads.boardid)
WHERE bb".$n."_boards.invisible=0
ORDER BY bb".$n."_threads.voted DESC LIMIT 1"
while ($votedtop = $db->fetch_array($voted)){
$votedthread = "<a href=\"thread.php?threadid=$votedtop[threadid]&boardid=$votedtop[boardid]&sid=$session[hash]\">$votedtop[topic]</a>";
$votedrating = "$votedtop[votepoints]";
}
// Ende Top Bewertung
// Start des template aufrufs
eval ("\$top5threadstats = \"".$tpl->get("index_topfive"."\";"
// Ende templates aufruf
Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT bb1_threads.topic, bb1_threads.threadid, bb1_threads.lastposttime, bb1_threads.views, bb1_users.userid, bb1_threads.boardid as parentid, bb1_users.username, bb1_boards.invisible FROM bb1_threads LEFT JOIN bb1_users ON (bb1_users.userid=bb1_threads.lastposter id) LEFT JOIN bb1_boards ON (bb1_boards.boardid=bb1_threads.boardid ) WHERE bb1_boards.invisible=0 ORDER BY bb1_threads.lastposttime DESC LIMIT 5
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id) LEFT JOIN bb1_boards ON (bb1_boards.boardid=bb1_threads.boardid ) ' at line 11
mysql error number: 1064
mysql version: 5.1.38-log
php version: 5.2.14
Date: 10.01.2011 @ 19:13
Script: /wbb2/index.php
Referer: http://thedevrekboy67.redio.de/wbb2/index.php
1.abicim ben acp>templades editieren>index.tpl yok
2.bu indirdigimi hangi templades ordnersina aticam
3.Team üyelerini rengli yapmam icin girmem gereken seyde yok
@yapmadedim adlı üyeden alıntı: 1.abicim ben acp>templades editieren>index.tpl yok
2.bu indirdigimi hangi templades ordnersina aticam
3.Team üyelerini rengli yapmam icin girmem gereken seyde yok Orijinali Göster...
1.abicim ben acp>templades editieren>index.tpl yok
2.bu indirdigimi hangi templades ordnersina aticam
3.Team üyelerini rengli yapmam icin girmem gereken seyde yok
index.tpl olmadan ana sayfanda açılmaz. Standart templatesler içerisinde yoksa kullandığın temaya ait paket içerisindedir.
İndirdiğini FTP den templates isimli klasöre atmalısın.
Burada team üyelerinin renklerinden bahsetmiyoruz.
Database error in WoltLab Burning Board (2.3.6): Invalid SQL: SELECT bb1_threads.topic, bb1_threads.threadid, bb1_threads.lastposttime, bb1_threads.views, bb1_users.userid, bb1_threads.boardid as parentid, bb1_users.username, bb1_boards.invisible FROM bb1_threads LEFT JOIN bb1_users ON (bb1_users.userid=bb1_threads.lastposter id) LEFT JOIN bb1_boards ON (bb1_boards.boardid=bb1_threads.boardid ) WHERE bb1_boards.invisible=0 ORDER BY bb1_threads.lastposttime DESC LIMIT 5
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id) LEFT JOIN bb1_boards ON (bb1_boards.boardid=bb1_threads.boardid ) WHERE bb1_' at line 11
mysql error number: 1064
mysql version: 5.0.51a-3ubuntu5.8
php version: 5.2.4-2ubuntu5.14
Date: 16.03.2011 @ 13:13
Script: /index.php
Referer: http://firtinaboard.de/acp/misc.php?action=top&sid=805eae4a5b4aabd817633ef9f8180016
"index_topfive.tpl" dosyasındaki kodları acp de add template den yeni template tanımlayarak kodları yapıştırın adını index_topfive yapın ve kaydedin çalışacaktır download link aşağıda