[SOLVED]Self Registration Module Add to other group template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

[SOLVED]Self Registration Module Add to other group template

Post by jpcarvalhinho1 »

Hello.. I want to allow a Self Registration User to sign in to 2 separate FEU groups, and I have allowed this on the Admin section... and it works.

But I want something more:
Both user group forms share some of the fields, and I am trying to "import" the already complete form fields from Group 1, to be presented on the Group2 Form as values for the input fields (i.e.Name, adress, phonenumber).

How can I do this?



SysInfo
Installed Modules
CMSMailer 5.2.2
CMSPrinting 1.0.5
FileManager 1.4.5
MenuManager 1.8.6
MicroTiny 1.2.9
ModuleManager 1.5.8
News 2.15.1
Search 1.7.12
ThemeManager 1.1.8
CGSimpleSmarty 1.8
CGExtensions 1.46.4
CGSmartImage 1.18
CGJobMgr 1.3.4
FormBuilder 0.8.1.1
GBFilePicker 1.3.3
Gallery 2.0.2
ListIt2 1.4.1
SiteMapMadeSimple 1.2.8
NMS 2.9.5
ListIt2XDefs 1.2
MleCMS 1.11.4
AjaxMadeSimple 0.4.0
Polls 1.1.0
CGCalendar 1.14.7
JQueryTools 1.3.5.1
Products 2.23
FrontEndUsers 1.28
SelfRegistration 1.9
CGUserDirectory 1.4.5
CustomContent 1.10
FormBrowser 0.4.2
Last edited by jpcarvalhinho1 on Mon May 25, 2015 7:51 am, edited 4 times in total.
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

Re: Self Registration Module - Add to other group template

Post by jpcarvalhinho1 »

Edited...

This template should already do the trick but is constructed with input type dependency... I guess it is the old way of doing the construction. :| and {$rec->value} or {$rec->val} doesn't return any values, hence the HTML output comes as value=""

{$rec|print_r}
returns for instance for the telemóvel field
stdClass Object ( [marker] => [color] => [required] => [name] => 06_telemovel [type] => 0 [prompt] => Telemóvel [val] => [value] => [fldname] => mcecf3sr_ctl_06_telemovel ) 1
Last edited by jpcarvalhinho1 on Wed May 20, 2015 5:27 pm, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Self Registration Module - Add to other group template

Post by Dr.CSS »

Did you set which fields which group uses in FEU..?
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

Re: Self Registration Module - Add to other group template

Post by jpcarvalhinho1 »

Yes, and for now they are sharing almost all the fields, as "optional" (just for constrution and testing sake)


THe problem with the date type of field, I can see that the page is invoking a Jscript for a datepicker on the "date" type of field...
$(document).ready(function(){
$('input.datepicker').datepicker();
})
THis should replace the text input with a datepicker?
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

Re: Self Registration Module - Add to other group template

Post by jpcarvalhinho1 »

Been looking to the .php files to see if I can create an alternate action.anothergroup.php using action.do_edituser.php for instance as workbase, but can't get it right...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Self Registration Module - Add to other group template

Post by velden »

Note that's in this forum it's not allowed to post module modifications/hacks.
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

Re: Self Registration Module - Add to other group template

Post by jpcarvalhinho1 »

GAAAhhhh.. code overload... can someone help? at least verify if it is working?
jpcarvalhinho1
Forum Members
Forum Members
Posts: 13
Joined: Tue Sep 23, 2014 3:28 pm

Re: Self Registration Module - Add to other group template

Post by jpcarvalhinho1 »

As per indication on the forge, this is the right behavior for this module, at least for now.
Post Reply

Return to “Modules/Add-Ons”