Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Registration Mod 6.3

Description: This adds several profile fields to the newuser registration
page, so that upon registration, you have a more complete profile.
It adds: Homepage, Occupation, Hobbies, Geographic Location, Bio,
ICQ Number, Custom 1, Custom2, Custom3, Custom4, and let's them give a URL
to their picture, or upload a picture (if you have the picture upload option on).

It requires the Occupation, Hobbies, Location and the 4 extra fields to be
complete, as well as they must either upload a picture, or supply a URL.

Working Under: UBB.Threads 6.3

Mod Status: Beta

Any pre-requisites: UBB.Threads 6.3

Author(s): JoshPet of www.joshuapettit.com

Date: 11/02/03

Credits: DonJulio from www.laondalatina.com for Commissioning it

Files Altered: newuser.php, newuser_signup.tmpl, adduser.php

New Files: none

Database Altered: none

Info/Instructions: You must activate all 4 of the optional fields (since
they are reqiured on registration) or else nobody will be able to register.


Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
98491-registrationmod6.3.txt (0 Bytes, 77 downloads)

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
This is a great mod that many people wants.

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Will it work for 6.4?

And what if you don't want to use all the optional fields?

Can you somehow modify it so that if they leave an optional field blank then UBBT will automatically fill in "none" or "N/A" or something like that in its place when they submit the registration?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I think it will - I do need to probably update instructions to see how it installs with 6.4 as I haven't tested it.

If you wanna try - be my guest, otherwise it could be next week before I have time. But I'd like to also build the avatar feature into the 6.4 version.

If you wanted a field to just say "none" on default then for example, change this:

<input type="text" name="Extra3" value="$Extra3" class="formboxes" />

To this:

<input type="text" name="Extra3" value="none" class="formboxes" />


(The $Extra3 really isn't needed - just copied the code from the edit profile script - but there's no predefined value for new users. )

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
If I get a chance i'll give it a go. Thanks for the tips Josh.

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
You can take a see what this looks like here:
http://www.laondalatina.com/foros/newuser.php
Note that I have the pop-up avatar implemented that isn't part of this mod, but may be in version 6.4. All the rest should be about the same.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
probably understand it more if I read Spanish but looks good

Joined: Mar 2003
Posts: 118
Journeyman
Journeyman
Offline
Joined: Mar 2003
Posts: 118
Looks good DonJulio...

I wonder... for users like me who have the "Friendly User Registration" Mod installed, I wonder if someone will combine that mod and this one? That would be great.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I'm not familiar w/ the Friendly User Registration mod. I'll go look for it and see what it looks like

Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
This mod is the best and most useful one I have seen for 6.3. The biggest problem for new members is the registration process. I get many questions from people who forget to select "I agree" and see this vague "you have not filled out all requested fields" (or something simular)
This is verry confusing.
Has anyone got a updated version for 6.4?
I would like to add this one again, but it should be a standard feature in the infopop release:-)

Regards,

Ron.


Those who fail to read ask many questions:-)
Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
What I did was to further edit the newuser_signup.tmpl file and add asteriks after each field that is required. Above all the options, I put (is Spanish): * Required Fields

That warning, as well as every asterik is red. That's helped make this work out for me. Look here:
http://www.laondalatina.com/foros/newuser.php
I don't know off hand whether this works w/ 6.4 or not. The avatar pop-up I have was backported from 6.4 by Josh for me and it's not in this mod. When I get around to upgrading my site to 6.4, I'll commission Josh to upgrade this mod also

Last edited by donJulio; 12/09/2003 10:09 PM.
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
I have tried to get it to work under 6.4 but no luck:-(


Those who fail to read ask many questions:-)
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
No one for 6.4?
Come on guy's this one is excellent:-)


Those who fail to read ask many questions:-)
Joined: Jan 2002
Posts: 9
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 9
anyone do this for 6.4 yet?????

Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
I has been done. Check it out at the modification index.


Those who fail to read ask many questions:-)
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I don't think this has been poster here for 6.4. I comissioned Josh to do this and he is still working on the avatar part of the mod. At least I haven't seen it...

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ah soon.

Made real progress on my "backlog" this weekend, so shouldn't be long now.

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
I am trying to mod this mod so that I only have 2 additional required fields. The template 'newuser_signup.tmpl' lays out the fields as I want them and the 'submit' button works, however, when the information is submitted I get a "user name and password not found" error. I have followed all instructions excluding the fields I do not want required in my sign up so I'm pretty sure it's a syntax error vice a logic error. My PHP is just not good enough to find it though.

My 3 modded files can be downloaded and examined --> Here <--

This "simple" mod is exactly what I need and I would really like to get this working. Any help is greatly appreciated.

Thanks,

Tom

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
try these instructions for JUST adding Extra2 and Extra3
Attachments

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Didn't work, but I think I found the problem...

~$config['extra2']~ and ~$config['extra3']~ are defined in config.inc.php due to another mod and therefore, I need to require or require_once config.inc.php in newuser.php and adduser.php (right)?

I'll give it a shot and see what happens...

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Nope ~ didn't work.

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
Second try....

I "require"(ed) config.inc.php in both newuser.php and adduser.php since both extra2 and extra3 variables are "$config"'ed there, and did the following:

I commented out this code in "newuser.php"...
Code
 <br />// Setup the extra profile fields to be completed at signup <br />   	if ($config['extra2']) <br />		{ <br />      	$extra2 = "{$config['extra2']}<br /><input type=\"text\" name=\"Extra2\" value=\"$Extra2\" class=\"formboxes\" />"; <br />   		} <br />	else <br />		{ <br />		$extra2 = "&nbsp;"; <br />		} <br />   if ($config['extra3']) <br />		{ <br />      	$extra3 = "{$config['extra3']}<br /><input type=\"text\" name=\"Extra3\" value=\"$Extra3\" class=\"formboxes\" />"; <br />   		} <br />	else <br />		{ <br />		$extra3 = "&nbsp;"; <br />		} <br /> 


...and tried to add it directly to the template as such...

Code
 <br /><tr> <br /><td> <br />{$config['extra2']}<br /><input type="text" name="Extra2" value="$Extra2" class="formboxes" /> <br /></td> <br /></tr> <br /><tr> <br /><td> <br />{$config['extra3']}<br /><input type="text" name="Extra3" value="$Extra3" class="formboxes" /> <br /></td> <br /></tr> <br /> 


It displays fine but I still get the "Login Name/Password not found. " error and obviously the user is not registered???

I don't know what I'm doing wrong ~ all I'm trying to do is pull the variable from the form to the script????

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
what ya can do is rename it a little.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I think I fixed it for you please check it out on your site.

Joined: Aug 2003
Posts: 121
Journeyman
Journeyman
Offline
Joined: Aug 2003
Posts: 121
scroungr - you rock man.

Totally appreciate all the help. Works great. You gotta' tell me how you did it ~ email inbound.

Tom


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)