MyBB.de Forum
Shoutboxtemplates änderungen - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Theme-Diskussionen (https://www.mybb.de/forum/forum-84.html)
+--- Thema: Shoutboxtemplates änderungen (/thread-3533.html)



Shoutboxtemplates änderungen - godwin - 17.10.2006

Find ich schöner:
Templates-Global-Shoutbox:
PHP-Code:
<html>
<
head>
    <
title>
        {
$mybb->settings['bbname']} - {$lang->shoutbox
    </
title>
    
    {
$headerinclude}
    {
$refresh}
</
head>

<
body>

{
$add_shout}
    
    
<
table align="left" border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder" width="100%">
    <
tr>
        <
td>
            {
$shouts}
        </
td>
    </
tr>
</
table>

</
body>
</
html

templates-global-shoutbox_add_shout:
PHP-Code:
<br />
<
form method="post" action="shoutbox.php">
<
input type="hidden" name="action" value="do_add">

            {
$lang->shout
            <
input type="text" name="message" size="60" maxlength="{$mybb->settings['sb_max_length']}"
            <
input type="submit" name="submit" value="{$lang->add_shout}">
            <
br />
            <
span class="smalltext"><a href="shoutbox.php">
                {
$lang->refresh}
                </
a>
            </
span>
</
form

und für die indexpage:
bei templates-"DEIN TEMPLATE"-index page templates-index
unter
<body>
{$header}
{$forums}
das einfügen:
PHP-Code:
<table border="0" cellspacing="{$theme['borderwidth']}cellpadding="{$theme['tablespace']}class="tborder" width="98%">
    <
tbody style="$collapsed[shoutbox_e]id="shoutbox_e">
        <
tr>
            <
td class="trow1">
                <
iframe scrolling="no" src="shoutbox.php" width="100%" height="300" frameborder="0" name="Shoutbox" marginwidth="0" marginheight="0" align="top"></iframe>
            </
td>
        </
tr>
    </
tbody>
</
table>
<
br /> 

Sieht dann so aus: