i personally found a solution at the two problems, but i'm new (3 weeks) to phpbb so maybe is not correct:daddy wrote:...is it possible to set the date near the user different from the acp one? How?
and then using this change:
find
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbody">' + liTime + '</i>';
Replace with
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbody"><font size=1>' + liTime + '</font></i>';
the font isn't small as i'd like, is there another part of the code to change? Thanks
i read everything
Code: Select all
/* Date shoutbox */
.postbody2{font-size:9px;line-height:125%}
Code: Select all
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbody">' + liTime + '</i>';
Code: Select all
$time = utf8_encode(create_date($board_config['default_dateformat'], $row[$x]['shout_time'], $board_config['shout_time']));
Code: Select all
$board_config['default_dateformat']
Code: Select all
'D H:i'
A probem i didn't find solution after hundreds of tryings was to put "who is chatting" near the shoutbox that i have in the index page, ...
Hi Nosva we would love to help you but you need to be a bit more specific about what you want to do. Do you already have a forum up and running on the net? If yes, you can follow the phpbb documentation which explains how to upload files and add modifications.nosva wrote:hello this may sound but im makin my first evr forum and im having trouble with the shout box...... i can get the page to work propperly offline but this is the stupid bit........ how do i upload the new script the the net... feeling really stupid hereany help would be much appretiated
thank you
Me too! Thanks for posting a list of your changes to this mod. I would love to know how you managed to put your sound in. I have seen the previous post about adding sound, but it's way too bulky for me.ONE_HUMAN wrote:I love this Ajax Shoutbox.
Sorry I didn't reply sooner. Did the previous post about adding sound involve using SoundManager? There is an AJAX Chat, which I've also added to my page, and I used SoundManager to add sound to that, and it was rather easy. Not sure how easy it would be to use with AJAX Shoutbox though.mgoi wrote:Me too! Thanks for posting a list of your changes to this mod. I would love to know how you managed to put your sound in. I have seen the previous post about adding sound, but it's way too bulky for me.
M
Code: Select all
function InsertSound()
{
document.write('<embed type="audio/x-wav" src="templates/fisubsilver/balloon.mp3" height=0 width=0 hidden="true" autostart="true" loop="false">');
}
Code: Select all
<script type="text/javascript" src="templates/InsertSound.js"></script>
Code: Select all
<!-- BEGIN view_shoutbox_js -->
<script type="text/javascript" src="templates/fat.js"></script>
<script type="text/javascript" src="templates/InsertSound.js"></script>
Code: Select all
// Append a text node to the cell
newCell.innerHTML = '<b class="postbody">' + liName + '</b>';
<!-- BEGIN user_is_admin -->
newCell.innerHTML = newCell.innerHTML+ '<a href="#" onclick="removeShout(\'outputList\', this.parentNode.parentNode.rowIndex, '+liId+')" class="postlink postbody">[ {L_DELETE} ]</a>';
<!-- END user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbody">' + liTime + '</i>';
newCell2.innerHTML = '<span class="postbody">' + liText + '</span>';
Code: Select all
// Append a text node to the cell
newCell.innerHTML = '<b class="postbodyshout">' + liName + '</b>';
<!-- BEGIN user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<a href="#" onclick="removeShout(\'outputList\', this.parentNode.parentNode.rowIndex, '+liId+')" class="postlink postbodyshout"> [D]</a>';
<!-- END user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbodyshoutdate" style="color:#FF8000">' + liTime + '</i>';
// Audio effect
if(last_id != -1)
{
newCell2.innerHTML = '<embed type="audio/x-wav" src="templates/fisubsilver/balloon.mp3" height=0 width=0 hidden="true" autostart="true" loop="false">' + '<span class="postbodyshout">' + liText + '</span>';
}
else
{
newCell2.innerHTML = '<span class="postbodyshout">' + liText + '</span>';
}
Code: Select all
// Append a text node to the cell
newCell.innerHTML = '<b class="postbody">' + liName + '</b>';
<!-- BEGIN user_is_admin -->
newCell.innerHTML = newCell.innerHTML+ '<a href="#" onclick="removeShout(\'outputList\', this.parentNode.parentNode.rowIndex, '+liId+')" class="postlink postbody">[ {L_DELETE} ]</a>';
<!-- END user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbody">' + liTime + '</i>';
newCell2.innerHTML = '<span class="postbody">' + liText + '</span>';
Code: Select all
// Append a text node to the cell
newCell.innerHTML = '<b class="postbodyshout">' + liName + '</b>';
<!-- BEGIN user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<a href="#" onclick="removeShout(\'outputList\', this.parentNode.parentNode.rowIndex, '+liId+')" class="postlink postbodyshout"> [D]</a>';
<!-- END user_is_admin -->
newCell.innerHTML = newCell.innerHTML + '<br /><i class="postbodyshoutdate" style="color:#FF8000">' + liTime + '</i>';
// Audio effect
if(last_id != -1)
{
newCell2.innerHTML = '<span class="hideFromScreen" style="display:none">' + 'InsertSound()' + '</span>' + '<bgsound src="templates/fisubsilver/balloon.mp3" height=0 width=0 hidden="true" autostart="true" loop="false">' + '<span class="postbodyshout">' + liText + '</span>';
}
else
{
newCell2.innerHTML = '<span class="postbodyshout">' + liText + '</span>';
}
Code: Select all
//
// Load templates
//
$template->set_filenames(array(
'shoutbox' => 'shoutbox_body.tpl',
'shoutbox_js' => 'shoutbox_js.tpl'));
Code: Select all
//
// Load templates
//
$template->set_filenames(array(
'shoutbox' => 'shoutbox_bodyFF.tpl',
'shoutbox_js' => 'shoutbox_jsFF.tpl'));
Code: Select all
//
// Load templates
//
$template->set_filenames(array(
'shoutbox' => 'shoutbox_body.tpl',
'shoutbox_js' => 'shoutbox_js.tpl'));
Code: Select all
//
// Load templates
//
$template->set_filenames(array(
'shoutbox' => 'shoutbox_bodyIE.tpl',
'shoutbox_js' => 'shoutbox_jsIE.tpl'));
Code: Select all
/* Used for Ajax Shoutbox
.postbodyshout{font-size:13px}
.postbodyshoutdate{font-size:10px}
Code: Select all
<table width="100%" cellpadding="3" cellspacing="3">
<tr>
<td width="100%" align="center">
<div>
<!--[if IE]>
<div id="shout"><a onclick="window.open('shoutboxIE.php', '_blank', 'HEIGHT=435,WIDTH=710,resizable=yes,scrollbars=no');return false;" target="_blank" class="nav" style="color:#006699" onmouseover="this.style.color='#dd6900'; this.style.cursor='pointer'" onmouseout="this.style.color='#006699'">[ Shoutbox With Sound ]</a><span style="color:#dd6900"> • </span><a href="chat.php" class="nav">[ Shoutbox Without Sound ]</a><br /></div>
<![endif]-->
<!--[if !IE]>-->
<div id="shout"><a onclick="window.open('shoutboxFF.php', '_blank', 'HEIGHT=435,WIDTH=710,resizable=yes,scrollbars=no');return false;" target="_blank" class="nav" style="color:#006699" onmouseover="this.style.color='#dd6900'; this.style.cursor='pointer'" onmouseout="this.style.color='#006699'">[ Shoutbox With Sound ]</a><span style="color:#dd6900"> • </span><a href="chat.php" class="nav">[ Shoutbox Without Sound ]</a><br /></div>
<!--<![endif]-->
</div>
</td>
</tr>
</table>