37
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/27 23:01

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Hi jegelstaff,

Eventually got round to trying this out. Everything installs fine (excellent docs btw). My only comment is that you could do with a note somewhere explaining that you *must* set an expiry date when creating a code. I found it doesn't work if you leave this field alone.

More of a problem is... on submitting the code I get a blank page. Debug says:

Quote:
Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\xoops_site\modules\formulize\include\formdisplay.php on line 545


Xoops 2.0.13.2
PHP 4.10
MySQL 3.23.58
IIS 5.0

Any ideas?.
A thread is for life. Not just for Christmas.

38
jegelstaff
Re: Registration Codes -- IMPORTANT UPDATE

Hello Peekay,

I think this is because you have not given the anonymous users the right permissions for the form, within Formulize. I think registered users might need permission for the form too, but I'd have to test that out.

Does that fix it for you?

We should clean up that error condition and not have a fatal error pop up like that. Uggggly!

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

39
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/28 7:31

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I gave anon and registered users permissions for the block and both modules, but still get the blank page.

I created a simple, two-field form to be used with the registration form. I can preview the form, but when I go to prefs, the drop-down menu next to:
Quote:
Which form is to be used as part of the registration process and when viewing and editing accounts? (requires use of the Registration Codes module)

has no forms listed, just [--------]

Have I missed a step?
A thread is for life. Not just for Christmas.

40
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/28 10:59

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Whoopee! (well, almost).

I re-read the docs and went to 'Formulize/Form Management/Actions' and modified the access permissions for my custom form to:

view_form
add_own_entry
update_own_entry

for the groups 'Anonymous users', 'Registered users' and 'my custom group'.

Now, new members are automatically added to the custom group if they enter the correct reg code.

However, although the sign-up process now works, I still can't see the custom form anywhere?. The fields are not visible in the registration form or when the user selects view/edit account. Any idea what else I have missed?

(BTW, so far so good in 2.0.13.2 and 2.0.14 too)
A thread is for life. Not just for Christmas.

41
jegelstaff
Re: Registration Codes -- IMPORTANT UPDATE

Quote:

"Which form is to be used as part of the registration process and when viewing and editing accounts? (requires use of the Registration Codes module)"

has no forms listed, just [--------]

Have I missed a step?


Ah-hah, that explains things. Yes, you have missed a step. Update the Formulize module, under System Admin->Modules. Then you will be able to pick the form.

We should add a description to that preference telling people to update the module.

Does this fix it for you?

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

42
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/28 15:40

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Yes Sir... it most certainly does!

This is a fine module. Thx for bringing it up to speed.

I am building a site for a residents association and they want residents only to view news items, forums etc. This enables the site admin to mailshot the home owners directly and invite them to join the site.

The only feature on my wish-list (if it is possible) is to enable 'ordinary' registration too. I.e., it would be good if when users clicked 'Register Now' they could either enter a reg code to put themselves in to a special group, or simply subscribe as 'normal' registered users.

You could then send reg codes by PM to enable members to upgrade their own membership.
A thread is for life. Not just for Christmas.

43
jegelstaff
Re: Registration Codes -- IMPORTANT UPDATE

Quote:

Peekay wrote:
The only feature on my wish-list (if it is possible) is to enable 'ordinary' registration too. I.e., it would be good if when users clicked 'Register Now' they could either enter a reg code to put themselves in to a special group, or simply subscribe as 'normal' registered users.


You can sort of fake this right now if you make a code that allows membership in registered users (or no groups, if it is possible to make a code with no groups -- since all users are added to registered users anyway).

And then you could change the link for "Register Now" on your site, so it includes this default code in the URL, and that will take people straight to the regular form (and you just have to make sure that the questions on the form are set up to be displayed to the right groups).

Of course, that means when you're e-mailing people, you have to send them to "register.php?code=specialcode". If you send them to the front page (or if they go there themselves) and click "Register Now," it would register them as if they were a regular user.

Note: if you make a code that gives membership in registered users, I think you will end up with the user listed as a member of that group twice. I don't know if that will have an adverse affect on the operations of any other parts of the site or any other modules. I don't think so, but it's something to be aware of.

--Julian
Technical Architect - Freeform Solutions
Formulize - custom registration forms, ad hoc forms and reports

44
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/28 16:00

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx. I'll have a play with that.
A thread is for life. Not just for Christmas.

45
Chappy
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/30 1:58

  • Chappy

  • Friend of XOOPS

  • Posts: 456

  • Since: 2002/12/14


This does sound like a nice adaptation. Maybe just adding a blank text box on the main registration form, that if filled with the correct regcode, automatically assigns them to the appropriate group. Then the box where you now have them enter the code is just included in with the standard registration form. If the regcode box has an entry, it is processed for the special group. If not, it is processed as a regular registration - kind of like on shopping carts where, if you have a discount code, you enter it for the extra discount. Heck, if I knew a thing about programming, I'd do it tonight...

[edited this based on Peekay's following comments]
MMM...It tastes like chicken! ...

46
Peekay
Re: Registration Codes -- IMPORTANT UPDATE
  • 2006/6/30 7:23

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Yes. A good idea. If you could still use the Formulize custom fields in the registration form, that would be great.

I would be happy if there was a button on the existing 'enter code' page that gives people the option, e.g.

Quote:
Enter registraton code [_____] [Submit]

I do not have a registration code [Submit]
A thread is for life. Not just for Christmas.

Login

Who's Online

204 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits