Webmastersite.net
Register Log In

Members required fields

Comments on Members required fields

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Aug 09, 2006 - 11:25 PM:

I am thinking of doing a new category where members who post in that section MUST have their address and other details.

I would presume that I should make a new member type and allow only that type to post, but when they register is there any way I can ensure they complete the extra fields before submitting? These extra fields will not be required for member types.


Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
1 of 1 people found this comment helpful
Posted Aug 10, 2006 - 11:25 AM:

If the usergroup is #4 and you fill in the fields to be required, save this as registrationchange.php in your modifications directory (create a directory named modifications if you don't have one):
<?php
if (strstr(currenturl(), 'register.php?filled=1') && $usergroup == 4)
{
$settings->requiredmembers = 'name,password,email,otherstuff';
}
?>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.