News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Remove "Last Edit"

Started by Diego Andrés, May 02, 2012, 11:29:41 AM

Previous topic - Next topic

NanoSector

Hey tobyf,

I need to rewrite this mod for a great deal, I'll take your suggestions into account ASAP :)

Thanks a lot for your points!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Quote from: tobyf on August 22, 2012, 03:32:47 PM
Quote from: Yoshi2889 on June 01, 2012, 12:14:10 PM
Does anybody need extra features in this? Maybe a switch to enable/disable the "Last Edit" text? No idea if that's of any use to anyone.

I always have a bag of ideas.

1)
Right now, I can force the admin of a board to remove the "Last Modified Time" of my posts by luring them on one a page of mine, which includes this image:

img src=".....index.php?action=unsetedittime;post=1;topic=2;uid=3"

If I get anyone with the appropriate permissions visit my website, they will automatically trigger your script and remove my modification time for me, even if I don't have permission myself.

It would be nice to prevent this. :3
I fixed this, though no idea why you want to put that in an <img> tag.

Quote2)
Add Logging, removing the modification time should be visible in the mod centre in the appropriate places.
Well, I was trying to do this but have yet to figure that out - I'll track it for later addition :)

Quote3)
I also filed a security report on your mod, as it is possible to remove the modification time from other posts than your own, even if you don't have permission for it. It's a pretty obvious bug, looking at the source. It'd be nice if that was fixed. "Dirty hacks" as you put it in your source aren't always the best things nor cool, sometimes people want a clean solution. :3
I read it -- Fixed that. The edit is one that's needed for the mod to function.

Quote4)
Optimize efficiency. If someone isn't allowed to do it at all, quit right away. No need to set off a SQL query. Also, you don't need to fetch "subject" from the database if you don't use it - just fetch "SELECT 1". Though, you might want to fetch id_member ...
Fixed; it now selects id_topic, id_msg and id_member from the messages table and uses them (I always pick data from the database regardless if the same data's available before -- no idea why, just like that :P)

QuoteAnyhow, I commend you for your documentation.
Thanks!
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Branko.

Hmm...when I try (As an administrator) to remove this sign (post by other user) simply is not possible:
An Error Has Occurred!
You are not allowed to perform this action.
Where is the error?
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

NanoSector

Quote from: Branko. on August 26, 2012, 09:14:53 AM
Hmm...when I try (As an administrator) to remove this sign (post by other user) simply is not possible:
An Error Has Occurred!
You are not allowed to perform this action.
Where is the error?
Damn, yet another permission issue.

Let me check this real quick on my test site.

* Yoshi2889 thinks he is going to rewrite the mod
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

I've updated the mod again, sorry for so many releases in a short time :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Branko.

Now is OK..
Thanks for an excellent mod.  :)
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

NanoSector

Quote from: Branko. on August 26, 2012, 01:45:10 PM
Now is OK..
Thanks for an excellent mod.  :)
No problem! I'm glad I could provide a tool you like :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Branko.

Translation for serbian latin
<file name="$languagedir/Modifications.serbian_latin.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'ukloni ovu oznaku';
$txt['remove_last_edited_error_1'] = 'Nevažeći resursi u funkciji  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Nije vam dozvoljeno da sprovedete ovu akciju.';
$txt['remove_last_edited_error_3'] = 'Pozvana nevažeća akcija.';
$txt['permissionname_rlem_do'] = 'Ukloni \'Zadnja promena od ...\' iz poruka';
$txt['permissionname_rlem_do_own'] = 'Ukloni \'Zadnja promena od ...\' iz svojih poruka';
$txt['permissionname_rlem_do_any'] = 'Ukloni \'Zadnja promena od...\' iz bilo koje poruke';
$txt['permissiongroup_simple_rlem_simple'] = 'Ukloni Zadnja Promena Mod dozvole';
$txt['permissiongroup_rlem_classic'] = 'Ukloni Zadnja Promena Mod dozvole';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.serbian_latin-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'ukloni ovu oznaku';
$txt['remove_last_edited_error_1'] = 'Nevažeći resursi u funkciji  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Nije vam dozvoljeno da sprovedete ovu akciju.';
$txt['remove_last_edited_error_3'] = 'Pozvana nevažeća akcija.';
$txt['permissionname_rlem_do'] = 'Ukloni \'Zadnja promena od ...\' iz poruka';
$txt['permissionname_rlem_do_own'] = 'Ukloni \'Zadnja promena od ...\' iz svojih poruka';
$txt['permissionname_rlem_do_any'] = 'Ukloni \'Zadnja promena od...\' iz bilo koje poruke';
$txt['permissiongroup_simple_rlem_simple'] = 'Ukloni Zadnja Promena Mod dozvole';
$txt['permissiongroup_rlem_classic'] = 'Ukloni Zadnja Promena Mod dozvole';
]]></add>
</operation>
</file>
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Branko.

