Disable 'last edit by....' for Administrators

Started by Doburpally, May 09, 2011, 07:45:07 PM

Previous topic - Next topic

bruce86


Branko.

Quote from: Reaper.CSF. on September 20, 2011, 09:51:12 AM...other language edits are also welcome ...
Translation for serbian latin, serbian cyrillic and croatian iso/utf8
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Doburpally

Quote from: Branko. on September 20, 2011, 02:40:32 PM
Quote from: Reaper.CSF. on September 20, 2011, 09:51:12 AM...other language edits are also welcome ...
Translation for serbian latin, serbian cyrillic and croatian iso/utf8

Added to the package, Thanks Branko. ;)

Doburpally

Any more language edits, they will be uploaded next month sometime ;)

The language edits are welcome and they will be added to the package, just, they won't be uploaded till next month 8)

Thanks :D

Xavi-Nena

Quote from: Reaper.CSF. on July 17, 2011, 07:21:32 AM
Quote from: Tomy Tran on July 15, 2011, 04:29:09 AM
I still observing my forum, seem that some posts I have created before install this mod will not effected. All after are effected!

That's correct, all posts and topics made before installation of this mod will have last edit by.
All new posts will no longer see last edit by.

However, if you modify the posts that was done before mod was installed and then click save it should no longer show last edit by ;)

sadly even if i modify a post done before mod was installed after install it does not hide the line, it shows the updated time.

Doburpally

#45
Quote from: Xavi-Nena on September 21, 2011, 07:03:53 PM
sadly even if i modify a post done before mod was installed after install it does not hide the line, it shows the updated time.

Ah yes, that's right, all posts before the mod was installed will not be effected, meaning, they will always display "« Last Edit: by »".

I'm sorry for the confusion. :-[

Doburpally

I'm working on the next update (v1.5)

I have added 1.1.xx support along with 2.0 RCx and 2.0, 2.0.1 ;)

If there are more suggestions for language translations, I'll include them in the package as well.

I am still working on an enable / disable feature in admin cp for 1.1.xx.

bruce86


Tomy Tran

Quote from: andershz on August 12, 2011, 03:47:32 AM
Quote from: Reaper.CSF. on August 06, 2011, 02:48:03 AM
I originally had Enable or Disable "« Last Edit: by »" for Administrators Mod

I still gotta get the enable / disable to work in 1.1.xx, so I will change the line to read:
Enable or Disable "« Last Edit: by »" for Administrators Mod
Box checked = Mod enabled.
Box un-checked = Mod disabled.


That makes it a bit clearer, but still, isn't it unnecessarily complicated?
After all, the primary information is whether  "« Last Edit: by »" for Administrators is displayed or not.
If this is achieved through a mod or not is secondary.
No big deal, I have changed it in my language file, so I'm happy...

Otherwise, you can choose the other way to explain it like:

- Switch this mod on
- Turn this mod on
- Active this mod
- Wipe ""admin edit" away
- ...

A lot of words to use, you no need just type enable or disable.

Doburpally

#49
Quote from: bruce86 on September 22, 2011, 04:04:34 PM
Do not need new translations?

Agreed and noted ;)

Quote from: Tomy Tran © 2012 on September 22, 2011, 11:41:39 PM
Otherwise, you can choose the other way to explain it like:

- Switch this mod on
- Turn this mod on
- Active this mod
- Wipe ""admin edit" away
- ...

A lot of words to use, you no need just type enable or disable.

Good point ;) thanks m8

I'll think of something and add it in new version :)

// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Enable "« Last Edit: by »" for Administrators' Mod;
// Disable - Enable Last Edit by for Admins

dsantana

Could you add an option to this so it would work with Global Moderators as well?
SMF 2.0 | VJB2.0 Custom Theme | Simple Portal 2.3.3

Doburpally

#51
Quote from: dsantana on September 25, 2011, 06:34:32 PM
Could you add an option to this so it would work with Global Moderators as well?

I have successfully added support for Global Moderators as well as Administrators.

However, I was working on a custom section to add the member-group ID's separated by commas like "1, 2, 3, 4, 5,", however, that caused more problems.
I have managed to add both admin and g_mod so they both get to enjoy editing posts with out the « Last Edit: by ». ;)

This new code will be added in the new version, which will be released in October. ;)

Just need translations for this new Modifications.#####.php
// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Enable "« Last Edit: by »" for Administrators' Mod;

dsantana

Awesome thanks, will install as soon as it's released...
SMF 2.0 | VJB2.0 Custom Theme | Simple Portal 2.3.3

Doburpally


Branko.

...sorry but in 1.5 , modifications2_0.xml  file is old, without italian, serbian latin, serbian cyrillic and croatian iso/utf8 , readme.txt is ok

Here, is modified modifications2_0.xml
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Doburpally

#55
That's because I have changed the line
// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Enable "« Last Edit: by »" for Administrators Mod';

;) I did post this before that I have removed "or Disable" and added Mod on the end.

Not going to add it to the package as it's the old
// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Enable or Disable"« Last Edit: by »" for Administrators';


Branko.

Congratulations!!
I hope,for 1.1.xx also....  :)
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Inti31

#58
I've upgrade to v1.6 - all works fine.
One thing - I've to reduce the mod name because when trying to install it by using the package manager it says "not found".
When I use for ex "DisableLE1.6.zip" then everything is okay.

here is my German translation:

<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Aktiviert "« Letzte &#196;nderung: am/durch »" f&#252;r Administratoren und Globale Moderatoren';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Disable - Enable Last Edit by for Admins
$txt['enable_disable_last_edit_by'] = 'Aktiviert "« Letzte &#196;nderung: am/durch »" f&#252;r Administratoren und Globale Moderatoren';
]]></add>
</operation>
</file>


shot:


cheers Inti31
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Ninoslav

Editing a post through quick edit button gives a nasty error:

2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument
File: /home/xxx/public_html/Sources/Post.php
Line: 1902
∑∆T M∑! :)

Advertisement: