mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Support for admin-area chatbox usage: Added support for moderation by main and nobody. Removed hardcoded styles from chatbox-menu blocks - use: #chatbox-posts-block and #chatbox-input-block
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/admin_chatbox.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/admin_chatbox.php,v $
|
||||||
* $Revision: 1.9 $
|
* $Revision: 1.10 $
|
||||||
* $Date: 2009-11-18 01:05:23 $
|
* $Date: 2010-01-08 23:29:19 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ $text .= "</select>
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr><td>".CHBLAN_32.": </td>
|
<tr><td>".CHBLAN_32.": </td>
|
||||||
<td>". r_userclass("cb_mod", $pref['cb_mod'], 'off', "admin, classes")."
|
<td>". r_userclass("cb_mod", $pref['cb_mod'], 'off', "nobody,main,admin, classes")."
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/chatbox_menu.php,v $
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/chatbox_menu/chatbox_menu.php,v $
|
||||||
* $Revision: 1.17 $
|
* $Revision: 1.18 $
|
||||||
* $Date: 2009-11-18 01:05:23 $
|
* $Date: 2010-01-08 23:29:23 $
|
||||||
* $Author: e107coders $
|
* $Author: e107coders $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ else
|
|||||||
{
|
{
|
||||||
$texta = (e_QUERY ? "\n<form id='chatbox' method='post' action='".e_SELF."?".e_QUERY."'>" : "\n<form id='chatbox' method='post' action='".e_SELF."'>");
|
$texta = (e_QUERY ? "\n<form id='chatbox' method='post' action='".e_SELF."?".e_QUERY."'>" : "\n<form id='chatbox' method='post' action='".e_SELF."'>");
|
||||||
}
|
}
|
||||||
$texta .= "<div style='text-align:center; width:100%'>";
|
$texta .= "<div id='chatbox-input-block'>";
|
||||||
|
|
||||||
if(($pref['anon_post'] == "1" && USER == FALSE))
|
if(($pref['anon_post'] == "1" && USER == FALSE))
|
||||||
{
|
{
|
||||||
@@ -182,6 +182,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
|
|||||||
{
|
{
|
||||||
$obj2 = new convert;
|
$obj2 = new convert;
|
||||||
$cbpost = $sql -> db_getList();
|
$cbpost = $sql -> db_getList();
|
||||||
|
$text .= "<div id='chatbox-posts-block'>\n";
|
||||||
foreach($cbpost as $cb)
|
foreach($cbpost as $cb)
|
||||||
{
|
{
|
||||||
// get available vars
|
// get available vars
|
||||||
@@ -225,6 +226,7 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
|
|||||||
$replace = array($cb_nick,$datestamp,($cb['cb_blocked'] ? CHATBOX_L6 : $cb_message));
|
$replace = array($cb_nick,$datestamp,($cb['cb_blocked'] ? CHATBOX_L6 : $cb_message));
|
||||||
$text .= str_replace($search,$replace,$CHATBOXSTYLE);
|
$text .= str_replace($search,$replace,$CHATBOXSTYLE);
|
||||||
}
|
}
|
||||||
|
$text .= "</div>";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user