Page 1 of 1

[SOLVED]Self Registration Module Add to other group template

Posted: Wed May 20, 2015 3:30 pm
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

Re: Self Registration Module - Add to other group template

Posted: Wed May 20, 2015 3:36 pm
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

Re: Self Registration Module - Add to other group template

Posted: Wed May 20, 2015 5:20 pm
by Dr.CSS
Did you set which fields which group uses in FEU..?

Re: Self Registration Module - Add to other group template

Posted: Wed May 20, 2015 5:29 pm
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?

Re: Self Registration Module - Add to other group template

Posted: Thu May 21, 2015 2:20 pm
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...

Re: Self Registration Module - Add to other group template

Posted: Thu May 21, 2015 2:44 pm
by velden
Note that's in this forum it's not allowed to post module modifications/hacks.

Re: Self Registration Module - Add to other group template

Posted: Thu May 21, 2015 3:38 pm
by jpcarvalhinho1
GAAAhhhh.. code overload... can someone help? at least verify if it is working?

Re: Self Registration Module - Add to other group template

Posted: Fri May 22, 2015 4:34 pm
by jpcarvalhinho1
As per indication on the forge, this is the right behavior for this module, at least for now.