eingebaut gab ich das so:
Suche in der /admin/funktions.php
PHP-Code:
if ($post['receivepm'] and $enablepms==1) {
eval("\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
} else {
$post[pmlink] = "";
}
und füge darunter ein:
PHP-Code:
if ($post['guestbookvisible']==1 and $yesgb==1) {
eval("\$post[gb] = \"".gettemplate("postbit_gb")."\";");
} else {
$post[gb] = "";
}
Suche in der /showthread.php
im Abschnitt:
PHP-Code:
if ($action=="showpost") {
nach
PHP-Code:
$templatesused = postbit_search,postbit_buddy,
und füge dahinter direkt hinter $templatesused = 'postbit_search,postbit_buddy,
ein
Erstelle nun ein Template postbit_gb mit folgendem Inhalt:
PHP-Code:
<a href='guestbook.php?s=$session[sessionhash]&action=guestbookall&userid=$userinfo[userid]' target='_blank' onClick="window.open('guestbook.php?s=$session[sessionhash]&action=guestbookall&userid=$userinfo[userid]','Gästebuch','width=500,height=500,resizable=yes,scrollbars=yes'); return false;"><img src="{imagesfolder}/gb.gif" border="0" alt="Schau Dir das Gästebuch von $userinfo[username] an."></a>
und nun suche im Template postbit nach:
PHP-Code:
$post[pmlink] $post[useremail] $post[homepage]
und füge davor ein:
Nun musst du nur noch ein Grafik für das Gästebuch erstellen und schon sollte der Link zum GB aktiv sein sollte der User das Gästebuch aktiv haben.
Lesezeichen