Seite 1 von 1

Small Shoutbox

Verfasst: 04.03.2005 17:37
von nasenkopf
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

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)
);
?>
Um die größe schonmal festzulegen und um die Box "mittig" zu machen, habe ich folgendes gemacht:

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?

Verfasst: 04.03.2005 17:42
von nasenkopf
nochwas: Nun wurde schon ca. 30 mal in der shoutbox geshoutet... und nun kann niemand mehr shouten :-?
Wieso das denn? Also man klickt auf nachricht absenden, aber sie wird einfach nicht angezeigt...? warum?

Verfasst: 05.03.2005 14:56
von nasenkopf
ok problem gelöst :D


Andere Frage: Ich hab Modrewrite aktiviert...

Wenn ich auf meineseite.de gehe sieht man die ShoutBox.
Aber wenn ich auf meineseite.de/index.html bin verschwindet Die Shoutbox immer ..??

Wieso das denn?

Also wegen dem Modrewrite werden die links ja zu html links.