Tags:
create new tag
view all tags

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

  1. Where the WebPreferences are stored in $session
  2. 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

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Kubuntu Gutsy, kernel 2.6.22-14
Web server: Apache 2.2.4
Perl version: 5.8.8
Client OS: Kubuntu Gutsy
Web Browser: Firefox 2.0
Categories: Registration, Missing functionality, Mail

-- ChrisCauser - 14 Dec 2007

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2008-01-02 - ChrisCauser
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.