Hm, die Shoutbox scheint bei dir nicht zu funktionieren auf der Portalseite. Ich habs mir gerade angeschaut. Ich kenn den Style nicht den du benutzt - ich vermute, dass die Funktion getShoutBoxContent () nicht richtig referenziert ist.
In der functions.php muss doch nach
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
das hier eingefügt werden:
Code: Select all
'SHOUTBOX' => getShoutBoxContent(),
Hast du das auch?
Nun zurück den Ordner templates gibt es in der tat so nicht. Ich meinte ./styles/<dein style>/template/portal/block

Und ich meinte den Code, den ich gepostet hab. Den Code den du im ACP/Mods -Eigener Block Mitte eingegeben hast. Den hab ich in eine extra Datei namens shoutbox_portal.html eingefügt. Diese Datei dann in den Ordner ./styles/<dein style>/template/portal/block hinterlegt. Und dann die Datei additional_blocks_center.html entsprechen (wie gepostet) angepasst.
Für die Shoutbox im Forums-Index hab ich folgendes gemacht (ähnliche Vorgehensweise). Ich hab eine Datei namens shoutbox_index_body.html unter ./styles/<dein style>/template/ gespeichert. Die Datei hat folgenden Inhalt:
Code: Select all
<br clear="all" />
<div id="shoutbox_h" style="display:none;">
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;" src=
"{T_THEME_PATH}/images/icon_maximize.gif" onclick=
"javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');" alt="Shoutbox" />
<div class="tbl-title">
<h4>Shoutbox</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="row1"><span class="gensmall"> </span>
</td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">
</div>
</div>
</div>
</div>
</div>
<br clear="all" />
<div id="shoutbox_nh">
<script type="text/javascript">
//<![CDATA[
<!--
tmp = 'shoutbox';
if(GetCookie(tmp) == '2')
{
ShowHide('shoutbox_nh', 'shoutbox_h', 'shoutbox_nh');
}
//-->
//]]>
</script>
<div>
<div class="tbl-h-l">
<div class="tbl-h-r">
<div class="tbl-h-c">
<img style="padding-top:9px;padding-right:6px;float:right;cursor:pointer;" src=
"{T_THEME_PATH}/images/icon_minimize.gif" onclick=
"javascript:ShowHide('shoutbox_nh','shoutbox_h','shoutbox_nh');" alt="Shoutbox" />
<div class="tbl-title">
<h4>Shoutbox</h4>
</div>
</div>
</div>
</div>
<table class="tablebg" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<!-- IF not S_IS_BOT -->
<div style="font-size:1.2em;">
{SHOUTBOX}
</div>
<!-- ELSE -->
<div id="ajaxChatCopyright">
<a href="https://blueimp.net/ajax/">AJAX Chat</a> © <a href="https://blueimp.net">blueimp.net</a>
</div>
<!-- ENDIF -->
</td>
</tr>
<tr>
<td class="cat-bottom"> </td>
</tr>
</table>
<div class="tbl-f-l">
<div class="tbl-f-r">
<div class="tbl-f-c">
</div>
</div>
</div>
</div>
</div>
<br clear="all" />
Um das dann in den Forums Index einzufügen machst du folgendes:
Öffne ./styles/<dein Style>/template/index_body.html
Finde:
Code: Select all
<!-- INCLUDE breadcrumbs_footer.html -->
Davor füge ein:
Code: Select all
<!-- INCLUDE shoutbox_index_body.html -->
Damit sollte dann die Shoutbox im Forums-Index dargestellt werden. Die Shoutbox ist somit nicht auf allen Forenseiten sichtbar - sondern nur auf der Hauptforumsseite.
Das sollte es ein. Ich hoffe das funzt so bei dir auch. Wenn nicht meld dich einfach
Grüße
Huor