Alle Foren Game-Menue Hack-Menue AGB-Menue Extra-Menue Admin-Menue
Zur Startseite
Frohe Festtage für alle, und einen guten Rutsch in das Jahr 2024

01:01:2024 closed




Neues Thema erstellenAntwort erstellen
Zum Ende der Seite springen  Die xxx letzten Beitraege eines Mit
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
omarAdministrator omar ist männlich
Administrator


images/avatars/avatar-1.gif

Dabei seit: 31.01.2005
Beiträge: 1.013
428 Filebase-Einträge

Guthaben: 39.960 h4wfunnys

Aktienbestand: 0 Stück

User werben:
geworbene User: 0
Herkunft: Bremen

Bewertung: 
1 Bewertung(en) - Durchschnitt: 10,00

Level: 47 [?]
Erfahrungspunkte: 7.132.727
Nächster Level: 7.172.237

39.510 Erfahrungspunkt(e) für den nächsten Levelanstieg


  SpielHölle  
   6 Highscores  


Die xxx letzten Beitraege eines Mit Auf diesen Beitrag antworten Zitatantwort auf diesen Beitrag erstellen Diesen Beitrag editieren/löschen Diesen Beitrag einem Moderator meldenIch möchte mich bedanken       Zum Anfang der Seite springen

Mit diesem kleinen Code-Schnipsel habt ihr die Moeglichkeit mehr als nur einen letzten Beitrag im Profil anzeigen zu lassen.


*********************
Editiere die profile.php

*********************

