Top5 - ForenBereiche ausgeben? |
Steinadler
Alternativ Mitglied
Dabei seit: 02.09.08
Beiträge: 212
Fähigkeiten: WBB2 Fortgeschritten; WBB Lite 1 Profi Forenversion: 2.3; Lite 1.0
|
|
Hi Pigsel
Ich habe das mal in meinem Testforum umgesetzt.
so gehts:
suche in der index.php:
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
|
// 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 |
|
ersetze durch:
php: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
// 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.boardid,
bb".$n."_boards.title,
bb".$n."_boards.invisible |
|
suche weiter:
php: |
1:
|
$popthread .= "» <a href=\"thread.php?goto=lastpost&threadid=$poptop[threadid]&sid=$session[hash]\">$poptop[topic]</a><br>"; |
|
füge darunter ein:
php: |
1:
|
$popboard .= "» <a href=\"board.php?&boardid=$poptop[boardid]&sid=$session[hash]\"> $poptop[title]</a><br>"; |
|
index.php fertig!
Jetzt brauchst Du nur noch in das index_topfive.tpl die Variable:
mit einer entsprechenden Überschrift: Forum
an die Stelle Deiner Wahl einbauen.
Das war es schon.
Bei mir im Forum sieht es jetzt so aus:
|
|
29.05.13 17:56 |
Finden
Als Freund hinzufügen
|
|
|