• Welcome to Simple Machines Community Forum. Please login or sign up.

Topic Starter Moderator

Started by M-DVD, February 08, 2009, 05:36:32 AM

Previous topic - Next topic

M-DVD

February 08, 2009, 05:36:32 AM Last Edit: June 07, 2009, 07:06:03 PM by M-DVD
Link to Mod




MOD Topic Starter Moderator v1.0
=======================






  • Autor:
M-DVD
  • Version:
1.0
  • Release:
05th February 2009
  • Languages:

  • Compatible With:
SMF 1.1.1 - 1.1.9
SMF 2 Beta 3 & 4 & RC1-X




Comment this Mod
My MODs
Images
Help support my MODs

Features:

  • With this MOD you can Enable Topic Starter Moderator by Boards.
    Admin > Boards > Modify Boards

  • The Topic Starter will have all permissions for a forum moderator (*) and permissions add by MODs.
    Example: Can move his topic.

(*) Except permissions extra-topics, or for security.

Thanks to BurkeKnight for idea.

==========================

Languages (normal & utf-8)


$txt['mboards_moderatorTopicStarter'] = 'Enable Topic Starter Moderator';
$txt['mboards_moderatorTopicStarter_desc'] = 'The members can moderate their own topics.';


I welcome new translations here

==========================

Características:

  • Con este MOD puedes Activar la Moderación del Creador del Tema, por Foros
    Administración > Foros > Modificar Foros

  • El Creador del Tema tendrá todos los permisos de un moderador del foro (*) y permisos de MODs.
    Ejemplo: puede mover sus temas mal ubicados.

(*) Excepto permisos extra-temas, o por seguridad.

Fin.

candidosa2

Good work
nice mod Update portugues\

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Topic Starter Moderator translate By Candidosa2 suporte smfpt.net
$txt['mboards_moderatorTopicStarter'] = 'Activar T&oacute;picos iniciantes Modera&ccedil;&atilde;o';
$txt['mboards_moderatorTopicStarter_desc'] = 'Os membros podem moderar os seus pr&oacute;prios t&oacute;picos';]]></add>
</operation>
</file>


<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// MOD Topic Starter Moderator translate By Candidosa2
$txt['mboards_moderatorTopicStarter'] = 'Activar T&oacute;picos iniciantes Modera&ccedil;&atilde;o';
$txt['mboards_moderatorTopicStarter_desc'] = 'Os membros podem moderar os seus pr&oacute;prios t&oacute;picos';]]></add>
</operation>
</file>

Burke ♞ Knight


M-DVD

Quote from: candidosa2 on February 08, 2009, 09:38:10 AM
Good work
nice mod Update portugues\

Thanks :), soon i add your translation.

Quote from: BurkeKnight on February 08, 2009, 02:15:29 PM
Great job, my friend. :)

Your welcome, thanks too for the idea.

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

Özgür

Nice Mod. Thank you M-DVD
This is Turkish translate

<file name="$languagedir/Modifications.turkish.php" error="skip">
      <operation>
         <search position="end" />
         <add><![CDATA[
// Çeviri Özgür
$txt['mboards_moderatorTopicStarter'] = 'Konu moderatörlüğünü aktif et';
$txt['mboards_moderatorTopicStarter_desc'] = 'Bunu seçerseniz üyeler bu bölümdeki konularını düzenleyebilirler, silebilirler, kilitleyebilirler.';]]></add>
      </operation>
   </file>
So Long

M-DVD

Quote from: 4kstore on February 08, 2009, 08:33:23 PM
Nice Mod!!!! thanks!

Thanks four your comment :D

Quote from: Özgür´ on February 09, 2009, 07:04:04 AM
Nice Mod. Thank you M-DVD
This is Turkish translate

Thanks soon i add your translation. :D

MaXiForum.cz

NICE!
Czech translation:

//Moderování v této diskusi
$txt['mboards_moderatorTopicStarter'] = 'Povolit moderování v této diskusi';
$txt['mboards_moderatorTopicStarter_desc'] = 'Uživatelé tímto získají oprávnění moderovat vlastní témata.';


;)

watchhorse

I like this mod but .... is it save.
I have a big forum and do not want that someone have the wrong permissions :-\
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

M-DVD

Quote from: MaxiPes on February 09, 2009, 12:55:20 PM
NICE!
Czech translation:

//Moderování v této diskusi
$txt['mboards_moderatorTopicStarter'] = 'Povolit moderování v této diskusi';
$txt['mboards_moderatorTopicStarter_desc'] = 'Uživatelé tímto získají oprávnění moderovat vlastní témata.';


;)

Thanks for translate. :)

All the translation have been uploaded :D

Quote from: watchhorse on February 09, 2009, 01:39:44 PM
I like this mod but .... is it save.
I have a big forum and do not want that someone have the wrong permissions :-\

What permissions you don't want?

It's easy to add and remove permissions.

You need only search this array

$not_topic_moderator = array('moderate_board', 'make_sticky', 'lock_any', 'remove_any', 'merge_any', 'split_any');

and add or remove permissions. :P

I have removed all the permissions wrong that I saw.

watchhorse

QuoteExample: Can move his topic.

When he move it to another "normal" board ... the Topic Starter still have all permissions???
Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

M-DVD

Quote from: watchhorse on February 11, 2009, 04:25:00 AM
QuoteExample: Can move his topic.

When he move it to another "normal" board ... the Topic Starter still have all permissions???

No, the MOD is activated for Board.

And something important to say. He can only move topics to boards that he has access. Ie cannot move topics to the "Forum Staff" for example.

islam2hamy

nice mod

Arabic translation (utf-8) :

$txt['mboards_moderatorTopicStarter'] = 'إسمح لكاتب الموضوع بإدارته';
$txt['mboards_moderatorTopicStarter_desc'] = 'هذا التصريح يمكن الاعضاء من إدارة مواضيعهم.';


please before put the translation in the file be sure that the file encode is UTF-8

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





M-DVD

Quote from: islam2hamy on June 06, 2009, 05:54:42 AM
nice mod

Arabic translation (utf-8) :

$txt['mboards_moderatorTopicStarter'] = 'إسمح لكاتب الموضوع بإدارته';
$txt['mboards_moderatorTopicStarter_desc'] = 'هذا التصريح يمكن الاعضاء من إدارة مواضيعهم.';


please before put the translation in the file be sure that the file encode is UTF-8


Thanks, have been uploaded :D

pinoypetfinder

great mod!
is it also possible on this mod to only have the ff :
- will only work on selected board
- topic starter can edit their post anytime they want
- reply to their thread is not allowed (without putting that "padlock" image)

?

M-DVD

June 09, 2009, 11:07:58 PM #15 Last Edit: June 10, 2009, 09:45:16 PM by M-DVD
Quote from: pinoypetfinder on June 08, 2009, 10:49:35 PM
great mod!
is it also possible on this mod to only have the ff :

- will only work on selected board
- topic starter can edit their post anytime they want
- reply to their thread is not allowed (without putting that "padlock" image)

?

1.- This feature already exists.

2.- If can the moderator local, then also the topic starter.

pinoypetfinder

