From: Steve W. <sw...@wc...> - 2000-07-28 16:09:39
|
On Fri, 28 Jul 2000, Jeff Dairiki wrote: > Once (if) the code is working, I see reason to let paranoia be the motivation > for saving whole pages. I think some criteria like: > > if ( ( [number of lines in diff] < [number of lines in page] / FACTOR ) > || ( version % INTERVAL != 0 ) ) > [Save diff] > else > [Save whole page] > > would work fine. Simple solution. Hard to read though ;-) > >Sure, check it into your hacks branch... I checked it out a couple of days > >ago but was unable to make it work. I like the new switch:case in > >index.php3. > > Why wouldn't it work? Any ideas? Yes: Syntax error on line 286 of wiki_renderlib.php3. I tried to figure out why it thought so but in the 5 minutes I spent it just didn't want to instantiate any objects for some reason. (Line 286 has a call to new for some class and the method has a comment in the param list). > I could take them or leave them personally. I added it is an example > extension module. The idea is that table support (or whatever) can be > added by including a extension module in wiki_config. (Same thing for > inline HTML.) Inline images could be done the same way. I see. Sounds neat! > Speaking of which, another way to handle the inline image idea > is to allow <IMG> tags within the page. (They would have to be parsed > enough to make sure the URL's in them were sane.) Hrmm. In the direction you are going, would it be possible to let the Wiki admin: * choose classic Wiki markup * choose extended Wiki markup * choose basic HTML * or create their own markup as the markup language, when the Wiki is first set up? I wouldn't want to allow them to choose all of them necessarily, if it means conflicts and parsing headaches. > Yes this would require both account and session information to be stored in > the database, but would be straightforward enough. Then one would have the > hooks for other fancy features like "mail me a note whenever this page > changes". People have asked for that, and I think they will be less than happy if the Wiki is really active and they get flooded... for low activity Wikis I think that's fine, and I'd email the whole page plus the diff and a link to edit the page, drawing them back into the Wiki. > And when and if you (all) give the word I'm happy to be the one to merge my > hacks back into the main branch. (Either all of them or some of them.) I'll buy you a beer someday :-) sw ...............................ooo0000ooo................................. Hear FM quality freeform radio through the Internet: http://wcsb.org/ home page: www.wcsb.org/~swain |