No CP needed just lock it
Moderator: General Moderators
-
crazy_carl
- Forum Newbie
- Posts: 14
- Joined: Sat Aug 13, 2005 10:01 pm
- Location: Woodbury NJ (USA)
No CP needed just lock it
Question, Is there a way to set things in the profile so that while new members are registering they MUST fill it in. My site is heavily moded, so the Profile mods just will not do. (I have no idea how to get around the changes in the files that the Profile mods need to change.
So all I need is a way to set things in A members profile so they MUST fill it in, or the system will not permit them to register. Example: Location. Interest Etc. I don't need a control panel, once set to mandatory they will never be changed, so there is no need for a cp.
Thank You
CC
So all I need is a way to set things in A members profile so they MUST fill it in, or the system will not permit them to register. Example: Location. Interest Etc. I don't need a control panel, once set to mandatory they will never be changed, so there is no need for a cp.
Thank You
CC
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
crazy_carl
- Forum Newbie
- Posts: 14
- Joined: Sat Aug 13, 2005 10:01 pm
- Location: Woodbury NJ (USA)
Yup
.. Sorry to sound so dumb, but I really don't know what file to look in. this is all new to me.Sami wrote:I'd imagine just looking at the registration processing file and see how it rejects sign ups if there is no username filled. Copy that process but change the variable from, you know, something like $username to $location or whichever.
Have you tried something like that?
CC
Well from looking at our registration page quickly, I noticed this:
So it would seem if you too are using phpBB, then the file you need to examine is profile.php.
Code: Select all
<form action="profile.php" enctype="multipart/form-data" method="post">-
crazy_carl
- Forum Newbie
- Posts: 14
- Joined: Sat Aug 13, 2005 10:01 pm
- Location: Woodbury NJ (USA)
Thanks for the help
I looked in Profile.php that code is not there. "<form action="profile.php" enctype="multipart/form-data" method="post">"Sami wrote:Well from looking at our registration page quickly, I noticed this:
So it would seem if you too are using phpBB, then the file you need to examine is profile.php.Code: Select all
<form action="profile.php" enctype="multipart/form-data" method="post">
Or did I misunderstand, and I should be looking for something that points to that...
Thank You
CC
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
No meant that that snip of HTML indicated the file that phpBB is using... that code won't be in there... that was in the HTML source of the page on phpBB.
If you look through that file for the part where it does the checking you should be getting somewhere
I doubt anybody's going to do this for you since all it will take is a little bit of initiative, the PHP Manual and the phpBB files.
If you look through that file for the part where it does the checking you should be getting somewhere
Yes.
phpBB is templated so the HTML I was talking about won't be there. But that's not really the primary concern right now.
First you should get a handle of how to reject an incomplete form. Then after look to add more elements to the HTML of the form.
The actual registration process handling code is in this file:
[phpbb_install_directory]/includes/usercp_register.php - around line 265
phpBB is templated so the HTML I was talking about won't be there. But that's not really the primary concern right now.
First you should get a handle of how to reject an incomplete form. Then after look to add more elements to the HTML of the form.
The actual registration process handling code is in this file:
[phpbb_install_directory]/includes/usercp_register.php - around line 265
-
crazy_carl
- Forum Newbie
- Posts: 14
- Joined: Sat Aug 13, 2005 10:01 pm
- Location: Woodbury NJ (USA)
not really...
Thank You for the help.Sami wrote:Yes.
phpBB is templated so the HTML I was talking about won't be there. But that's not really the primary concern right now.
First you should get a handle of how to reject an incomplete form. Then after look to add more elements to the HTML of the form.
The actual registration process handling code is in this file:
[phpbb_install_directory]/includes/usercp_register.php - around line 265
CC