Self Registration module template variables

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am
Location: Sydney Australia

Self Registration module template variables

Post by Simon66 »

I created a tutorial a few years ago about building Self Reg templates: viewtopic.php?f=4&t=67650

I am now building a new site that needs a Self Reg registration template.

I used to use {$username->control} and {$password->control} etc. to build the templates, but they no longer work.

I have edited the default template using the {foreach from=$controls item=control} loop, but it would be much less code if I could use the variable directly.

Does anyone know if this is still possible?
Are the variables written differently now?

Cheers
Simon66
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Self Registration module template variables

Post by calguy1000 »

The $controls variable in the Selfregistration registration template are an associative array of objects.

Look at the factory template that comes with the module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”