thanks, but i'm referring to the "classified" ad section of our forum. we're thinking of just letting regular users to start and update their own thread. nobody else can reply to their thread. i don't think it's a good idea to make everyone moderator local? (sorry for confusion. i just desperately need something like that :/

M-DVD

Quote from: pinoypetfinder on June 10, 2009, 12:59:58 AM
thanks, but i'm referring to the "classified" ad section of our forum. we're thinking of just letting regular users to start and update their own thread. nobody else can reply to their thread. i don't think it's a good idea to make everyone moderator local? (sorry for confusion. i just desperately need something like that :/

With this MOD the user are "Moderator Local" only in own topic.

Really aren't Moderator Local, because they not have the badge and have less permissions.

But I don't know a solution for automatical for make 'topics closed' in X board.

pinoypetfinder

ooh okay, now i get how this mod works. maybe we'll just add a rule not to reply to any threads (aka no bumping of threads ^^ hehe). thank you :)

watchhorse

Wij zoeken diergerelateerde fora ter overname.
Pb gerust als je geen tijd of zin meer hebt om uw forum te onderhouden.

karavan

SMF 2.0 RC2 compatibel? It is very needed, please...

Manual Install Instructions for SMF 2.0 RC2:

Unknown column 'b.moderatorTopicStarter' in 'field list'
Файл: C:\server\xampp\htdocs\forum\Sources\Subs-Boards.php
: 1029


Bugo

Wish to the new version: the possibility of moderating by user groups, elected their own topics in the appropriate boards.

Joker™

any update on this , as i've changed the code a bit , problem is being created by

install_2.php

i think database value must be different in RC3

Hope someone will look into this
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

Try this:
<?php
/*
<id>M-DVD:TopicStarterModerator</id>
<name>Topic Starter Moderator</name>
<version>1.0</version>
*/
global $smcFunc;

db_extend('packages');

$smcFunc['db_add_column'](
'{db_prefix}boards',
array (
'name' => 'moderatorTopicStarter',
'type' => 'TINYINT',
'size' => '3',
'null' => '', // NOT NULL
'default' => '0',
'auto' => ''
),
'',
''
);
?>

Joker™

Thanks alot bugo that worked , but i thought this mod will give me power to choose who to make topic moderator.

I mean i don't want everyone to be a moderator of there thread's , but i want some specific users who can moderate the threads started by them through out the forum.

can u help me out in it ?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

I think you better contact with the author of mod.

Joker™

Quote from: Bugo on June 08, 2010, 02:56:13 AM
I think you better contact with the author of mod.

Last Active: February 14, 2010, 09:19:25 AM

He doesn't seem to be active that much :(
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

drhamza

any chance of having this for RC3? i guess only a couple of lines need to be fixed, but i'm not a programmer myself so help me please, i need this mod, thanks

Prime32

Would be nice to have an update for 2.0.x, if anyone's interested - there's a lot of stuff you could do with this.

e.g. enable this on a board where no one can post without approval (but moderators can see unapproved posts), and you now have private threads for one-on-one with staff.

Sapozhnik

April 06, 2013, 01:56:40 AM #30 Last Edit: April 06, 2013, 04:09:30 AM by Sapozhnik
For Final SMF 2.0.х make in file install_2.xml two changes:





Find: <operation>
<search position="before"><![CDATA[
<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';]]></search>
<add><![CDATA[
echo '
<tr class="windowbg2" id="moderatorTopicStarter_div">
<td>
<b>', $txt['mboards_moderatorTopicStarter'], ':</b><br />
<span class="smalltext">', $txt['mboards_moderatorTopicStarter_desc'], '</span><br />
</td>
<td valign="top" align="left">
<input type="checkbox" name="moderatorTopicStarter"', $context['board']['moderatorTopicStarter'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';]]></add>
</operation>


Replace:
<operation>
<search position="before"><![CDATA[
<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';
]]></search>
<add><![CDATA[
echo'
<div id="moderatorTopicStarter_div">
<dl class="settings">
<dt>
<b>', $txt['mboards_moderatorTopicStarter'], ':</b><br />
<span class="smalltext">', $txt['mboards_moderatorTopicStarter_desc'], '</span><br />
</dt>
<dd>
<input type="checkbox" name="moderatorTopicStarter"', $context['board']['moderatorTopicStarter'] ? ' checked="checked"' : '', ' class="input_check" />
</dd>
</dl>
</div>';
]]></add>
</operation>






find:
<operation>
<search position="replace"><![CDATA[
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme,]]></search>
<add><![CDATA[
b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.moderatorTopicStarter,]]></add>
</operation>

Replace:
<operation>
<search position="replace"><![CDATA[b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme,]]></search>
<add><![CDATA[b.board_order, b.count_posts, b.member_groups, b.id_theme, b.override_theme, b.moderatorTopicStarter,]]></add>
</operation>





And in file install_2.php one changes:
Find: 'boards',


Replace: {db_prefix}'boards',


Sapozhnik

Topic Starter Moderator can't change first message in topic :(

Nightcat

Heh!
This function for me is the most interesting... it`s really need that topic starter can edit  first message in his topic - other not need...

Sapozhnik

Author wrote that permission depends on this string:
$not_topic_moderator = array('moderate_board', 'make_sticky', 'lock_any', 'remove_any', 'merge_any', 'split_any'); but i don't know what need add/delete for changing first post.
I get error message that time for edit was finish :(

Advertisement: