91
Español / Castellano / Re: [MOD] Incorporar Moderadores en la galería
« on: January 15, 2010, 01:10:16 PM »
Hello on all sides,
if my bad English excuses please. After a little trying i have got further a step. I can release the Support-Ticket-MOD now also for single Moderator. Indeed, is there a small hook. I cannot release the Support-Ticket-MOD independently, but always only in connection with the News-MOD. I.e. if i the Support-Ticket-Mod switch on/ switch off this also counts to the News-MOD. I switch on/ switch off the News-MOD caused this no change. I have analogously gone forward of the approach described here:
http://www.4homepages.de/forum/index.php?topic=17155.msg93003#msg93003
and has changed merely the name ' noticias' in 'support'. Here my approach:
First I have provided the SQL Entry and have imported in the data bank:
In the next step I have in lang/deutsch/admin.php after the entry:
this line inserted:
In the next step I have removed in admin/index.php the entry for the Support-Ticket-MOD from the general setting menu of the ACP, have converted to an independent navigation menu (including entries in lang/deutsch/admin.php) and have inserted before the category menu:
I have let out the step with news.php because I have found in support.php no suitable entry.
Then I have carried out in the admin/users.php following steps:
After
i have this line inserted:
After
i habe this line inserted:
After this line:
i have this line inserted:
In the last step I have after the line:
this lin inserted:
What must be done, so that the settings can be carried out in each case separately for the Support-Ticket-MOD and the News-MOD? I do not know here, unfortunately further. I have the data bank entry and the leave out step analogously news.php in suspicion. However, as I already said, here I am first of all at the end. Would you help me please?
Yours sincerely, Bommel
if my bad English excuses please. After a little trying i have got further a step. I can release the Support-Ticket-MOD now also for single Moderator. Indeed, is there a small hook. I cannot release the Support-Ticket-MOD independently, but always only in connection with the News-MOD. I.e. if i the Support-Ticket-Mod switch on/ switch off this also counts to the News-MOD. I switch on/ switch off the News-MOD caused this no change. I have analogously gone forward of the approach described here:
http://www.4homepages.de/forum/index.php?topic=17155.msg93003#msg93003
and has changed merely the name ' noticias' in 'support'. Here my approach:
First I have provided the SQL Entry and have imported in the data bank:
Code: [Select]
ALTER TABLE 4images_users ADD user_moderador_noticias tinyint(1) NOT NULL default '0'
In the next step I have in lang/deutsch/admin.php after the entry:
Code: [Select]
$lang['field_moderador_noticias'] = "Este MODERADOR tendrá control sobre las noticias ? :";
this line inserted:
Code: [Select]
$lang['field_moderador_support'] = "Este MODERADOR tendrá control sobre las noticias ? :";
In the next step I have removed in admin/index.php the entry for the Support-Ticket-MOD from the general setting menu of the ACP, have converted to an independent navigation menu (including entries in lang/deutsch/admin.php) and have inserted before the category menu:
Code: [Select]
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_support'] == 1)) {
show_nav_header($lang['nav_support_main']);
show_nav_option($lang['nav_general_tickets'], "support.php");
}
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_categorias'] == 1)) {
show_nav_header($lang['nav_categories_main']);
show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");
}
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_noticias'] == 1)) {
show_nav_header($lang['news_main']);
show_nav_option($lang['news_add'], "news.php?action=addnews");
show_nav_option($lang['modify_news'], "news.php?action=modifynews");
}
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_imagenes'] == 1)) {
show_nav_header($lang['nav_images_main']);
show_nav_option($lang['nav_images_edit'], "images.php?action=modifyimages");
show_nav_option($lang['nav_images_add'], "images.php?action=addimages");
show_nav_option($lang['nav_images_validate'], "validateimages.php?action=validateimages");
show_nav_option($lang['nav_images_check'], "checkimages.php?action=checkimages");
show_nav_option($lang['nav_images_thumbnailer'], "thumbnailer.php?action=checkthumbnails");
show_nav_option($lang['nav_images_resizer'], "resizer.php?action=selectoptions");
}
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_comentarios'] == 1)) {
show_nav_header($lang['nav_comments_main']);
show_nav_option($lang['nav_comments_edit'], "comments.php?action=modifycomments");
}
if ($user_info['user_level'] == ADMIN || ($user_info['user_level'] == MODERADOR && $user_info['user_moderador_usuarios'] == 1)) {
show_nav_header($lang['nav_users_main']);
show_nav_option($lang['nav_users_edit'], "users.php?action=modifyusers");
if (!defined('USER_INTEGRATION')) {
show_nav_option($lang['nav_users_add'], "users.php?action=addusers");
}
show_nav_option($lang['nav_usergroups'], "usergroups.php?action=modifygroups");
if (!defined('USER_INTEGRATION')) {
show_nav_option($lang['nav_users_email'], "email.php?action=emailusers");
}
}
if ($user_info['user_level'] == ADMIN && $user_info['user_level'] != MODERADOR && $user_info['user_level'] != GUEST) {
show_nav_header($lang['nav_users_moderadores_main']);
show_nav_option($lang['nav_users_moderadores_edit'], "users.php?action=findusers&usuario=moderadores");
show_nav_header($lang['nav_general_main']);
show_nav_option($lang['nav_general_settings'], "settings.php?action=modifysettings");
show_nav_option($lang['nav_general_templates'], "templates.php?action=modifytemplates");
show_nav_option($lang['nav_general_backup'], "backup.php?action=modifybackups");
show_nav_option($lang['nav_general_stats'], "stats.php?action=resetstats");
show_nav_option("phpinfo()", "phpinfo.php");
if (@is_dir("plugins")) {
show_nav_header("PlugIns");
$handle = @opendir("plugins/");
while ($file = @readdir($handle)) {
if (eregi("^\.{1,2}$", $file) || !eregi("\.php$", $file)) {
continue;
}
$plugin_file = file("./plugins/".$file);
$plugin_file[0] = trim($plugin_file[0]);
if (preg_match("/PLUGIN_TITLE:([a-zäöüß0-9\-_ ]+)/i", $plugin_file[0], $regs)) {
show_nav_option(trim($regs[1]), "./plugins/".$file);
}
else {
show_nav_option($file, "./plugins/".$file);
}
}
}
I have let out the step with news.php because I have found in support.php no suitable entry.
Then I have carried out in the admin/users.php following steps:
After
Code: [Select]
$user_moderador_noticias = intval($HTTP_POST_VARS['user_moderador_noticias']);
i have this line inserted:
Code: [Select]
$user_moderador_support = intval($HTTP_POST_VARS['user_moderador_support']);
After
Code: [Select]
user_moderador_noticias = '$user_moderador_noticias',
i habe this line inserted:
Code: [Select]
user_moderador_support = '$user_moderador_support',
After this line:
Code: [Select]
show_radio_row($lang['field_moderador_noticias'], "user_moderador_noticias", $user_row['user_moderador_noticias'], 1);
i have this line inserted:
Code: [Select]
show_radio_row($lang['field_moderador_support'], "user_moderador_support", $user_row['user_moderador_support'], 1);
In the last step I have after the line:
Code: [Select]
$user_moderador_noticias = intval($HTTP_POST_VARS['user_moderador_noticias'.$i]);
this lin inserted:
Code: [Select]
$user_moderador_support = intval($HTTP_POST_VARS['user_moderador_support'.$i]);
What must be done, so that the settings can be carried out in each case separately for the Support-Ticket-MOD and the News-MOD? I do not know here, unfortunately further. I have the data bank entry and the leave out step analogously news.php in suspicion. However, as I already said, here I am first of all at the end. Would you help me please?
Yours sincerely, Bommel