1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 02:42:40 +02:00

online: new 'online' menu, removing online_menu and online_extended_menu and lastseen_menu (as a seperate folder) the new 'online' plugin folder contains the new combined online menu and the lastseen menu, added a config area for those two as well, all templated and using shortcodes

This commit is contained in:
lia
2007-05-01 19:50:56 +00:00
parent 088776955f
commit 0e0c7169d2
12 changed files with 544 additions and 23 deletions

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/lancheck.php,v $
| $Revision: 1.4 $
| $Date: 2007-03-24 11:54:46 $
| $Revision: 1.5 $
| $Date: 2007-05-01 19:50:55 $
| $Author: lisa_ $
| With code from Izydor and Lolo.
+----------------------------------------------------------------------------+
@@ -176,10 +176,9 @@ if($f != ""){
$core_plugins = array(
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
"lastseen","links_page","linkwords","list_new","log","login_menu",
"newforumposts_main","newsfeed","newsletter","online_extended_menu",
"online_menu","other_news_menu","pdf","pm","poll","rss_menu",
"search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
"links_page","linkwords","list_new","log","login_menu","newforumposts_main",
"newsfeed","newsletter","online","other_news_menu","pdf","pm","poll",
"rss_menu","search_menu","siteinfo_menu","trackback","tree_menu","user_menu"
);
$core_themes = array("crahan","e107v4a","human_condition","interfectus","jayya",

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/language.php,v $
| $Revision: 1.3 $
| $Date: 2007-04-11 22:29:34 $
| $Author: e107coders $
| $Revision: 1.4 $
| $Date: 2007-05-01 19:50:55 $
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/
require_once("../class2.php");
@@ -510,9 +510,9 @@ function zip_up_lang($language)
$core_plugins = array(
"alt_auth","banner_menu","blogcalendar_menu","calendar_menu","chatbox_menu",
"clock_menu","comment_menu","content","featurebox","forum","gsitemap",
"lastseen","links_page","linkwords","list_new","log","login_menu",
"newforumposts_main","newsfeed","newsletter","online_extended_menu",
"online_menu","other_news_menu","pdf","pm","poll","rss_menu",
"links_page","linkwords","list_new","log","login_menu",
"newforumposts_main","newsfeed","newsletter","online",
"other_news_menu","pdf","pm","poll","rss_menu",
"search_menu","siteinfo_menu","trackback","tree_menu","user_menu","userlanguage_menu",
"usertheme_menu"
);

View File

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/update_routines.php,v $
| $Revision: 1.5 $
| $Date: 2007-03-24 11:54:46 $
| $Revision: 1.6 $
| $Date: 2007-05-01 19:50:55 $
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/
@@ -160,6 +160,36 @@ function update_706_to_800($type='') {
catch_error();
}
//change menu_path for lastseen_menu
if($sql->db_Select("menus", "menu_path", "menu_path='lastseen_menu' || menu_path='lastseen_menu/'"))
{
$sql->db_Update("menus", "menu_path='online/' WHERE menu_path='lastseen_menu' || menu_path='lastseen_menu/' ");
catch_error();
}
//delete record for online_extended_menu (now only using one online menu)
if($sql->db_Select("menus", "*", "menu_path='online_extended_menu' || menu_path='online_extended_menu/'"))
{
$row=$sql->db_Fetch();
//if online_extended is activated, we need to activate the new 'online' menu, and delete this record
if($row['menu_location']!=0){
$sql->db_Update("menus", "menu_name='online_menu', menu_path='online/' WHERE menu_path='online_extended_menu' || menu_path='online_extended_menu/' ");
//else if the menu is not active
}else{
//we need to delete the online_extended menu row, and change the online_menu to online
$sql->db_Delete("menus", " menu_path='online_extended_menu' || menu_path='online_extended_menu/' ");
}
catch_error();
}
//change menu_path for online_menu (if it still exists)
if($sql->db_Select("menus", "menu_path", "menu_path='online_menu' || menu_path='online_menu/'"))
{
$sql->db_Update("menus", "menu_path='online/' WHERE menu_path='online_menu' || menu_path='online_menu/' ");
catch_error();
}
return '';
}
@@ -197,6 +227,22 @@ function update_706_to_800($type='') {
return update_needed();
}
//change menu_path for lastseen_menu
if($sql->db_Select("menus", "menu_path", "menu_path='lastseen_menu' || menu_path='lastseen_menu/'"))
{
return update_needed();
}
//change menu_path for online_menu
if($sql->db_Select("menus", "menu_path", "menu_path='online_menu' || menu_path='online_menu/'"))
{
return update_needed();
}
//change menu_path for online_extended_menu
if($sql->db_Select("menus", "menu_path", "menu_path='online_extended_menu' || menu_path='online_extended_menu/'"))
{
return update_needed();
}
// No updates needed
return TRUE;
}

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/users.php,v $
| $Revision: 1.3 $
| $Date: 2007-03-25 02:01:06 $
| $Author: mcfly_e107 $
| $Revision: 1.4 $
| $Date: 2007-05-01 19:50:55 $
| $Author: lisa_ $
+----------------------------------------------------------------------------+
*/
require_once("../class2.php");
@@ -130,7 +130,8 @@ if (isset($_POST['update_options'])) {
}
// ------- Prune Users. --------------
if (isset($_POST['prune'])) {
$e107cache->clear("online_menu_totals");
$e107cache->clear("online_menu_member_total");
$e107cache->clear("online_menu_member_newest");
$text = USRLAN_56." ";
$bantype = $_POST['prune_type'];
if ($sql->db_Select("user", "user_id, user_name", "user_ban= {$bantype}"))
@@ -148,7 +149,8 @@ if (isset($_POST['prune'])) {
}
// ------- Quick Add User --------------
if (isset($_POST['adduser'])) {
$e107cache->clear("online_menu_totals");
$e107cache->clear("online_menu_member_total");
$e107cache->clear("online_menu_member_newest");
if (!$_POST['ac'] == md5(ADMINPWCHANGE)) {
exit;
}