Page 1 of 1
No CP needed just lock it
Posted: Sun Feb 05, 2006 2:25 pm
by crazy_carl
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
Posted: Sun Feb 05, 2006 2:39 pm
by feyd
This thread has no business being in Code Snippets.
Moved to PHP - Code.
Posted: Sun Feb 05, 2006 2:39 pm
by Chris Corbyn
Hmmm...
PS: Wrong forum --> Moved to PHP Code
Posted: Sun Feb 05, 2006 2:42 pm
by m3mn0n
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?
Posted: Sun Feb 05, 2006 2:51 pm
by Chris Corbyn
I'm just looking over some of your threads you've posted here... they all relate to issues with phpBB

Have you tried asking questions on phpBB's own forums since i'm sure you'd get far more help with phpBB realted issues there

Posted: Sun Feb 05, 2006 3:12 pm
by m3mn0n
Oh so it's phpBB that's the forum in question here. heh
Wouldn't know it from the first post.

Yup
Posted: Sun Feb 05, 2006 4:01 pm
by crazy_carl
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?
.. Sorry to sound so dumb, but I really don't know what file to look in. this is all new to me.
CC
Posted: Sun Feb 05, 2006 5:03 pm
by m3mn0n
Well from looking at our registration page quickly, I noticed this:
Code: Select all
<form action="profile.php" enctype="multipart/form-data" method="post">
So it would seem if you too are using phpBB, then the file you need to examine is
profile.php.
Thanks for the help
Posted: Sun Feb 05, 2006 5:21 pm
by crazy_carl
Sami wrote:Well from looking at our registration page quickly, I noticed this:
Code: Select all
<form action="profile.php" enctype="multipart/form-data" method="post">
So it would seem if you too are using phpBB, then the file you need to examine is
profile.php.
I looked in Profile.php that code is not there. "<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
Posted: Sun Feb 05, 2006 5:29 pm
by Chris Corbyn
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.
Posted: Sun Feb 05, 2006 8:55 pm
by m3mn0n
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
not really...
Posted: Tue Feb 07, 2006 1:57 pm
by crazy_carl
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
Thank You for the help.
CC