Link to the mod (https://custom.simplemachines.org/index.php?mod=833)
(https://smftricks.com/logos/logo.png) (https://smftricks.com/)
(https://img.shields.io/badge/License-MPL%202.0-248049) (https://img.shields.io/badge/Hooks%20Only-Yes-6041a3) (https://img.shields.io/badge/SMF-2.1-3f73a0)
Profile Moderator ManagementDeveloped by Diego Andrés (https://smftricks.com/index.php?action=profile;u=1)
Original Developer: ディン1031 (https://www.simplemachines.org/community/index.php?action=profile;u=10466)
IntroductionProfile Moderator Management provides a very simple way to grant moderator privileges to your users in specific boards.Features- Remove/Add the user as moderator from their profile
- Select multiple boards at once
- Select entire categories
Localization(https://www.simplemachines.org/site_images/lang/english.gif) English
(https://www.simplemachines.org/site_images/lang/spanish_es.gif) Spanish
Changelog (https://github.com/SMFTricks/Profile-Mod-Management/blob/master/CHANGELOG.md)GitHub (https://github.com/SMFTricks/Profile-Mod-Management)
Nice mod :D
Great
Great idea!
Hope this can be added to SMF as default feature :D
HecKel
Special thx to ディン1031... Because he did the mod with my suggestion... Thx a lot...
Nice Mod DIN1031.Thanks.
should be default feature. excellent mod.
Nice mod , much thank you
Nice mod.
Where I can se permission of moderator created that way?
thanks
I use the same Premission as the one in the Manage Boards. (Normal only Admins can do that).
Bye
DIN1031
what changes are needed in .xml file and the others inorder to use it in Bablyon template?
<edit file>
$themedir/Profile.template.php
</edit file>
<search for>
?>
</search for>
<add before>
// The template for Moderator Board Managment ;).
function template_moderatorSettings()
{
global $context, $settings, $options, $scripturl, $txt;
//Some Javascript things ;)
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function selectBoards(ids)
{
var toggle = true;
for (i = 0; i < ids.length; i++)
toggle = toggle & document.forms.creator["brd" + ids[i]].checked;
for (i = 0; i < ids.length; i++)
document.forms.creator["brd" + ids[i]].checked = !toggle;
}
// ]]></script>';
// The main containing header.
echo '
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator">
<table border="0" width="85%" cellspacing="1" cellpadding="4" align="center" class="bordercolor">
<tr class="titlebg">
<td height="26">
<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />
', $txt['moderatorSettings_Headline'], '
</td>
</tr><tr class="windowbg">
<td class="smalltext" style="padding: 2ex;">
', $txt['moderatorSettings_info'], '
</td>
</tr><tr>
<td class="windowbg2" style="padding-bottom: 2ex;">
<table border="0" width="100%" cellpadding="3">
<tr>
<td>';
//Load the Boards...
echo '
<fieldset class="windowbg2" style="padding: 10px; margin-left: 5px; margin-right: 5px;">
<strong>'.$txt['moderatorSettings_selectBoards'].'</strong><br />
<table id="searchBoardsExpand" width="100%" border="0" cellpadding="1" cellspacing="0" align="center" style="margin-top: 1ex;">';
$alternate = true;
foreach ($context['board_columns'] as $board)
{
if ($alternate)
echo '
<tr>';
echo '
<td width="50%">';
if (!empty($board) && empty($board['child_ids']))
echo '
<label for="brd', $board['id'], '" style="margin-left: ', $board['child_level'], 'ex;"><input type="checkbox" id="brd', $board['id'], '" name="brd[', $board['id'], ']" value="', $board['id'], '"', $board['is_moderator'] ? ' checked="checked"' : '', ' class="check" />', $board['name'], '</label>';
elseif (!empty($board))
echo '
<a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $board['child_ids']), ']); return false;" style="text-decoration: underline;">', $board['name'], '</a>';
echo '
</td>';
if (!$alternate)
echo '
</tr>';
$alternate = !$alternate;
}
echo '
</table><br />
<input type="checkbox" name="all" id="check_all" value=""'.($context['all_checked'] ? ' checked="checked"' : '').' onclick="invertAll(this, this.form, \'brd\');" class="check" /><i> <label for="check_all">', $txt[737], '</label></i><br />
</fieldset>
</td>
</tr>';
template_profile_save();
echo '
</table>
</td>
</tr>
</table>
</form>';
}
</add before>
This is the only Theme Change ;).
I don't use .xml for my mods, only the language changes i made with this ;).
Bye
DIN1031
which file have to change and where to put change?
<edit file>
$themedir/Profile.template.php
</edit file>
Stand in the text
Bye
DIN1031
Thanks Dude !!!!!!!! ;D ;D ;D ;D
Have many child boards and must add a moderator manuelly.
Much work when a moderator has got 40 child boards !!!
But this is now history :D :D :D :D
Hi all
I have style Saf-Multicolor but this mod dosn't work. What should i chage.
Please write me step by step. I'm begginer with smf.
Regarts kamili34
Quote from: kamili34 on June 28, 2007, 09:15:24 PM
Hi all
I have style Saf-Multicolor but this mod dosn't work. What should i chage.
Please write me step by step. I'm begginer with smf.
Regarts kamili34
What are the errors that be shown?
Bye
DIN1031
Quote from: ディン1031 on June 29, 2007, 01:57:12 AM
What are the errors that be shown?
Mod install ok, but only work on default style. What I should do that this mod work on style Saf-Multicolor. ???
http://www.simplemachines.org/community/index.php?topic=176445.msg1131784#msg1131784 <- There Stand the Theme Change for this Mod ;).
Bye
DIN1031
But I don't know how tu do this. I'm very beginner somebeody like noob ;D
I paste this small code and after install this mod i get error with Profile.template
?_? what kind of error did occur?
Bye
DIN1031
It is perfect !!! I had wanted it for a long time in Turkish forum...
Thank you ;)
Uff i do it it works thanks for great mod. :)
one of the best mods ive seen in ages... Thanks alot for creating this...makes admin work lots easier....
man..
in not suport 114...
translate portugues
<file name="$languagedir/Profile.portuguese.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
//Moderator Profil Edit Version ;D
$txt['moderatorSettings_Headline'] = 'Selecione quadro de moderadores';
$txt['moderatorSettings_info'] = 'Você pode selecionar aqui, onde este membro poderá ser um Moderador.';
$txt['moderatorSettings'] = 'Gestão moderação';
$txt['moderatorSettings_selectBoards'] = 'Selecione quadros para fazer a moderação';
]]></add>
</operation>
</file>
<file name="$languagedir/Profile.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
//Moderator Profil Edit Version ;D
$txt['moderatorSettings_Headline'] = 'Selecione quadro de moderadores';
$txt['moderatorSettings_info'] = 'Você pode selecionar aqui, onde este membro poderá ser um Moderador.';
$txt['moderatorSettings'] = 'Gestão moderação';
$txt['moderatorSettings_selectBoards'] = 'Selecione quadros para fazer a moderação';
]]></add>
</operation>
</file>
Quote from: joomlamz on April 19, 2008, 05:16:41 AM
man..
in not suport 114...
Sorry i did forget to insert it...
Thx for the Translations
Bye
DIN1031
This is an excellent mod, and should be implemented into smf. imo.
Great job DIN1031 (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.postsmile.net%2Fimg%2F19%2F1942.gif&hash=42cd69283eccfe590865ee3fae6fe4254686921d) and thank you buddy :)
Spanish-latin-utf8 translation
//Moderator Profil Edit Version ;D
$txt['moderatorSettings_Headline'] = 'Seleccionar Foros de Moderación';
$txt['moderatorSettings_info'] = 'Aquí puedes seleccionar, dónde este usuario puede ser un Moderador.';
$txt['moderatorSettings'] = 'Gestión de Moderación';
$txt['moderatorSettings_selectBoards'] = 'Selecciona los foros a Moderar';
Thanks for this mod :)
Thanks i will add it in the next few days :D.
really cool and useful
Awesome mod! I have a forum with many child boards and I just couldn't believe that smf requires you to assign each board individually like it does. Many thanks! 8)
can u plz make it for RC2.0
Are you planning to update this to 2.0 RC2 anytime soon? If not please say so, so I can update it myself.
Ok. I modified this VERY USEFUL MOD so that it will work with 2.0 RC2 (it works in my board!). I just altered what to search for replacement (adding after/before).
I also removed all the languages because I didn't needed them. It's easy to do it yourself if you want.
ディン1031, when you upgrade your mod to 2.0 RC2 you can erase (or report if you can't erase) my message. Hope I didn't bother with this little change...
Quote from: shumilica on December 05, 2009, 12:17:16 PM
Ok. I modified this VERY USEFUL MOD so that it will work with 2.0 RC2 (it works in my board!). I just altered what to search for replacement (adding after/before).
I also removed all the languages because I didn't needed them. It's easy to do it yourself if you want.
ディン1031, when you upgrade your mod to 2.0 RC2 you can erase (or report if you can't erase) my message. Hope I didn't bother with this little change...
thanx a lot
working fine for me :D
I will update it this week, me sickness get better and i think i do update a lot mods...
I think permissions can be changed from "moderate_forum" to "manage_boards". Because who has the permissions to add/edit boards from admin panel also must add/edit board's moderators from profile panel too, not only admin(s). ;)
welldone
Can't wait!
Hope you feel better!
Quote from: ディン1031 on December 07, 2009, 05:01:17 AM
I will update it this week, me sickness get better and i think i do update a lot mods...
Hai... have you updated it?? I really want this mod :D I think its very usefull and should be default in SMF...
Is there an update for SMF 1.1.11 as it stopped working since I updated my boards.
It is an excellent tool and as mentioned should become default in SMF.
Hmmm normal it should work in 1.1.11 oO. I will look at it...
Awsome Thanks shumilica
What exactly did u change. works perfectly
nothing ;) i made only the package compatible *g*
Quote from: ディン1031 on February 16, 2010, 12:48:24 PM
nothing ;) i made only the package compatible *g*
It fails in the 1.1.11 install?
Is this mod going to be updated to a RC3-compatible version?
Thanks. :)
Quote from: blow on July 25, 2010, 03:59:45 PM
Is this mod going to be updated to a RC3-compatible version?
Thanks. :)
http://www.simplemachines.org/community/index.php?topic=176445.msg2391246#msg2391246
that will do the trick for you ;) , you may just need to emulate to RC2 in package manager
It's done. Thank you, Joker.
Thanks to mod author and shumilica ;)
Make compatible for 1.1.13 please?
If someone else will update my mod i give the rights to anyone who like to update it. ;)
I actually might be interested in updating this. :)
You can do what you want with the code =). I've nothing against it.
please update for 2.0 final
Updated to SMF 2.0.2
could anyone install it without errors in 2.0.2 ??? I doubt that because there is nothing like $txt['... in the original profile php. Looks like an editor converted the (correct) $txt[' ... to HTML entities. Is there nothing like quality control ???
Jut installed in 2.0.4, works great as farr as I can tell. You do need to emulate 2.0.2 though even though the mod states 2.0.3. In either event, installed fine without error on 2.0.4 emulating 2.0.2 in the package manager.
So ya, thx... makes managing moderstors easier when I need to remove one since you don't need to go board by board with this mod installed. Same for adding one if your setting up boards for gaming corps.
Doesn't seem to install to 2.0.7 out of the box as the saying goes. I can do a manual edit but someone may want to look in to seeing what's wrong.
I mention this because the mod page shows it as 2.0.7 compatible.
Quote from: MoreBloodWine on March 01, 2014, 08:47:06 PM
Doesn't seem to install to 2.0.7 out of the box as the saying goes. I can do a manual edit but someone may want to look in to seeing what's wrong.
I mention this because the mod page shows it as 2.0.7 compatible.
You can emulate to install the mod.
However, should be fixed now.
Thanks
Quote2: mysql_free_result() expects parameter 1 to be resource, object given
Since when I'm using MySQL improved.
Impossible to use MySQL on my forum.
Mod is updated for SMF 2.1
However, I accidentally deleted package for SMF 2.0.x and I can't find it.
Marked for 2.1 only until I can get my hands on the old mod.
Edit: Just got it back on the modsite too
well thanks for the update but no go on 2.0.15 it says corrupted file or wrong version
and you version 2.0xxx is still in the download list on you mod page
https://custom.simplemachines.org/mods/index.php?mod=833
Yea 2.0.x version is back on the page and it's working fine.
Version 3.0 is only for SMF 2.1 won't work on SMF 2.0.x
Edit: It's the wrong file it seems. Removed 2.0.x again until I can find the correct one or package a mod for 2.0
Great mod! Thanks Diego Andrés! 8)
3.1 - 28 September 2021
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmftricks.com%2FThemes%2FSMFTricks%2Fimages%2Fchangelog%2Ftag--pencil.png&hash=5de0b06bfe982ea5c2d695e1dd548e76ef3e5f20) Moved languages to a dedicated language file.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsmftricks.com%2FThemes%2FSMFTricks%2Fimages%2Fchangelog%2Ftag--pencil.png&hash=5de0b06bfe982ea5c2d695e1dd548e76ef3e5f20) Code improvements.