Jump to content

Compare and print altered text


Akira

Recommended Posts

Hey,

 

I am building some sort of wiki page which has a lot of text on each page.

 

Now multiple people are editing this wiki page, and if person A is editing I would like to send person B and C an email with the part of the text which has been edited.

 

Any idea's on how to work this out?

 

Regards, Maarten

 

Link to comment
Share on other sites

Could just add into the script to send emails automatically every time it's uploaded to all the contributors of the page (although this could get quite annoying on a contributor end so build in a flag that says yes notify... or no don't).

Link to comment
Share on other sites

Could do a script comparing the the old one before it was updated and the new one. A scan of text of the old copy comparing to the new one noting the additions/changes at each point... hmmm theoretically this seems simple but the more I think of how to accomplish this after it finds the first change and continues has me baffled... maybe someone else has an idea

 

 

EDIT:  Here's a class I came across that compares lines, not sure how well it'll work but maybe you can modify it for your needs.

 

http://www.weberdev.com/get_example-4323.html

Link to comment
Share on other sites

haha that was my first reaction as well, simply compare the to text and output and email the changes.. but the more you think about it, the tougher it gets ;) thanks for the link though!  i'll have a look!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.