[Pmwiki-users] porting eProtect

Karl Loncarek dh2mll
Thu Nov 11 12:59:57 CST 2004


Hi,
I'm currently trying to port the eProtect script that works with PmWiki 1.x to PmWiki2.

Even I didnt have a clue of PHP I managed to get the first part (the decoding) work again, i.e. already encoded emails are displayed correctly (additionally alternate text is now possible).

My main problem is now: How or where to interrupt the 'edit' (when saving for new pages, when opening for old pages). I need access to the text to be saved/loaded.
 I think I can manage the replacing/encoding of mailto:

I tried to hook into Handleactions['edit'], but this didn't work. I did it the following way (at least I tried):
1. Backup of Handleactions['edit']
2. retrieving text (does not work) I tried $_POST['text'], but it says: "index 'text' not defined".
3. some working with text, mainly some string replacing
4. saving changed text
5. call original handelactions['edit'] routine

It was done this way in the old version and I tried the same way, but it didn't work. Any hints?

Regards
Klonk









More information about the pmwiki-users mailing list