before you add this mod you must have the mod by ajshoutbox by cooly
ok here is the staffshoutchat
first you need to add the SQL
[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6168']ajshoutchat.rar[/url]
ok here is the staffshoutchat
first you need to add the SQL
--
-- Table structure for table `ajshoutchat`
--
CREATE TABLE IF NOT EXISTS `ajshoutchat` (
`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 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ajshoutchat`
--
-- --------------------------------------------------------
@admincp.php fined
if (!$action){
stdhead("Admin CP");
navmenu();
stdfoot();
}
LOOK IN THEAD BELOW REPLACE BY
@admincp.php Add
<td align="center"><a href=admincp.php?action=clearShoutchats><img src="images/admin/clearshout.png" border=0 width=32 height=32><BR>Clear SaffShoutbox</a><BR></td>
@admincp.php Add at the end tag
if ($action == "clearShoutchats") {
stdhead("Clear Shoutchats");
navmenu();
begin_frame("Clear shoutchat", center);
if ($yes == "yes") {
$res = mysql_query("TRUNCATE `ajshoutchat`");
if ($res) echo "<center>Site Shoutchats cleared";
} else {
echo "<div align=center>Are you sure you want to clear the Shoutchats?<br>";
echo "<a href='admincp.php?action=clearShoutchats&yes=yes'><b>Yes</b></a></div>";
}
end_frame();
stdfoot();
[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6168']ajshoutchat.rar[/url]