Updated for V3 credit to original author.
Ive put in progress because i dont use this and havent tested
[color=rgb(251, 160, 38)]SQL[/color]
[color=rgb(251, 160, 38)]In each theme.css[/color]
[color=rgb(251, 160, 38)]Replace shoutbox code on index.php with[/color]
[color=rgb(251, 160, 38)]In english.php add[/color]
Add contents of root folder to root
to clear shoutbox, in functions.php in format_comment find
add
Ive put in progress because i dont use this and havent tested
[color=rgb(251, 160, 38)]SQL[/color]
CREATE TABLE IF NOT EXISTS `ajshoutbox` (
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
`uid` mediumint(9) NOT NULL,
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`name` tinytext NOT NULL,
`text` text NOT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM;[color=rgb(251, 160, 38)]In each theme.css[/color]
#chat {
overflow: auto;
width: 100%;
height: 450px;
padding: 0px;
}
#chatoutput ul {
list-style: none;
margin:0px;
padding:0px;
font-size: 10pt;
padding:5px 4px 6px 5px;
}
div.chatoutput {
/*background:#465151;#323232;*/
background:#A8A8A8;
padding:5px 0px 3px 10px;
margin:0px;
color:#000000;
line-height: 150%;
margin-bottom:2px;
border-radius: 5px;
}
div.loader {
background-image: url('images/ajshoutbox/random.php');
background-repeat: no-repeat;
background-position:center center;
width:199px;
height:137px;
}
#chatoutput ul li {
}
#chatoutput ul li span.name {
display: block;
background:url(images/ajshoutbox/bubble.png) no-repeat left;
padding-left:19px;
margin-bottom:1px;
font-weight: normal;
color:#000000;
}
#chatoutput ul li:hover span.name {
background:url(images/ajshoutbox/bubblehover.png) no-repeat left;
}
form {
padding:0px;
margin:0px;
}
#chatoutput {
text-align: left;
margin-right: 0px;
color: #999;
}
/* swaps edit and delete images on mouse over */
#EditSwap {
width:0px;
height:0px;
background:url(images/ajshoutbox/shout_edit_gray.gif) no-repeat bottom;
padding:10px;
}
#EditSwap:hover {
background:url(images/ajshoutbox/shout_edit.png) no-repeat bottom;
}
#DeleteSwap {
width:0px;
height:0px;
background:url(images/ajshoutbox/shout_delete_gray.gif) no-repeat bottom;
padding:10px;
}
#DeleteSwap:hover {
background:url(images/ajshoutbox/shout_delete.png) no-repeat bottom;
}
/* end of swaping */
img.form {
background:url(images/ajshoutbox/frame.png) no-repeat;
}
img.form:hover {
background:url(images/ajshoutbox/frame_hover.png) no-repeat;
}
#chatcornerup {
width:50%;
padding: 10px;
background-color: #E2E2E2;
border:1px solid #777;
border-bottom-style:none;
border-top-right-radius: 2em;
border-top-left-radius: 2em;
}
#chatcornerdown {
width:65%;
padding: 10px;
background-color: #E2E2E2;
border:1px solid #777;
border-bottom-style:none;
border-top-right-radius: 2em;
border-top-left-radius: 2em;
}
.marquee {
width: 650px;
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
}
.marquee span {
display: inline-block;
padding-left: 100%; /* show the marquee just outside the paragraph */
animation: marquee 15s linear infinite;
}
.marquee span:hover {
animation-play-state: paused
}
/* Make it move */
@keyframes marquee {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
[color=rgb(251, 160, 38)]Replace shoutbox code on index.php with[/color]
//AJAX SHOUTBOX/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
require_once("backend/smilies.php");
require_once("shoutfun_new.php");
begin_frame("".$site_config['SITENAME']." Shoutbox");
function smile() {
print "<div align='center'><table cellpadding='3' cellspacing='3'><tr>";
global $smilies, $count;
reset($smilies);
while ((list($code, $url) = thisEach($smilies)) && $count<16) {
print("\n<td><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
<img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a></td>");
$count++;
}
print '<br /><td> <a href="javascript:show_hide(\'sextra\');"><img src=./images/ajshoutbox/down.gif title=more border=0></a></td></tr></table></div>';
}
function smileextra() {
global $smilies;
reset($smilies);
# getting smilies
while (list($code, $url) = thisEach($smilies)) {
print("\n<a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
<img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a>");
// $count++;
}
}
?>
<script src="js/ajshoutbox.js" language="Javascript" type="text/javascript"></script>
<br />
<table align=center class=ajshoutboxbackground width=98%><tr>
<td align=center>
<div align='center'><b><font color=green>Member</font> | <font color=brown>Power User</font> | <font color=dimgray>VIP</font> | <font color=purple>Uploader</font> |<font color=pink>Moderator</font> | <font color=#009AFF>Super Moderator</font> | <font color=red>Administrator</font>| <font color=#00ffbf>Site Owner</font></b></br></br>
<p class="microsoft marquee"><span><?php echo "".T_("SHOUTINFO").""; ?></span></p></div></div>
<div id="shoutheader">
<form id="chatForm" name="chatForm" onsubmit="return false;" action="">
<input type="hidden" name="name" id="name" value="<?php echo $CURUSER["username"] ?>" />
<input type="hidden" name="uid" id="uid" value="<?php echo $CURUSER["id"] ?>" />
<table align=center width=98%><tr>
<td align=center>
<div align=center><?php echo smile();?></div><br />
<input type="text" size="105" maxlength="500" placeholder=<?php echo"'".T_('SHOUT_HERE')."'" ;?> name="chatbarText" id="chatbarText" onblur="checkStatus('');" onfocus="checkStatus('active');" />
<input onclick="sendComment();" type="submit" id="submit" name="submit" value="Confirm" />
<a href="javascript: PopMoreSmiles('chatForm','chatbarText');">
<img src="images/ajshoutbox/smile.gif" border="0" class="form" title="smilies" align="top" alt="" /></a>
<a href="javascript: Pophistory()">
<img src="images/ajshoutbox/quote.gif" width="24" height="24" border="0" class="form" title="History/Moderate" align="top" alt="" /><b><font color = red><--View old shouts or edit shouts</font></b></a>
<br /><br />
<div style="display: none;" id="sextra"><?php echo shoutfun('chatForm','chatbarText');?></div><div style="display: none;" id="sextra1"><br><?php echo smileextra();?></div>
<br />
</td>
</tr>
</table><br />
</form>
</div>
<div id="chat">
<div id="chatoutput">
<ul id="outputList">
<li>
<span class="name"><b><?php echo $site_config['SITENAME'];?> Shoutbox:</b></span><h2 style='padding-left:20px;'>WELCOME</h2>
<center><div class="loader"></div></center>
</li>
</ul>
</div>
</div>
</td>
</tr>
</table><br /><br />
<!--<script language="Javascript">
$(".toggle").on("click", function () {
$(".marquee").toggleClass("microsoft");
})
</script>-->
<script language="Javascript">
function show_hide(sextra)
{
if(document.getElementById(sextra))
{
if(document.getElementById(sextra).style.display == 'none')
{
document.getElementById(sextra).style.display = 'inline';
}
else
{
document.getElementById(sextra).style.display = 'none';
}
}
}
function show_hide(sextra1)
{
if(document.getElementById(sextra1))
{
if(document.getElementById(sextra1).style.display == 'none')
{
document.getElementById(sextra1).style.display = 'inline';
}
else
{
document.getElementById(sextra1).style.display = 'none';
}
}
}
</script>
</center>
<?php
end_frame();
}
//END_AJAX_SHOUTBOX////////////////////////////////////////////////////////////////////////////////////////////////////////
[color=rgb(251, 160, 38)]In english.php add[/color]
//ajax chat
$LANG["SHOUT_HERE"] = "Shout Here";
$LANG["STAFF_SHOUT"] = "Staff Shout";
$LANG["SHOUTINFO"] = "<b><u>Shoutbox Rules</u></b>: English Only, <font color='red'>No</font> <i>Swearing, Personal Attacks, Abuse,</i> or <i>Spamming</i> and <font color='red'>No</font> <i>Publishing Serials, or Cracks</i> ETC. <img src=images/smilies/razz.png>";Add contents of root folder to root
to clear shoutbox, in functions.php in format_comment find
return $s;
} add
global $CURUSER;
$is_mod=$CURUSER["control_panel"]=='yes';
if ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND $is_mod))
{
return execcommand_clean ($Matches);
}elseif ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND !$is_mod))
{return execcommand_noclean($Matches);}

