diff --git a/e107_core/templates/usersettings_template.php b/e107_core/templates/usersettings_template.php
index 475cbdf3d..7be5fd99c 100755
--- a/e107_core/templates/usersettings_template.php
+++ b/e107_core/templates/usersettings_template.php
@@ -15,7 +15,12 @@
*/
if (!defined('e107_INIT')) { exit; }
-if (!defined("USER_WIDTH")){ define("USER_WIDTH", "width:auto"); }
+if (!defined("USER_WIDTH"))
+{
+ $uw = (deftrue('e_BOOTSTRAP')) ? "" : "width:97%";
+ define("USER_WIDTH", $uw);
+}
+
// global $usersettings_shortcodes, $pref;
diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php
index 50a0b9d43..7842b671b 100644
--- a/e107_plugins/chatbox_menu/chatbox_menu.php
+++ b/e107_plugins/chatbox_menu/chatbox_menu.php
@@ -64,72 +64,76 @@ $emessage='';
// FIX - using generic sc names is affecting old installs/templates and global wrappers (e.g. sc_style[USERNAME])
-class chatbox_shortcodes extends e_shortcode
+if(!class_exists('chatbox_shortcodes'))
{
- function sc_cb_username($parm='')
+ class chatbox_shortcodes extends e_shortcode
{
- list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2);
- if($this->var['user_name'])
+
+ function sc_username($parm='')
{
- $cb_nick = "".$this->var['user_name']."";
- }
- else
- {
- $cb_nick = $tp -> toHTML($cb_nick,FALSE,'USER_TITLE, emotes_off, no_make_clickable');
- $cb_nick = str_replace("Anonymous", LAN_ANONYMOUS, $cb_nick);
- }
-
- return $cb_nick;
- }
-
- function sc_cb_timedate($parm='')
- {
- return e107::getDate()->convert_date($this->var['cb_datestamp'], "relative");
- }
-
-
- function sc_cb_message($parm = '')
- {
- if($this->var['cb_blocked'])
- {
- return CHATBOX_L6;
- }
-
- $pref = e107::getPref();
- $emotes_active = $pref['cb_emote'] ? 'USER_BODY, emotes_on' : 'USER_BODY, emotes_off';
-
- list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2);
-
- $cb_message = e107::getParser()->toHTML($this->var['cb_message'], false, $emotes_active, $cb_uid, $pref['menu_wordwrap']);
-
- return $cb_message;
-
- $replace[0] = "["; $replace[1] = "]";
- $search[0] = "["; $search[1] = "]";
- $cb_message = str_replace($search, $replace, $cb_message);
- }
-
- function sc_cb_avatar($parm='')
- {
- return e107::getParser()->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'])."}");
- }
-
- function sc_cb_bullet($parm = '')
- {
- $bullet = "";
-
- if(defined('BULLET'))
- {
- $bullet = '';
- }
- elseif(file_exists(THEME.'images/bullet2.gif'))
- {
- $bullet = '
';
+ list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2);
+ if($this->var['user_name'])
+ {
+ $cb_nick = "".$this->var['user_name']."";
+ }
+ else
+ {
+ $cb_nick = $tp -> toHTML($cb_nick,FALSE,'USER_TITLE, emotes_off, no_make_clickable');
+ $cb_nick = str_replace("Anonymous", LAN_ANONYMOUS, $cb_nick);
+ }
+
+ return $cb_nick;
}
- return $bullet;
+ function sc_timedate($parm='')
+ {
+ return e107::getDate()->convert_date($this->var['cb_datestamp'], "relative");
+ }
+
+
+ function sc_message($parm = '')
+ {
+ if($this->var['cb_blocked'])
+ {
+ return CHATBOX_L6;
+ }
+
+ $pref = e107::getPref();
+ $emotes_active = $pref['cb_emote'] ? 'USER_BODY, emotes_on' : 'USER_BODY, emotes_off';
+
+ list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2);
+
+ $cb_message = e107::getParser()->toHTML($this->var['cb_message'], false, $emotes_active, $cb_uid, $pref['menu_wordwrap']);
+
+ return $cb_message;
+
+ $replace[0] = "["; $replace[1] = "]";
+ $search[0] = "["; $search[1] = "]";
+ $cb_message = str_replace($search, $replace, $cb_message);
+ }
+
+ function sc_cb_avatar($parm='')
+ {
+ return e107::getParser()->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'])."}");
+ }
+
+ function sc_cb_bullet($parm = '')
+ {
+ $bullet = "";
+
+ if(defined('BULLET'))
+ {
+ $bullet = '
';
+ }
+ elseif(file_exists(THEME.'images/bullet2.gif'))
+ {
+ $bullet = '
';
+ }
+
+ return $bullet;
+ }
+
}
-
}
@@ -146,7 +150,6 @@ class chatbox_shortcodes extends e_shortcode
-
if((isset($_POST['chat_submit']) || e_AJAX_REQUEST) && $_POST['cmessage'] != '')
{
if(!USER && !$pref['anon_post'])
@@ -289,7 +292,6 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
ORDER BY c.cb_datestamp DESC LIMIT 0, ".intval($chatbox_posts);
global $CHATBOXSTYLE;
-
if($CHATBOXSTYLE)
{
@@ -303,9 +305,9 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
// FIXME - move to template
$CHATBOX_TEMPLATE['start'] = "
{CB_MESSAGE}
+ {CB_AVATAR} {USERNAME} + {TIMEDATE}{MESSAGE}