[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3362
  • Last Modified:

phpBB --> can I create a custom registration form with a few selected fields instead of the generic long form.

I have a phpbb Forum set up on my webpage and I want to modify the form that people who want to register on my forum must fill out.  The current default registration page has a lot of fields and options that seem overkill (especially for the kind of people using my forum, mostly family members).  So, I 'd like to change the registration page so that people only have to enter the required username and password fields, and that's it.  I know a lot about html and javascript, but almost nothing about this php stuff.

thanks.
0
Hessianator
Asked:
Hessianator
  • 4
  • 3
1 Solution
 
dennisttCommented:
You might be looking for this:

http://mods.db9.dk/viewforum.php?f=9
0
 
HessianatorAuthor Commented:
ok, I downloaded the "custom_reg_1.0.3em" zip file, but how do I apply it to make changes to my registration page?
0
 
HessianatorAuthor Commented:
sorry about just dropping this whole thing on you all, but I'm a full time student working full time to make ends meet, and I just don't have enough free time to learn this all from scratch right now.

thanks!!!
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
HessianatorAuthor Commented:
and no, this isn't part of a homework assignment!!

I've seen people flamed on EE plenty of times for posting homework problems.

I keep a website up for my family because we are spread out all over the country, this is for that.

:-)
0
 
dennisttCommented:
Extract both files inside the zip file to a convenient location.
If you open the .txt file you'll find some info about the MOD (modification).  Then there are the modification instructions.

All you do is follow the modification commands:
COPY :: upload the file to the location on your site
OPEN :: open the file locally for editing
FIND :: find the following text
REPLACE WITH :: overwrite the code you "FOUND" before with the code in this command.
SAVE/CLOSE ALL FILES :: save the modifications above, close the files, and upload to your server

So basically:
1) Upload profile_register_body.tpl (the other file in the .zip) to the templates/subSilver/ folder inside your forum directory.
2) Open includes/usercp_register.php (found in the vanilla phpBB distribution)
3) Find:

$template->set_filenames(array(
      'body' => 'profile_add_body.tpl')
);

4) Replace the above with:

// Start add - Custom registration form MOD
if ($mode=='register')
{
      $template->set_filenames(array(   'body' => 'profile_register_body.tpl'));
} else
{
      $template->set_filenames(array('body' => 'profile_add_body.tpl'));
}
// Start add - Custom registration form MOD

5) Save the file and upload to the respective place on your server.

Hopefully I made things a bit clearer to you.  Feel free to reply with any other questions you have.
0
 
HessianatorAuthor Commented:
That worked perfectly!!

thanks for the clear and easy to follow instructions.
0
 
dennisttCommented:
You're welcome. :)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now