Akira Posted May 19, 2010 Share Posted May 19, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/ Share on other sites More sharing options...
gwolgamott Posted May 19, 2010 Share Posted May 19, 2010 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). Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/#findComment-1060729 Share on other sites More sharing options...
Akira Posted May 19, 2010 Author Share Posted May 19, 2010 Thanks for the reply! Already doing that, but as the pages on the wiki are growing, it's hard to see the text which has been updated. Thats the problem Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/#findComment-1060746 Share on other sites More sharing options...
gwolgamott Posted May 19, 2010 Share Posted May 19, 2010 Oh you just want to send the text that was updated only? Sorry, about that misread that I think. Let me know if that's right? Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/#findComment-1060793 Share on other sites More sharing options...
gwolgamott Posted May 19, 2010 Share Posted May 19, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/#findComment-1060800 Share on other sites More sharing options...
Akira Posted May 20, 2010 Author Share Posted May 20, 2010 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! Quote Link to comment https://forums.phpfreaks.com/topic/202266-compare-and-print-altered-text/#findComment-1060964 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.