News:

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

Main Menu

Show all edits in messages

Started by Rudolf, August 07, 2007, 06:09:56 PM

Previous topic - Next topic

Rudolf

Link to Mod

*****************************************************
Show all edits in messages - Modification for SMF
version 1.0
© 2007, Rudolf Martincsek
*****************************************************
This mod will allow you to track edits to posts by adding the last edit time into the body of the post.
You can disable in Admin -> Posts and Topics -> "Hide all edits".
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

ivo2296

But when user is editing his post he can just delete the following:
[edited name=ivo2296 date=1186684928][/edited]
[edited name=ivo2296 date=1186685048][/edited]

Cause it is shown in message body.

CiOooo

yes, user can delete those tags

and i want to say a problem about this mod

i installed all codes. but after all operations, i couldnt save the changes on admin panel

i think, the mod requires a database query.

can you help me about that situation ??



L.G.S

This mod isn't really that useful unless you can see what the person edited.
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Mohamed GadAllah

I've got an error telling:

"//-Show all edits in messages MOD- Start $txt['hide_all_edits_title'] = 'Don\'t show all the edit times in messages'; $txt['hide_all_edits_warning'] = 'This affects only future editing!'; $txt['edited'] = 'Edited'; //-Show all edits in messages MOD- End"

Also when I've tested it using SMF Package Parser!, I've got another eror telling:


ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: C:\Inetpub\wwwroot\smfhacks\packageparser\package.php:133
Errors encountered while parsing XML file:

   1. Entity: line 15: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xA9 0x20 0x32 0x30
   2. � 2007, Rudolf Martincsek
   3. ^

Stack Trace:
#0 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(133): SimpleXMLElement->__construct('<?xml version="...')
#1 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(94): parsePackageInfoXML('/tmp//package-i...', 'install', 'all')
#2 C:\Inetpub\wwwroot\smfhacks\packageparser\package.php(770): parseArchive('C:\upload\php31...', 'install', 'all')
#3 {main}

XML File:

<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">

   <id>rudolf:showalledits</id>
   <name>Show all edits in messages</name>
   <version>1.0</version>
   <type>modification</type>

   <install>
      <readme type="inline" parsebbc="true">
*****************************************************
Show all edits in messages - Modification for SMF
version 1.0
� 2007, Rudolf Martincsek
*****************************************************
This mod will allow you to track edits to posts by adding the last edit time into the body of the post.
You can disable in Admin -&gt; Posts and Topics -&gt; "Hide all edits".
</readme>
      <modification>changes.xml</modification>
   </install>

   <uninstall>
      <readme type="inline" parsebbc="true">
*****************************************************
Show all edits in messages - Modification for SMF
version 1.0
� 2007, Rudolf Martincsek
*****************************************************
This mod will allow you to track edits to posts by adding the last edit time into the body of the post.
You can disable in Admin -&gt; Posts and Topics -&gt; "Hide all edits".
</readme>
      <modification reverse="true">changes.xml</modification>
   </uninstall>

</package-info>


Please advise
Mohamed:)

Rudolf

Quote from: MGadAllah on September 13, 2007, 08:43:28 PM
I've got an error telling:

"//-Show all edits in messages MOD- Start $txt['hide_all_edits_title'] = 'Don\'t show all the edit times in messages'; $txt['hide_all_edits_warning'] = 'This affects only future editing!'; $txt['edited'] = 'Edited'; //-Show all edits in messages MOD- End"

You mean, that you see this on the top of the page?
Open the modification.english.php and move all the text that is after the ?> line before it.

About the other error, that's just the SMF package Parser being too strict on checking the xml file.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Rudolf

The edits are meant to be visible when posting so the user can remove them. It's not meant as an administrative tool for. If as an administrator you want to see all the edits made on the forum turn on the moderation log and with some small changes you can make it to log all the edits to messages. This is more like an option for users.

Quote from: L.G.S on August 10, 2007, 03:30:19 PM
This mod isn't really that useful unless you can see what the person edited.
Showing what was edited is out of the scope of this mod. This mod is intended to show the edits made to a post, if the user wants it. It is designed to lightweight and simple. One day I might add some features to it, or write a new mod to handle the other, more specific needs.
I will update all my mods in the next few weeks. Thanks for your patience.

SVG-Collapse (you need an SVG compliant browser)

Mr ChriZ

This sounds just like what I'm looking for!
Is there any chance of it being updated for 2.0?

Cheers,
Chris

aaa3


Advertisement: