Pagina 1 van 1
Small shoutbox
Geplaatst: 21 mar 2004, 16:41
door Rico
Ja, daar ben ik weer
mr phpn00b
ik heb nu een shoutbox draaiende, maar nu heb ik een deux probleempjes
plaatje:http://www.rm-design.nl/forum/images/shoutbox.JPG
Die okeknop vind ik iets te laag staan en ik wil een andere achtergrond kleur.
Welke file moet ik daarvoor changen?
ik heb zelf al in de files gekeken

Geplaatst: 21 mar 2004, 17:39
door nelis44
laat die file eens zien dan
Geplaatst: 21 mar 2004, 17:41
door Rico
nelis44 schreef:laat die file eens zien dan
Je bedoelt de shoutbox?
Nee dat zal niet gaan.
Ik ben aan het maken op phpdev(dat is offline)
edit:of bedoel je het php bestand?
Geplaatst: 21 mar 2004, 17:41
door Luuk
De codering bedoelt hij.
Geplaatst: 21 mar 2004, 17:42
door Rico
Luuk schreef:De codering bedoelt hij.
hmm...oke
Er zijn der meerdere:
Shoutbox.php
Shoutbox_body.php Shoutbox_send.php en Shoutbox_view.php
Welke wil je?
Geplaatst: 21 mar 2004, 17:45
door nelis44
doe ma shoutbox.php en shoutbox_body.php
Geplaatst: 21 mar 2004, 17:49
door Rico
shoutbox.php:
Code: Selecteer alles
<?php
/***************************************************************************
* shoutbox.php
* -------------------
* begin : Friday, Jul 12, 2003
* copyright : (C) 2003 Przemo ( http://www.przemo.org )
* email : przemo@przemo.org
* version : 1.4
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
?>
<frameset rows="77%, 13%" cols="*" scrolling=NO noresize framespacing=0 frameborder=NO border="0">
<frame src="<?php echo append_sid("shoutbox_view.php"); ?>" name="ekran" noresize marginwidth="0" marginheight="0">
<frame src="<?php echo append_sid("shoutbox_send.php"); ?>" scrolling="no" name="sender" noresize marginwidth="0" marginheight="0">
</frameset>
</frameset>
<noframes>
<body>Your browser does not support this feature!!!</body>
</noframes>
</html>
Shoutbox_body.php
Code: Selecteer alles
<?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)
);
?>
Geplaatst: 21 mar 2004, 17:51
door Luuk
Daar heb je nix aan denk ik, ik denk eerder dat we Shoutbox_send.php moeten hebben (want het probleem zit bij de verzend knop)
Geplaatst: 21 mar 2004, 17:53
door Rico
Luuk schreef:Daar heb je nix aan denk ik, ik denk eerder dat we Shoutbox_send.php moeten hebben (want het probleem zit bij de verzend knop)

en de achtergrond kleur
Maar goed komt ie
Code: Selecteer alles
<?php
/***************************************************************************
* shoutbox_send.php
* -------------------
* begin : Friday, Jul 12, 2003
* copyright : (C) 2003 Przemo ( http://www.przemo.org )
* email : przemo@przemo.org
* version : 1.4
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$hide_txt = '<a href="' . append_sid("shoutbox_send.".$phpEx) . '?mode=hide">' . $lang['sb_hide'] . '</a>';
if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
{
$mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
}
if ( $mode == "hide" )
{
@setcookie('shoutbox',off , (time()+3600*9000), $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
$hide_txt = $lang['sb_hide_done'];
}
$template->set_filenames(array(
'body' => 'shoutbox_send_body.tpl')
);
$template->assign_vars(array(
'S_CONTENT_ENCODING' => $lang['ENCODING'],
'L_SEND' => $lang['Submit'],
'L_GG_MES' => $lang['gg_mes'],
'NICK' => $userdata['username'],
'MAXLENGHT' => $shoutbox_config['text_lenght'],
'SB_USER_ID' => $userdata['user_id'],
'SB_HIDE' => $hide_txt,
'SHOUTBOX_ACTION' => append_sid('shoutbox_view.'.$phpEx))
);
$template->pparse('body');
?>
Geplaatst: 21 mar 2004, 17:55
door Luuk
$template->set_filenames(array(
'body' => 'shoutbox_send_body.tpl')
Doe die maar (d8 wel dat die erbij zat, maar je had dat er niet bijgezegd bij het rijtje)
Geplaatst: 21 mar 2004, 17:57
door Rico
Luuk schreef:$template->set_filenames(array(
'body' => 'shoutbox_send_body.tpl')
Doe die maar (d8 wel dat die erbij zat, maar je had dat er niet bijgezegd bij het rijtje)
Sorry mijn fout

shoutbox_view_body.tpl is er ook nog bij
Code: Selecteer alles
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" />
<script language="JavaScript">
<!--
function submitonce()
{
document.post.msg.value = document.post.message.value;
document.post.message.value = "";
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4" />
<table class="formarea" width="100%" cellpadding="0" cellspacing="0">
<form name="post" action="{SHOUTBOX_ACTION}" method="POST" target="ekran" autocomplete=off onsubmit="submitonce()">
<tr>
<td class="row1" align="center" valign="bottom" nowrap><span class="gensmall">
<input type="hidden" name="name" value="{NICK}">
<input type="hidden" name="sb_user_id" value="{SB_USER_ID}">
{L_GG_MES}: <input type="text" name="message" style="height:15px" size="60" maxlength="{MAXLENGHT}" " value="" class="post">
<input type="hidden" name="msg" value="">
<input type="hidden" name="mode" value="submit">
<input type="submit" name="submit_button" value="{L_SEND}" style="font-size:9px; height:16px;" class="button"></span>
</td>
<td class="row1" align="right" nowrap><span class="gensmall">{SB_HIDE}</span></td>
</form>
</tr>
</table>
</body>
</html>
Geplaatst: 21 mar 2004, 18:00
door Luuk
Dit is al beter:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" />
<script language="JavaScript">
<!--
function submitonce()
{
document.post.msg.value = document.post.message.value;
document.post.message.value = "";
}
//-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4" />
<table class="formarea" width="100%" cellpadding="0" cellspacing="0">
<form name="post" action="{SHOUTBOX_ACTION}" method="POST" target="ekran" autocomplete=off onsubmit="submitonce()">
<tr>
<td class="row1" align="center" valign="bottom" nowrap><span class="gensmall">
<input type="hidden" name="name" value="{NICK}">
<input type="hidden" name="sb_user_id" value="{SB_USER_ID}">
{L_GG_MES}: <input type="text" name="message" style="height:20px" size="60" maxlength="{MAXLENGHT}" " value="" class="post">
<input type="hidden" name="msg" value="">
<input type="hidden" name="mode" value="submit">
<input type="submit" name="submit_button" value="{L_SEND}" style="font-size:9px; height:20px;" class="button"></span>
</td>
<td class="row1" align="right" nowrap><span class="gensmall">{SB_HIDE}</span></td>
</form>
</tr>
</table>
</body>
</html>
Je kan het zelf nog meer aanpassen door bij het rode de height aan te passen.
Geplaatst: 21 mar 2004, 18:02
door Rico
Oke, bedankt, maar hoe de Achtergrond kleur?
Geplaatst: 21 mar 2004, 18:04
door Luuk
Vervang dit met het bodygedeelte wat er nu staat.
Code: Selecteer alles
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" />