+
-
-
+
+
+
+
".$this->frm->hidden('fp_order', $rule_info['order'])."
".FRTLAN_43.": ".e107::getUserClass()->uc_dropdown('class', $rule_info['class'], 'public,guest,member,admin,main,classes')."
".$this->frm->admin_button('fp_save_new', LAN_UPDATE, 'update')."
".$this->frm->admin_button('fp_cancel', LAN_CANCEL, 'cancel')."
-
+
";
return $text;
@@ -592,8 +608,7 @@ class frontpage
{ // Multiple options for same page name
$text .= "
- ".$this->frm->radio($ob_name, $front_key, $type_selected)."
- ".$this->frm->label($front_value['title'], $ob_name, $front_key)."
+ ".$this->frm->radio($ob_name, $front_key, $type_selected, array('label'=>$front_value['title']))."
|
";
@@ -609,8 +624,7 @@ class frontpage
{ // Single option for URL
$text .= "
|
- ".$this->frm->radio($ob_name, $front_key, $type_selected)."
- ".$this->frm->label($front_value['title'], $ob_name, $front_key)."
+ ".$this->frm->radio($ob_name, $front_key, $type_selected, array('label'=>$front_value['title']))."
|
| ";
@@ -632,9 +646,11 @@ class frontpage
*/
function add_other($ob_name, $cur_val, $cur_page)
{
+ $label = ($cur_val) ? "Disabled or Enter Custom URL:" : "Custom URL: ";
+
return "
- ".$this->frm->radio($ob_name, 'other', $cur_val)." ".$this->frm->label(FRTLAN_15.":", $ob_name, 'other')." |
- ".$this->frm->text($ob_name.'_other', ($cur_val ? $cur_page : ''), 150, "size=50&id={$ob_name}-other-txt")." |
+ ".$this->frm->radio($ob_name, 'other', $cur_val, array('label'=> $label))." |
+ ".$this->frm->text($ob_name.'_other', ($cur_val ? $cur_page : ''), 150, "size=xxlarge&id={$ob_name}-other-txt")." |
";
}
}
@@ -654,23 +670,20 @@ function frontpage_adminlog($msg_num = '00', $woffle = '')
e107::getAdminLog()->log_event('FRONTPG_'.$msg_num, $woffle, E_LOG_INFORMATIVE, '');
}
-/**
- * Handle page DOM within the page header
- *
- * @return string JS source
- */
-function headerjs()
-{
- require_once(e_HANDLER.'js_helper.php');
- $ret = "
-
-
- ";
- return $ret;
+function frontpage_adminmenu()
+{
+
+ $action = vartrue($_GET['mode'],'main');
+
+ $var['main']['text'] = LAN_MANAGE;
+ $var['main']['link'] = e_SELF;
+ $var['create']['text'] = LAN_CREATE;
+ $var['create']['link'] = e_SELF."?mode=create";
+
+
+ show_admin_menu(FRTLAN_PAGE_TITLE, $action, $var);
}
+
?>
\ No newline at end of file
diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php
index 6c114f127..5e8245aeb 100644
--- a/e107_admin/prefs.php
+++ b/e107_admin/prefs.php
@@ -424,21 +424,21 @@ $text .= "
";
*/
- $menu = "
";
- $menu .= ""; // .$month_selector;
- if(!defset('e_BOOTSTRAP')) // BC
+
+
+ if(deftrue('e_BOOTSTRAP')) // v2.x
{
- $menu .= $month_selector;
- }
-
- $menu .= "";
-
-
- foreach($months as $year=>$val)
- {
- foreach($val as $month=>$v)
+ $month_selector = ' ';
+
+ $caption = " ".BLOGCAL_L1." ".$month_selector." ";
+
+ $menu = " ";
+ $menu .= " ";
+
+ foreach($months as $year=>$val)
{
- $menu .= calendar($req_day, $month, $year, $links[$year][$month], $pref['blogcal_ws']);
+ foreach($val as $month=>$v)
+ {
+ $menu .= calendar($req_day, $month, $year, $links[$year][$month], $pref['blogcal_ws']);
+ }
}
+
+ $menu .= " ";
+ $menu .= "
+ ";
+
}
- $menu .= " ";
- $menu .= "
- |
";
- $menu .= "
";
-
+ else // BC
+ {
+
+ $month_selector = "";
+
+ $menu = "
+
";
+ $menu .= "".$month_selector;
+ $menu .= " ".calendar($req_day, $req_month, $req_year, $day_links, $pref['blogcal_ws'])." ";
+ $menu .= " |
";
+ $menu .= "
";
+
+ $caption = "
".BLOGCAL_L1." ".$req_year."
";
+ }
+
$cached = $ns->tablerender($caption, $menu, 'blog_calendar', true);
// echo "day= ".$req_day. " month=".$req_month." year=".$req_year." links=".print_a($day_links)." ws=".$pref['blogcal_ws'];
e107::getCache()->set($cString, $menu);
diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php
index b520ac4ae..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'])
@@ -284,12 +287,11 @@ if(!$text = $e107cache->retrieve("nq_chatbox"))
define("CB_MOD", check_class($pref['cb_mod']));
$qry = "
- SELECT c.*, u.user_name FROM #chatbox AS c
+ SELECT c.*, u.user_name, u.user_image FROM #chatbox AS c
LEFT JOIN #user AS u ON SUBSTRING_INDEX(c.cb_nick,'.',1) = u.user_id
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'] = "
";
$CHATBOX_TEMPLATE['item'] = "-
- {CB_AVATAR} {CB_USERNAME}
- {CB_TIMEDATE}
- {CB_MESSAGE}
+ {CB_AVATAR} {USERNAME}
+ {TIMEDATE}
+ {MESSAGE}
\n";
$CHATBOX_TEMPLATE['end'] = "
";
diff --git a/e107_plugins/featurebox/admin_config.php b/e107_plugins/featurebox/admin_config.php
index 0e1370205..cf833c84a 100644
--- a/e107_plugins/featurebox/admin_config.php
+++ b/e107_plugins/featurebox/admin_config.php
@@ -138,7 +138,7 @@ class fb_category_ui extends e_admin_ui
if(!varset($new_data['fb_category_template']))
{
$new_data['fb_category_template'] = 'default';
- }var_dump($new_data);
+ }
return $new_data;
}
diff --git a/e107_plugins/forum/forum_update.php b/e107_plugins/forum/forum_update.php
index 322b4b4eb..0de814d9e 100644
--- a/e107_plugins/forum/forum_update.php
+++ b/e107_plugins/forum/forum_update.php
@@ -1233,6 +1233,9 @@ function step12()
$ret = $f -> setNewVersion();
$mes -> addSuccess("Congratulations, the forum upgrade is now completed!
{$ret}");
+
+ $text = "
Return to e107 Update";
+
$ns -> tablerender($stepCaption, $mes -> render() . $text);
return;
}
diff --git a/e107_plugins/login_menu/login_menu_class.php b/e107_plugins/login_menu/login_menu_class.php
index bc5248056..24117ca59 100644
--- a/e107_plugins/login_menu/login_menu_class.php
+++ b/e107_plugins/login_menu/login_menu_class.php
@@ -353,7 +353,7 @@ class login_menu_class
require_once(e_HANDLER.'xml_class.php');
$xml = new xmlClass;
$xml->filter = array('name' => FALSE,'version'=>FALSE); // Just want a couple of variables
- $readFile = $xml->loadXMLfile(e_PLUGIN.$plugin_path.'/plugin.xml', true, true);
+ $readFile = $xml->loadXMLfile(e_PLUGIN.$plugid.'/plugin.xml', true, true);
$ret['eplug_name'] = defined($readFile['name']) ? constant($readFile['name']) : $readFile['name'];
$ret['eplug_version'] = $readFile['version'];
}
diff --git a/e107_themes/bootstrap/theme.php b/e107_themes/bootstrap/theme.php
index f8e77dbd4..2295e2ca2 100644
--- a/e107_themes/bootstrap/theme.php
+++ b/e107_themes/bootstrap/theme.php
@@ -153,6 +153,7 @@ $HEADER['default'] = '