Question
Hi Everyone
I have a specific query with regards to separate Web webmasters. At the moment, for each Web, I have in Web.WebPreferences a
Set WEBWEBMASTEREMAIL=x@y.com.
My problem is that for my registration, I want the person to register what web they want to sign up for (which I have already done) and then instead of emailing the Main Webmaster, an email is sent to the individual Web Webmaster (if that makes sense.)
I could do it myself, but there are a few things that I need to know and I cannot find on the web at the moment
- Where the WebPreferences are stored in $session
- How easy is it to hack Register.pm to change the email address to the one I want.
Thanks for any help I receive. Just out of interest, is there anywhere on the web which lists all the possible methods available to $session? I'm pretty new to this perl thing and it's just too big for my little brain!
Environment
--
ChrisCauser - 14 Dec 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
The link below has something which is promising:
TWikiPrefsDotPm
WebPreferencesValue looks promising. However, the documentation says that it takes its settings from "webhome." Is this a typo and it takes it from WebPreferences, or do I have to search further?
--
ChrisCauser - 14 Dec 2007
Just in case anyone's interested, I have done my own implementation of this. If anyone wants a copy of the documentation I wrote, please let me know!
--
ChrisCauser - 23 Dec 2007
Thanks Chris. If anyone shows interest you can post a how-to in the Codev web.
In general, for an easier upgrade it is better not to change the core code; if possible, use only the official Plugins API,
TWikiFuncDotPm.
--
PeterThoeny - 31 Dec 2007
Thanks Peter.
I'm pretty new to perl (and computing in general) so my implementation almost certainly isn't the best one. I thought about creating a plugin, but some of the framework wasn't there.
--
ChrisCauser - 02 Jan 2008