Translation for serbian cyrillic
<file name="$languagedir/Modifications.serbian_cyrillic.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'уклони ову ознаку';
$txt['remove_last_edited_error_1'] = 'Неважећи ресурси у функцији  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Није вам дозвољено да спроведете ову акцију.';
$txt['remove_last_edited_error_3'] = 'Позвана неважећа акција.';
$txt['permissionname_rlem_do'] = 'Уклони \'Задња промена од ...\' из порука';
$txt['permissionname_rlem_do_own'] = 'Уклони \'Задња промена од ...\' из својих порука';
$txt['permissionname_rlem_do_any'] = 'Уклони \'Задња промена од...\' из било које поруке';
$txt['permissiongroup_simple_rlem_simple'] = 'Уклони Задња Промена Мод дозволе';
$txt['permissiongroup_rlem_classic'] = 'Уклони Задња Промена Мод дозволе';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.serbian_cyrillic-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'уклони ову ознаку';
$txt['remove_last_edited_error_1'] = 'Неважећи ресурси у функцији  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Није вам дозвољено да спроведете ову акцију.';
$txt['remove_last_edited_error_3'] = 'Позвана неважећа акција.';
$txt['permissionname_rlem_do'] = 'Уклони \'Задња промена од ...\' из порука';
$txt['permissionname_rlem_do_own'] = 'Уклони \'Задња промена од ...\' из својих порука';
$txt['permissionname_rlem_do_any'] = 'Уклони \'Задња промена од...\' из било које поруке';
$txt['permissiongroup_simple_rlem_simple'] = 'Уклони Задња Промена Мод дозволе';
$txt['permissiongroup_rlem_classic'] = 'Уклони Задња Промена Мод дозволе';
]]></add>
</operation>
</file>
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Branko.

Translation for croatian
<file name="$languagedir/Modifications.croatian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'ukloni ovu oznaku';
$txt['remove_last_edited_error_1'] = 'Nevažeći resursi u funkciji  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Nije vam dozvoljeno da sprovedete ovu akciju.';
$txt['remove_last_edited_error_3'] = 'Pozvana nevažeća akcija.';
$txt['permissionname_rlem_do'] = 'Ukloni \'Zadnja promjena od ...\' iz poruka';
$txt['permissionname_rlem_do_own'] = 'Ukloni \'Zadnja promjena od ...\' iz svojih poruka';
$txt['permissionname_rlem_do_any'] = 'Ukloni \'Zadnja promjena od...\' iz bilo koje poruke';
$txt['permissiongroup_simple_rlem_simple'] = 'Ukloni Zadnja Promjena Mod dozvole';
$txt['permissiongroup_rlem_classic'] = 'Ukloni Zadnja Promjena Mod dozvole';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.croatian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Remove "Last edit" mod
$txt['remove_edit_sign'] = 'ukloni ovu oznaku';
$txt['remove_last_edited_error_1'] = 'Nevažeći resursi u funkciji  rlem_do, Subs-RemoveLastEditMod.php';
$txt['remove_last_edited_error_2'] = 'Nije vam dozvoljeno da sprovedete ovu akciju.';
$txt['remove_last_edited_error_3'] = 'Pozvana nevažeća akcija.';
$txt['permissionname_rlem_do'] = 'Ukloni \'Zadnja promjena od ...\' iz poruka';
$txt['permissionname_rlem_do_own'] = 'Ukloni \'Zadnja promjena od ...\' iz svojih poruka';
$txt['permissionname_rlem_do_any'] = 'Ukloni \'Zadnja promjena od...\' iz bilo kojie poruke';
$txt['permissiongroup_simple_rlem_simple'] = 'Ukloni Zadnja Promjena Mod dozvole';
$txt['permissiongroup_rlem_classic'] = 'Ukloni Zadnja Promjena Mod dozvole';
]]></add>
</operation>
</file>
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

NanoSector

Oh wow thanks Branko.! I'll be updating the GitHub packages in a short while :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

After a ****** fight with the mod site I got the new release with Branko.'s translations and a Dutch translation uploaded.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

oloyede JAMIU

good work yoshi2889,

keep it up.
Do u need free things and free information
Visit http://www.freegist.com.

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones

Yoshi, where did you move my posts to?

NanoSector

My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

IngeJones


johnpaul2k2

is it possible to remove all "last edit" automatically???

Advertisement: