Small Shoutbox
Verfasst: 04.03.2005 17:37
Ich hab die Small Shoutbox Mod installiert:
http://phpbbhacks.com/download/1595
Nun will ich die Frabe der Table wo die Shoutbox ist verändern.
Ich denke das muss ich in der /shoutbox_body.php
Um die größe schonmal festzulegen und um die Box "mittig" zu machen, habe ich folgendes gemacht:
Wie kann ich dort wo "ShoutBox" steht es so einstellen, dass die Table eine andere farbe hat (also der hintergrund von "Shoutbox"). Und wie kann ich die Schriftart/farbe von "ShoutBox" verändern?
http://phpbbhacks.com/download/1595
Nun will ich die Frabe der Table wo die Shoutbox ist verändern.
Ich denke das muss ich in der /shoutbox_body.php
Code: Alles auswählen
<?php
if($HTTP_COOKIE_VARS['shoutbox'] == "off")
{
$shout_size = 'width="1" height="1" border="0"';
$shoutbox_title = '<a href="shoutbox_view.php" class="mainmenu" title="' . $lang['All_Messages'] . '">ShoutBox</a> - </span><span class="gensmall"><a href="' . append_sid('shoutbox_view.'.$phpEx) . '?mode=show" class="mainmenu">' . $lang['sb_show'] . '</a></span>';
}
else
{
$shout_size = 'width="' . $shoutbox_config['shout_width'] . '" height="' . $shoutbox_config['shout_height'] . '" border="2"';
$shoutbox_title = '<a href="shoutbox_view.php" class="mainmenu" title="' . $lang['All_Messages'] . '">ShoutBox</a>';
}
$shoutbox_body = '<br>
<table width="' . $shoutbox_config['shout_width'] . '" align="center"cellpadding="3" cellspacing="1" border="0" class="forumline">
<td class="catHead" align="center" height="25"><span class="cattitle">' . $shoutbox_title . '</span></td>
<tr>
<td class="row1" align="center" valign="middle" rowspan="4"><iframe bgcolor="#000033" src="shoutbox.php" ' . $shout_size . '></iframe></td>
</tr>
</table>';
$template->assign_vars(array(
'SHOUTBOX_BODY' => $shoutbox_body)
);
?>
Code: Alles auswählen
<?php
if($HTTP_COOKIE_VARS['shoutbox'] == "off")
{
$shout_size = 'width="1" height="1" border="0"';
$shoutbox_title = '<a href="shoutbox_view.php" class="mainmenu" title="' . $lang['All_Messages'] . '">ShoutBox</a> -
<span class="gensmall"><a href="' . append_sid('shoutbox_view.'.$phpEx) . '?mode=show" class="mainmenu">' . $lang['sb_show'] . '</a></span>';
}
else
{
$shout_size = 'width="' . $shoutbox_config['shout_width'] . '" height="' . $shoutbox_config['shout_height'] . '" border="2"';
$shoutbox_title = '<a href="shoutbox_view.php" class="mainmenu" title="' . $lang['All_Messages'] . '">ShoutBox</a>';
}
$shoutbox_body = '<br>
<table width="190" cellpadding="2" cellspacing="0" border="0" class="forumline">
<td class="catHead" align="center" height="25"><span class="cattitle">' . $shoutbox_title . '</span></td>
<tr>
<td class="row1" align="center" valign="middle" rowspan="4"><iframe bgcolor="#000033" src="shoutbox.php" ' . $shout_size . '></iframe></td>
</tr>
</table>';
$template->assign_vars(array(
'SHOUTBOX_BODY' => $shoutbox_body)
);
?>
Wie kann ich dort wo "ShoutBox" steht es so einstellen, dass die Table eine andere farbe hat (also der hintergrund von "Shoutbox"). Und wie kann ich die Schriftart/farbe von "ShoutBox" verändern?