Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: M-DVD on February 08, 2009, 05:36:32 AM

Title: Topic Starter Moderator
Post by: M-DVD on February 08, 2009, 05:36:32 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1621)




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






  • Autor:
M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
  • Version:
1.0
  • Release:
05th February 2009
  • Languages:
(http://www.simplemachines.org/site_images/lang/english.gif) (http://www.simplemachines.org/site_images/lang/english_british.gif) (http://www.simplemachines.org/site_images/lang/spanish.gif) (http://www.simplemachines.org/site_images/lang/spanish_latin.gif) (http://www.simplemachines.org/site_images/lang/portuguese_pt.gif) (http://www.simplemachines.org/site_images/lang/turkish.gif)
(http://www.simplemachines.org/site_images/lang/czech.gif) (http://www.simplemachines.org/site_images/lang/arabic.gif)
  • Compatible With:
SMF 1.1.1 - 1.1.9
SMF 2 Beta 3 & 4 & RC1-X




(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif)(http://www.simplemachines.org/community/Themes/smsite/images/star.gif) (http://www.simplemachines.org/community/index.php?action=post;topic=291544.0)
Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=291544.0)
(http://www.simplemachines.org/site_images/modtitlebar.png)(http://www.simplemachines.org/site_images/modtitlebar.png)(http://www.simplemachines.org/site_images/modtitlebar.png) (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997)
(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif)(http://www.simplemachines.org/community/Themes/smsite/images/bbc/img.gif) (http://custom.simplemachines.org/mods/index.php?mod=1621)
Images (http://custom.simplemachines.org/mods/index.php?mod=1621)
(https://www.paypal.com/en_GB/i/btn/btn_donate_SM.gif) (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)Help support my MODs (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4587421)

Features:



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

Thanks to BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) 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 (http://www.simplemachines.org/community/index.php?action=post;topic=291544.0)

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

Características:



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

Fin.
Title: Re: Topic Starter Moderator
Post by: candidosa2 on February 08, 2009, 09:38:10 AM
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>
Title: Re: Topic Starter Moderator
Post by: Burke ♞ Knight on February 08, 2009, 02:15:29 PM
Great job, my friend. :)
Title: Re: Topic Starter Moderator
Post by: M-DVD on February 08, 2009, 08:14:08 PM
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.
Title: Re: Topic Starter Moderator
Post by: 4Kstore on February 08, 2009, 08:33:23 PM
Nice Mod!!!! thanks!
Title: Re: Topic Starter Moderator
Post by: Özgür on February 09, 2009, 07:04:04 AM
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>
Title: Re: Topic Starter Moderator
Post by: M-DVD on February 09, 2009, 10:40:18 AM
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
Title: Re: Topic Starter Moderator
Post by: MaXiForum.cz 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.';


;)
Title: Re: Topic Starter Moderator
Post by: 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 :-\
Title: Re: Topic Starter Moderator
Post by: M-DVD on February 10, 2009, 02:35:45 PM
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.
Title: Re: Topic Starter Moderator
Post by: 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???
Title: Re: Topic Starter Moderator
Post by: M-DVD on February 11, 2009, 02:55:40 PM
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.
Title: Re: Topic Starter Moderator
Post by: 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
Title: Re: Topic Starter Moderator
Post by: M-DVD on June 07, 2009, 07:06:38 PM
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
Title: Re: Topic Starter Moderator
Post by: 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)

?
Title: Re: Topic Starter Moderator
Post by: M-DVD on June 09, 2009, 11:07:58 PM
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.
Title: Re: Topic Starter Moderator
Post by: 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 :/
Title: Re: Topic Starter Moderator
Post by: M-DVD on June 10, 2009, 09:43:11 PM
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.
Title: Re: Topic Starter Moderator
Post by: pinoypetfinder on June 12, 2009, 12:08:15 PM
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 :)
Title: Re: Topic Starter Moderator
Post by: watchhorse on December 21, 2009, 02:01:17 PM
SMF 2.0 RC2 compatibel???
Title: Re: Topic Starter Moderator
Post by: karavan on April 28, 2010, 05:12:00 PM
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
Title: Re: Topic Starter Moderator
Post by: karavan on May 02, 2010, 06:03:45 AM
UP
Title: Re: Topic Starter Moderator
Post by: Bugo on May 22, 2010, 11:51:17 PM
Wish to the new version: the possibility of moderating by user groups, elected their own topics in the appropriate boards.
Title: Re: Topic Starter Moderator
Post by: Joker™ on June 07, 2010, 03:27:27 PM
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
Title: Re: Topic Starter Moderator
Post by: Bugo on June 07, 2010, 10:48:19 PM
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' => ''
),
'',
''
);
?>
Title: Re: Topic Starter Moderator
Post by: Joker™ on June 08, 2010, 02:10:16 AM
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 ?
Title: Re: Topic Starter Moderator
Post by: Bugo on June 08, 2010, 02:56:13 AM
I think you better contact with the author of mod.
Title: Re: Topic Starter Moderator
Post by: Joker™ on June 08, 2010, 10:44:42 AM
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 :(
Title: Re: Topic Starter Moderator
Post by: drhamza on June 21, 2010, 07:37:21 PM
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
Title: Re: Topic Starter Moderator
Post by: Prime32 on February 10, 2013, 09:50:16 AM
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.
Title: Re: Topic Starter Moderator
Post by: Sapozhnik on April 06, 2013, 01:56:40 AM
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',

Title: Re: Topic Starter Moderator
Post by: Sapozhnik on May 19, 2013, 04:09:47 AM
Topic Starter Moderator can't change first message in topic :(
Title: Re: Topic Starter Moderator
Post by: Nightcat on November 12, 2013, 03:45:21 PM
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...
Title: Re: Topic Starter Moderator
Post by: Sapozhnik on December 01, 2013, 06:23:44 AM
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 :(