Intouch modification
-
I use NucleusCMS on another blog and want to hide totally the author’s email adress on my new WP blog, so I decided to look for a plugin that would allow me to send a mail through a mail form.
Neither Intouch, Contact Form or PSXMail can do that…
So here’s the modification I made on Intouch on my blog:
1/ added a “get_usermail(userid)” function to Intouch
2/ modified the form to add a hidden field “user_id”
3/ the form is accessed through ?page_id=8&user_id=X so the hidden field gets its value from a _Get[user_id]
4/ modified the javascript so it send the new POST value (because the javascript wouldn’t do this…)
5/ modified the functions (there are 2 of them) to send the mail to send it either to “intouch_email” if user_id is not set, or to the author if user_id is set.This way I have a standard Intouch and I can use it to send mail to authors and members of my blog!
If someone with good php/wp/javascript knowledge would like to take a look at my really really poor code I’d be glad to send it to him.
- The topic ‘Intouch modification’ is closed to new replies.