No CP needed just lock it

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

No CP needed just lock it

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This thread has no business being in Code Snippets. :|

Moved to PHP - Code.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Hmmm... :?

PS: Wrong forum --> Moved to PHP Code
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Oh so it's phpBB that's the forum in question here. heh

Wouldn't know it from the first post. ;)
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Yup

Post 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
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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.
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

Thanks for the help

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post 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
crazy_carl
Forum Newbie
Posts: 14
Joined: Sat Aug 13, 2005 10:01 pm
Location: Woodbury NJ (USA)

not really...

Post 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
Post Reply