11 years ago
3
Topic

Hello from Bang2Joom Team

First of all we want to thank You for this great tool !

We have a project were we need to have custom registration and user profile with lots of validations and confirmations from the administration part. The steps are like this.
1. User registers with standard fields (username, email, pass ...)
2. Than from his profile he should get access to form to fill his "Personal Information" (this is now done by permissions) and than save it. User can change, save, logout, login whenever he wants, but after he has filled all the required fields he can click on "SUBMIT" button. After user push "submit", the editing of the form must be disabled (not by css,js, but by Joomla/Seblod Permission). Now user should wait until the admin reviews his form, and if all the fields are correct admin can approve his submission.
3. When admin confirms the form user should have access to other form which he/she should fill in.
There are several steps like this that should be done and all with step by step confirmation.

What is the best way to implement this?
1. disable form after submit button.
2. admin confirmation and change of permission to enable the new form.
And can this be done by separate forms? or this should be the parts of one big user form?

Thanks in advance

Best Regards
Bang2Joom Team

Get a Book for SEBLOD
11 years ago
2
Level 1

Hello,

it something like workflows principles with flags...

You can use "published" principle just like in articles editing or submitting new from front-end where it's need admin verification/validation. For that in one my project last year I created (for v2) very simple plugin "Selective publishing" where only specific user groups can see that field (like admins), in all other cases it's has value "0" (it's not hidden, it's not render).

Also in some less security important cases you can create new form filed and not render it in form, but in submitting post process you can set it's value (java script). It's ok for some flags when you need it's value to help after in search/list filtering etc...

Regards.

11 years ago
1
Level 2

Thanks for Your reply

I don`t want to do any hacking (for now) just want to understand the correct way to start the development with Seblod. First of all I need to understand the user profile should be 1 seblod form or there is a possibility to have several forms

ex.

1. form for personal details

2. form for family details

...

and each form will not create new line in the database, just update that field for logged in user, or all should be the part of default seblod user form.

If this will work I can separate by menus and give permissions to menus not the concert fields and in general 95% of my issue will be solved.

11 years ago
0
Level 3

Understand, but that part about admin reviews can be done with field which value is always "0" (always write '0' flag to db column... "published"), and that field is only visible to admin, and only admin can set that field value to "1". Also, it's not hacking or java script principal (you can find something here for v2, and can create similar for v3 / based on field type text).

Sorry, but I'm still with Seblod v2 and can't help you with suggestions in part about user profile forms, but had something very similar and write about that here.

Regards.

Get a VIP membership