Would like to offer patch to add features Intro windows and later collapse option for fieldset

yurtboy - November 7, 2008 - 04:15
Project:Apply for role
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:yurtboy
Status:active
Description

I attached a screen shot or two as well.
Basically this gives admin the ability to add an intro message to the fieldset in the registering page.
Also it sets the option should the fieldset be collapsed by default. But I need to finish that since it sent the intro field out of the fieldset.

AttachmentSize
infowindow.png4.57 KB
frontview.png11.37 KB
apply_for_role.admin_.inc_.patch2.09 KB
apply_for_role.install.patch416 bytes
apply_for_role.module.patch1.13 KB

#1

yurtboy - November 7, 2008 - 04:16

Note the attached screenshots
infowindow is the window the admin can type the message in.
frontview is where it appears on the registration page.

#2

Soren Jones - November 9, 2008 - 04:58

Thank you! I'm sorry that I haven't had a chance to look at this yet, but I will.

#3

yurtboy - November 23, 2008 - 23:53

I added one more line cause for some reason the user when they edited say their password or theme would then lose the roles..
ln 223
Validation

case 'validate':
      if ((variable_get('apply_for_role_register', 0) == 2) && (empty($edit['rid'])) && user_is_anonymous() ) {

I added the user_is_anonymous() so it does not mess with the user if they are already a member of the site.

#4

Soren Jones - January 11, 2009 - 06:40
Version:6.x-1.7» 6.x-1.x-dev
 
 

Drupal is a registered trademark of Dries Buytaert.