wbb2 shoutbox installation

Dieses Thema im Forum "Webentwicklung" wurde erstellt von Buzzer, 28. Oktober 2007 .

  1. 28. Oktober 2007
    Hi,

    in der installation der Shoutbox steht:

    Code:
    Dann im ACP=>Templates bearbeiten=>
    
    öffne das Template index:
    (wenn Ihr mehrere Styles verwendet, natürlich in allen die index.tpl anpasssen)
    
    vor
    ------------------
    <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
     <tr>
     <td class="tabletitle"><span class="smallfont">&nbsp;</span></td>
     <td class="tabletitle" style="width:<if($hide_modcell==0)><then>80</then><else>100</else></if>%" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BOARDS']}</b></span></td>
     <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_POSTS']}</b></span></td>
     <td class="tabletitle" align="center"><span class="smallfont"><b>{$lang->items['LANG_START_THREADS']}</b></span></td>
    
    -------------------
    
    diesen Code einfügen
    --------------------
    $shoutbox
    --------------------
    Mein index template sieht aber anders aus dort gibt es so eine stelle nicht.

    Code:
    <?xml version="1.0" encoding="{$lang->items['LANG_GLOBAL_ENCODING']}"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang->items['LANG_GLOBAL_DIRECTION']}" lang="{$lang->items['LANG_GLOBAL_LANGCODE']}" xml:lang="{$lang->items['LANG_GLOBAL_LANGCODE']}">
    <head>
    <title>$master_board_name | {$lang->items['LANG_START_TITLE']}</title>
    $headinclude
    </head>
    
    <body>
     $header
     <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
     <td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" /></td>
     <td width="100%" background="{$style['imagefolder']}/obenmitte.gif"></td>
     <td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
     <if($wbbuserdata['userid']==0)>
     <then>
     <tr>
     <td class="tablea" align="left"><span class="normalfont"><b>{$lang->items['LANG_START_WELCOME_TITLE']}</b></span></td>
     </tr>
     <tr>
     <td class="tableb" align="left" style="text-align: justify"><span class="smallfont">{$lang->items['LANG_START_WELCOME']}</span></td>
     </tr>
     </then>
    
     <else>
     <tr>
     <td class="tablea"><table style="width:100%" cellspacing="0" cellpadding="0" border="0">
     <tr class="tablea_fc">
     <td align="left"><span class="smallfont">{$lang->items['LANG_START_WELCOMEBACK']} <b>$usercbar_username</b> <a href="logout.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOGOUT']}</a><br /><b><a href="search.php?action=new{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWPOSTS']} $lastvisitdate <span class="time">$lastvisittime</span>.</span></td>
     <td align="right"><span class="smallfont"><span id="MicrosoftUhr" class="Uhr"></span>
    <span id="NetscapeUhr" ></span>
    
    <script type="text/javascript">
    <!--
    window.setTimeout("ZeitAnzeigen()",1000);
    Wochentagname =
     new Array("Heute ist Sonntag","Heute ist Montag","Heute ist Dienstag","Heute ist Mittwoch","Heute ist Donnerstag","Heute istFreitag","Heute istSamstag");
    
    
    function ZeitAnzeigen()
    {
     var Jetzt = new Date(); var Tag = Jetzt.getDate();
     var Monat = Jetzt.getMonth() + 1; 
    var Jahr = Jetzt.getYear();
    if (Jahr< 2000) Jahr+=1900
     var Stunden = Jetzt.getHours(); var Minuten = Jetzt.getMinutes();
     var Sekunden = Jetzt.getSeconds(); var WoTag = Jetzt.getDay();
     var Vortag = ((Tag < 10) ? "0" : "");
     var Vormon = ((Monat < 10) ? ".0" : ".");
     var Vorstd = ((Stunden < 10) ? "0" : "");
     var Vormin = ((Minuten < 10) ? ":0" : ":");
     var Vorsek = ((Sekunden < 10) ? ":0" : ":");
     var Datum = Vortag + Tag + Vormon + Monat + "." + Jahr;
     var Uhrzeit = Vorstd + Stunden + Vormin + Minuten + Vorsek + Sekunden;
    
     var Gesamt = Wochentagname[WoTag] + ', ' + Datum + ", " + '<span class="time">' + Uhrzeit + '</span>' + " Uhr. ";
    
     if(document.all)
     document.all.MicrosoftUhr.innerHTML = Gesamt;
     else if(document.layers)
     {
     document.NetscapeUhr.document.open();
     Gesamt = '<span class="Uhr")>' + Gesamt + '</span>';
     document.NetscapeUhr.document.write(Gesamt);
     document.NetscapeUhr.document.close();
     }
     window.setTimeout("ZeitAnzeigen()",1000);
    }
    // -->
    </script>
    <br />{$lang->items['LANG_START_TIMEZONE']}</span></td>
     </tr>
     </table>
    </td>
     </tr>
     </else>
     </if>
    
     $boardbit
     </table>
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/untenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <br />
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/obenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
     <if($showuseronline==1)>
     <then>
     
     <tr>
     <td class="tabletitle" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>" align="left"><span class="smallfont"><b><a href="wiw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_SHOWUSERONLINE']}</a></b></span></td> 
     </tr>
     <tr>
     <td rowspan="2" class="tableb" align="center" style="width:18"><img src="{$style['imagefolder']}/online.gif" alt="" title="" /></td>
     <td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_USERONLINE']}</span></td>
     </tr>
     <tr>
     <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><if($useronline=="")><then>&nbsp;</then></if>$useronline</span></td>
     </tr> 
     
     </then>
     </if>
     
     
     <if($showpmonindex==1 && $wbbuserdata['userid']!=0 && $wbbuserdata['can_use_pms']==1 && $wbbuserdata['receivepm']==1)>
     <then>
     <tr>
     <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_PM']}</b></span></td>
     </tr>
     <tr>
     <td align="center" class="tableb"><if($countnew>0)>
     <then><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEWPM']}" title="{$lang->items['LANG_START_NEWPM']}" /></then>
     <else><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEWPM']}" title="{$lang->items['LANG_START_NONEWPM']}" /></else>
     </if></td>
     <td align="left" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea"><span class="smallfont"><b><a href="pms.php{$SID_ARG_1ST}">{$lang->items['LANG_START_PMIN']}</a></b><br />{$lang->items['LANG_START_PMS']}</span></td>
     </tr> 
     
     </then>
     </if>
     
     <if(isset($birthdaybit) || isset($eventbit))>
     <then>
     <tr>
     <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_SHOWEVENTS']}</b></span></td>
     </tr>
     
     <if(isset($birthdaybit))>
     <then>
     <tr>
     <td class="tableb" align="center" style="width:18"><img src="{$style['imagefolder']}/birthday.gif" alt="" title="" border="0" /></td>
     <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_BIRTHDAY']}</b><br />$birthdaybit</span></td>
     </tr>
     </then>
     </if>
     
     <if(isset($eventbit))>
     <then>
     <tr>
     <td class="tableb" align="center" style="width:18"><img src="{$style['imagefolder']}/events.gif" alt="" title="" border="0" /></td>
     <td class="tablea" colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_TODAYEVENT']}</b><br />$eventbit</span></td>
     </tr>
     </then>
     </if> 
     </then>
     </if>
     
     <if($showstats==1)>
     <then>
     <tr>
     <td class="tabletitle" align="left" colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"><span class="smallfont"><b>{$lang->items['LANG_START_STATISTIC']}</b></span></td> 
     </tr>
     <tr>
     <td class="tableb" align="center" style="width:18"><img src="{$style['imagefolder']}/stats.gif" alt="" border="0" /></td>
     <td colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>" class="tablea" align="left"><span class="smallfont">{$lang->items['LANG_START_STATISTIC_MEMBERS']} $stats[usercount] | {$lang->items['LANG_START_STATISTIC_THREADS']} $stats[threadcount] | {$lang->items['LANG_START_STATISTIC_POSTS']} $stats[postcount] ({$lang->items['LANG_START_STATISTIC_AVERAGE']} $postperday {$lang->items['LANG_START_STATISTIC_POSTPERDAY']})<br />
     {$lang->items['LANG_START_STATISTIC_NEWESTMEMBER']} <a href="profile.php?userid=$stats[lastuserid]{$SID_ARG_2ND}">$stats[username]</a>.</span></td>
     </tr>
     </then>
     </if>
     
    </table>
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/untenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <if($wbbuserdata['userid']==0)>
     <then>
     <br />
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/obenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <a name="login" id="login"></a>
     <if($allowloginencryption==1)><then>
     <script type="text/javascript" src="js/sha1.js"></script>
     <script type="text/javascript" src="js/crypt.js"></script>
     </then></if>
     <form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>>
     <input type="hidden" name="send" value="send" />
     <input type="hidden" name="sid" value="$session[hash]" />
     <if($allowloginencryption==1)><then>
     <input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />
     <input type="hidden" name="crypted" value="false" /></then></if>
     <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
     <tr>
     <td class="tabletitle" align="left"><span class="smallfont"><b>{$lang->items['LANG_START_LOGIN']}</b></span></td> 
     </tr>
     <tr>
     <td class="tableb"><table cellpadding="0" cellspacing="5" align="center" class="tableb_fc">
     <tr>
     <td><span class="smallfont">{$lang->items['LANG_START_USERNAME']}</span></td>
     <td><span class="smallfont"><input type="text" name="l_username" maxlength="50" size="20" class="input" tabindex="1" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
     <td><span class="smallfont">{$lang->items['LANG_START_PASSWORD']} (<a href="forgotpw.php{$SID_ARG_1ST}">{$lang->items['LANG_START_LOSTPW']}</a>):</span></td>
     <td><span class="smallfont"><input type="password" name="l_password" maxlength="30" size="20" class="input" tabindex="2" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
     <if($allowloginencryption==1)><then>
     <td><span class="smallfont"><label for="checkbox1">{$lang->items['LANG_GLOBAL_ENCRYPT_TRANSFER']}</label></span></td>
     <td><span class="smallfont"><input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" />&nbsp;&nbsp;&nbsp;&nbsp;</span></td></then></if>
     <td><input type="submit" value="{$lang->items['LANG_START_LOGIN']}" class="input" tabindex="3" /></td>
     </tr>
     </table></td>
     </tr>
     </table></form>
     <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
     <td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" /></td>
     <td width="100%" background="{$style['imagefolder']}/untenmitte.gif"></td>
     <td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" /></td>
    </tr></table> 
     <if($allowloginencryption==1)><then>
     <script type="text/javascript">
     <!--
     activate_loginencryption(document.loginform);
     //-->
     </script></then></if>
     </then>
    </if>
    
    <br />
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/obenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/obenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/obenrechts.gif" alt="" title="" /></td>
    </tr></table>
    <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" class="tableinborder" align="center" style="width:{$style['tableinwidth']}">
     <tr>
     <td class="tableb" align="center"><span class="smallfont"><a href="search.php?action=24h{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_THREADS']}</a> | <a href="search.php?action=polls{$SID_ARG_2ND}">{$lang->items['LANG_START_CURRENT_POLLS']}</a> | <a href="markread.php{$SID_ARG_1ST}">{$lang->items['LANG_START_MARKREAD_ALL']}</a><if($show_archive == 1)><then> | <b><a href="archive/index.html">{$lang->items['LANG_START_ARCHIVE']}</a></b></then></if></span></td>
     </tr>
     <tr>
     <td class="tablea" align="center">
     <table>
     <tr align="center">
     <td><img src="{$style['imagefolder']}/on.gif" alt="{$lang->items['LANG_START_NEW_POSTS']}" title="{$lang->items['LANG_START_NEW_POSTS']}" border="0" /></td>
     <td><span class="smallfont">{$lang->items['LANG_START_NEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
     <td><img src="{$style['imagefolder']}/off.gif" alt="{$lang->items['LANG_START_NONEW_POSTS']}" title="{$lang->items['LANG_START_NONEW_POSTS']}" border="0" /></td>
     <td><span class="smallfont">{$lang->items['LANG_START_NONEW_POSTS']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
     <td><img src="{$style['imagefolder']}/offclosed.gif" alt="{$lang->items['LANG_START_BOARD_CLOSED']}" title="{$lang->items['LANG_START_BOARD_CLOSED']}" border="0" /></td>
     <td><span class="smallfont">{$lang->items['LANG_START_BOARD_CLOSED']}&nbsp;&nbsp;&nbsp;&nbsp;</span></td>
     <td><img src="{$style['imagefolder']}/link.gif" alt="{$lang->items['LANG_START_BOARD_LINK']}" title="{$lang->items['LANG_START_BOARD_LINK']}" border="0" /></td>
     <td><span class="smallfont">{$lang->items['LANG_START_BOARD_LINK']}</span></td>
     </tr>
    </table>
     </td>
     </tr>
    </table>
    <table cellspacing="0" cellpadding="0" border="0" style="width:{$style['tableinwidth']}"><tr>
    <td align="left"><img src="{$style['imagefolder']}/untenlinks.gif" alt="" title="" /></td>
    <td width="100%" background="{$style['imagefolder']}/untenmitte.gif"></td>
    <td align="right"><img src="{$style['imagefolder']}/untenrechts.gif" alt="" title="" /></td>
    </tr></table>
    $footer
    </body>
    </html>
    Vermutlich weil ich einen anderen Style benutze.

    Wo muss ich jetzt die eine zeile einfügen um die Shoutbox oben auf der Seite zu sehen?

    für jede hilfe gibbet Bewertung DANKE
     
  2. 28. Oktober 2007
    AW: wbb2 shoutbox installation

    such dir doch einfach selber aus wo das hin soll
    z.B. über
    <table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableinborder">
    <if($showuseronline==1)>
     
  3. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.