Print Topic - Archive

E-Blah Community  /  Question and Answer  /  Ask to fill Profile Information after registration
Posted by: Themeboy, December 21, 2009, 7:49pm
How can I ask new members to fill in their profile information such as birth date, gender & location at the time of registration? :mellow:

I want them to fill in these fields during registration only.
Posted by: Martin, December 22, 2009, 5:35am; Reply: 1
I can write you a mod if you want.
Posted by: Themeboy, December 22, 2009, 5:54pm; Reply: 2
I would love it (smitten)

Thanks in advance ;D
Posted by: Martin, December 23, 2009, 1:43am; Reply: 3
Have a look here. http://www.opportunitynowhere.co.uk/cgi-bin/testforum1/Blah.pl?v-register/

Is this what you're after ?
Posted by: Nat, December 23, 2009, 2:07pm; Reply: 4
Martin, that would be a good mod to have. I have a few forums that I run, and to have a location of a user would help, alas most do not do this, so a required field would be swell
Posted by: Martin, December 23, 2009, 2:21pm; Reply: 5
I'll create the mod soon.
Posted by: Themeboy, December 23, 2009, 6:15pm; Reply: 6
Quoted from Martin


Yes, exactly that's what I want  :)

Are you making a mod for asirra too?
Posted by: Martin, December 24, 2009, 12:58am; Reply: 7
There is already a mod for assira, search the mod boards  :)
Posted by: Themeboy, December 24, 2009, 7:23pm; Reply: 8
sorry didn't see that......but now i've installed it on my forum.  :)
Posted by: Martin, December 26, 2009, 9:38am; Reply: 9
Posted here: http://www.eblah.com/forum/m-1261841821.90622/

Only tested quickly so get back to me if there's any problems.
Posted by: Nat, December 26, 2009, 1:05pm; Reply: 10
Not installed the mod yet.. a quick question I only really need the "Location" to be compulsary, do you have to have age and gender? of can they be disabled
Posted by: Martin, December 26, 2009, 1:08pm; Reply: 11
I can expand the mod so you can choose what is required but can give you a quick fix if wanted...
Posted by: Nat, December 26, 2009, 2:58pm; Reply: 12
I am easy.. I have a busy forum, that is global, its its often a nightmare not to know what country a user is in.. And then I have a couple of mainly UK based ones where to know a County would also help...
Posted by: Themeboy, December 26, 2009, 7:32pm; Reply: 13
Quoted from Martin
Posted here: http://www.eblah.com/forum/m-1261841821.90622/

Only tested quickly so get back to me if there's any problems.


Thanks Martin
:YouRock:

The only problem was that instead of replacing this part, the code should be added after it :

Code
Source Code:
	SaveMemberID(
		$curnumber,
		%addtoID = (
			'password'   => $FORM{'pw'},
			'sn'         => $wantedname,
			'email'      => lc($FORM{'email'}),
			'avatar'     => 'default.gif',
			'posts'      => 0,
			'registered' => $curtime,
			'timezone'   => $gtzone || 0,
			'status'     => $vradmin,
			'validation' => $formid,
			'md5upgrade' => 1,
		}
	};

Replace:
	SaveMemberID(
		$curnumber,
		%addtoID = (
			'sex'         => $FORM{'sex'},
			'dob'         => $birthday,
			'location'    => $FORM{'location'},
		}
	};


When using this, the members are not registered correctly.

I changed the search to look for 'md5upgrade' => 1, & added your code after it. Now it works fine.

Thanks once again :)
Posted by: Martin, December 27, 2009, 1:51am; Reply: 14
Thanks for getting back to me, now updated.

http://www.eblah.com/forum/m-1261900221.06575/
Print page generated: February 12, 2012, 2:51pm