By bnadem on
Hi dear drupalers,
I'm pulling my hairs to solve a need case, and i will apreciate any help in advance !
I need to present og in the registration form using selects rather than checkboxs like it's by default !
Any ideas ?
Hi dear drupalers,
I'm pulling my hairs to solve a need case, and i will apreciate any help in advance !
I need to present og in the registration form using selects rather than checkboxs like it's by default !
Any ideas ?
Comments
OG Register
I found these two modules that may be solutions:
http://drupal.org/project/og_reg_codes
http://drupal.org/project/og_profiles
I'm sure there is more at Drupal.org
Thanks for replying
Thanks you very much for replying ;)
I will follow your hints and come with feed back.
The way I did it
Hi,
I achieved that by hacking the "og.module" file in the og module directory,
Look for this section:
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
And replace it with this:
--------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
I modified the field type used to present groups on registration form from "checkboxes" to "select"
Then, I prevented the printed variables from being themed.
This has the advantage of presenting groups on registration form in a compact way, and prevent user from subscribing to more than a group when it's needed.
Hope this helps someone.
This looks useful although I
This looks useful although I haven't yet tested it. Got here from a link in http://drupal.org/node/990094
Since this is posted in the forums I wonder if you might post it as a patch in the other thread which is in the og issue queue where it can be reviewed and maybe committed.
patch works for me.
Yeah, patch only changes the UI on the registration form but user doesn't really add in as a member of the og.
It worked!
the patch has been a big help. thanks a lot!
Ooops!
after I have tested it, it is not working. It only changed the UI in the registration page. do you have any new patch that I can test?