newaccount.php

News and discussion about beta versions and CVS changes
User avatar
matt_t_hat
Posts: 1123
Joined: Sun Aug 21, 2005 4:45 pm
Location: UK
Contact:

newaccount.php

Postby matt_t_hat » Mon Sep 26, 2011 1:25 pm

Can I just ask what the thinking was with this snippit? It seems a bit unusual to global the manager after you have used it once already.

Code: Select all

      <?php
      // add extra fields from Plugins, like NP_Profile
      $manager->notify('RegistrationFormExtraFields', array('type' => 'createaccount.php', 'prelabel' => '', 'postlabel' => '<br />', 'prefield' => '', 'postfield' => '<br /><br />'));
      // add a Captcha challenge or something else
      global $manager;
      $manager->notify('FormExtra', array('type' => 'membermailform-notloggedin'));
      ?>


I'm sure there is some sound logic for it but I can't see it just currently.
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Mon Sep 26, 2011 5:29 pm

Probably a remnant of a cut and paste from somewhere else. It's likely not needed as it is already declared global somewhere above the first call to $manager->notify()
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins
User avatar
matt_t_hat
Posts: 1123
Joined: Sun Aug 21, 2005 4:45 pm
Location: UK
Contact:

Postby matt_t_hat » Sun Mar 04, 2012 5:45 pm

ftruscot wrote:Probably a remnant of a cut and paste from somewhere else. It's likely not needed as it is already declared global somewhere above the first call to $manager->notify()
That's what I thought. Do we have an unstable branch I can check-out of SVN (or whatever) I'm thinking it might be time for me to offer some actually work to the project if only as a massive diff of minor bits.
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Mon Mar 05, 2012 3:16 am

The main development is going on in the trunk and is a very unstable version of the upcoming 4.0 which will be multibyte and make use of additional php5 things.
Is your question not solved yet?

Search our FAQ,

read the Documentation, or

browse the list of available plugins.



Check out my plugins

Return to “Core Development”