Suche:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
/* users lastpost */
    $showlastpost 0;
    if ($showlastpostinprofile == && $wbbuserdata['can_enter_board'] == 1) {
        $boardids '';
    
        $permissioncache getPermissions();
    
        $result $db->unbuffered_query("SELECT boardid, password, invisible FROM bb".$n."_boards");
        while ($row $db->fetch_array($result)) {
            if ($row['password'] != '' || $row['invisible'] == 2) continue;
            if (!isset($permissioncache[$row['boardid']]['can_enter_board']) || $permissioncache[$row['boardid']]['can_enter_board'] != 0$boardids .= ",".$row['boardid'];
        }
    
        if ($boardids != '') {
            $lastpost $db->query_first("SELECT p.postid, p.posttime, t.topic, t.boardid, b.title FROM bb".$n."_posts p, bb".$n."_threads t
            LEFT JOIN bb".$n."_boards b ON (t.boardid=b.boardid)
            WHERE p.threadid=t.threadid AND t.boardid IN (0$boardids) AND p.userid = '$userid' AND p.visible=1
            ORDER BY p.posttime DESC"1);
            if ($lastpost['postid']) {
                $lastpostdate formatdate($wbbuserdata['dateformat'], $lastpost['posttime'], 1);
                $lastposttime formatdate($wbbuserdata['timeformat'], $lastpost['posttime']);
    
                $lastpost['topic'] = htmlconverter(textwrap($lastpost['topic']));
                $lastpost['title'] = getlangvar($lastpost['title'], $lang);
                $showlastpost 1;
            }
        }
    }


und ersetze durch:

php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
/* users lastpost */
    $lastpostanzahl 10;
    $lang->items['LANG_MEMBERS_PROFILE_LASTPOST'] = $lang->get("LANG_MEMBERS_PROFILE_LASTPOST", array('$lastpostanzahl' => $lastpostanzahl));
    $showlastpost 0;
    if ($showlastpostinprofile == && $wbbuserdata['can_enter_board'] == 1) {
        $boardids '';
    
        $permissioncache getPermissions();
    
        $result $db->unbuffered_query("SELECT boardid, password, invisible FROM bb".$n."_boards");
        while ($row $db->fetch_array($result)) {
            if ($row['password'] != '' || $row['invisible'] == 2) continue;
            if (!isset($permissioncache[$row['boardid']]['can_enter_board']) || $permissioncache[$row['boardid']]['can_enter_board'] != 0$boardids .= ",".$row['boardid'];
        }
    
        if ($boardids != '') {
            $lastpost_db $db->query("SELECT p.postid, p.posttime, t.topic, t.boardid, b.title FROM bb".$n."_posts p, bb".$n."_threads t
            LEFT JOIN bb".$n."_boards b ON (t.boardid=b.boardid)
            WHERE p.threadid=t.threadid AND t.boardid IN (0$boardids) AND p.userid = '$userid' AND p.visible=1
            ORDER BY p.posttime DESC LIMIT $lastpostanzahl");
            while($lastpost $db->fetch_array($lastpost_db)) {
                if ($lastpost['postid']) {
                    $lastpostdate formatdate($wbbuserdata['dateformat'], $lastpost['posttime'], 1);
                    $lastposttime formatdate($wbbuserdata['timeformat'], $lastpost['posttime']);
        
                    $lastpost['topic'] = htmlconverter(textwrap($lastpost['topic']));
                    $lastpost['title'] = getlangvar($lastpost['title'], $lang);
                    $showlastpost 1;
                    $rowclass=getone($count++,"tablea","tableb");
                    eval("\$profile_lastposts .= \"".$tpl->get("profile_lastposts")."\";");
                }
            }
        }
    }


Erstelle neues Template
profile_lastposts

mit folgendem Inhalt .
code:
1:
2:
3:
4:
5:
<tr>
  <td><span class="smallfont">&raquo; <b><a href="thread.php?postid=$lastpost[postid]{$SID_ARG_2ND}#post$lastpost[postid]">$lastpost[topic]</a></b></span></td>
  <td><span class="smallfont">{$lang->items['LANG_MEMBERS_PROFILE_POSTED_ON']} $lastpostdate <span class="time">$lastposttime</span></td>
  <td><span class="smallfont">{$lang->items['LANG_MEMBERS_PROFILE_FORUM']} <b><a href="board.php?boardid=$lastpost[boardid]{$SID_ARG_2ND}">$lastpost[title]</a></b></span></td>
</tr>

Editiere das bestehende Template
profile

Suche:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<if($showlastpost==1)>
    <then>
     <tr align="left">
      <td><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LASTPOST']}</b></span></td>
      <td><span class="normalfont"><b>&raquo; <a href="thread.php?postid=$lastpost[postid]{$SID_ARG_2ND}#post$lastpost[postid]">$lastpost[topic]</a></b></span><br />
      <span class="smallfont">{$lang->items['LANG_MEMBERS_PROFILE_POSTED_ON']} $lastpostdate <span class="time">$lastposttime</span><br />
      {$lang->items['LANG_MEMBERS_PROFILE_FORUM']} <b><a href="board.php?boardid=$lastpost[boardid]{$SID_ARG_2ND}">$lastpost[title]</a></b></span></td>
     </tr>
    </then>
   </if>

ersetze durch:

code:
1:
2:
3:
4:
5:
6:
7:
8:
<if($showlastpost==1)>
    <then>
     <tr align="left">
      <td valign="top"><span class="normalfont"><b>{$lang->items['LANG_MEMBERS_PROFILE_LASTPOST']}</b></span></td>
      <td><table border="0" width="100%" align="left">$profile_lastposts</table></td>
     </tr>
    </then>
   </if>

AEndere die Sprachvariable
LANG_MEMBERS_PROFILE_LASTPOST

Letzte $lastpostanzahl Beitraege:


__________________

NEW wbb2.de
©2001-2024 HFW™

HaveFunKonsole deine Tausch Börse Start bis auf weiteres Verschoben !!!


Hacks4wbb is ONLINE wir kommen nach 12 Jahren wieder ZURÜCK.

09.03.2023 18:30 omar ist offline E-Mail an omar senden Homepage von omar Beiträge von omar suchen Nehmen Sie omar in Ihre Freundesliste auf
Baumstruktur | Brettstruktur
Gehe zu:
Neues Thema erstellenAntwort erstellen
Hacks4wbb by HFW™ » WBB Bereich » wbb2.3.6 Start » Dokumentationen|Codeschnipsel » [Codeschnipsel] Die xxx letzten Beitraege eines Mit

Counter
Besucher Heute: 8278 Besucher Gestern: 18501 Besucher Gesamt: 7033374 Besucherrekord: 95144 am: 04.05.2024

Impressum


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH
Flag Counter