Welcome to Geeklog, Anonymous Thursday, September 19 2024 @ 12:27 am EDT
Geeklog Forums
Custom Registration Example
Page navigation
Jordy
Anonymous
Don't really know what you are refering to. I paid Blaine to take care of it. He knocked it out quickly.
Jordy
Jordy
41
36
Quote
jnordquist
Anonymous
After nearly four years geeklog'ing, I finally got around to custom registration. It was simple. I just added age, location, and gender. Plus I make them agree to the user agreement, included on the page:
See: http://www.kenoshaonline.net/users.php?mode=new
See: http://www.kenoshaonline.net/users.php?mode=new
42
38
Quote
Toby
Anonymous
Jordy
This answer is a day late and a buck short, since you already got some custom coding done, but anyway I used this custom registration script and came up with the same problem-after trying to submit the new user signup, the page just reloaded and the form reset. (I am using 1.3.11). Maybe the custom registration code is different in a different version of geeklog, but the problem was that the custom_userform function in the example has the parameters ($uid="",$msg=""). This is incorrect. It should just be ($msg). This is because when the users.php tries to call custom_userform, it passes one parameter ($msg, usually) BUT the function in lib-custom actually had two parameters. So that quick fix solves the whole issue.
Hopefully this post will help others who have come across the same problem.
Short Version: in lib-custom.php, change this:
to this:
This answer is a day late and a buck short, since you already got some custom coding done, but anyway I used this custom registration script and came up with the same problem-after trying to submit the new user signup, the page just reloaded and the form reset. (I am using 1.3.11). Maybe the custom registration code is different in a different version of geeklog, but the problem was that the custom_userform function in the example has the parameters ($uid="",$msg=""). This is incorrect. It should just be ($msg). This is because when the users.php tries to call custom_userform, it passes one parameter ($msg, usually) BUT the function in lib-custom actually had two parameters. So that quick fix solves the whole issue.
Hopefully this post will help others who have come across the same problem.
Short Version: in lib-custom.php, change this:
Text Formatted Code
function custom_userform($uid="",$msg="")to this:
Text Formatted Code
function custom_userform($msg)
47
40
Quote
Status: offline
Frlitz
Forum User
Junior
Registered: 01/28/04
Posts: 15
I am attempting to use the custom registration example, it is nearly finished but I need answers for two questions.
I have read an earlier post about using checkboxes in the custom registration but I did not find an answer.
1. Is it possible to use checkboxes in the custom registration?
2. How do you return an error message without having the user to re-enter all of the data? i.e. if the form contains firstname, lastname, street, city, state, zip and these are all required.
Thanks
I have read an earlier post about using checkboxes in the custom registration but I did not find an answer.
1. Is it possible to use checkboxes in the custom registration?
2. How do you return an error message without having the user to re-enter all of the data? i.e. if the form contains firstname, lastname, street, city, state, zip and these are all required.
Thanks
45
38
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Frlitz: 1. Is it possible to use checkboxes in the custom registration?
Sure.
Quote by Frlitz: 2. How do you return an error message without having the user to re-enter all of the data? i.e. if the form contains firstname, lastname, street, city, state, zip and these are all required.
In the CUSTOM_userForm function, you'll have to populate all the fields again with the values from their respective $_POST entry.
bye, Dirk
40
39
Quote
Ancona5
Anonymous
I follow all the steps ... but on new user registration, when i click Submit, nothing happen
what can I do????????????????????????
what can I do????????????????????????
50
52
Quote
Status: Banned
gtgillis
Forum User
Full Member
Registered: 11/05/03
Posts: 121
I enabled the cutom_registration example in lib-custom to require the full name. I also added the code below to the function custom_usercheck to deny mistacronks dot com and to send me an email so I can keep an eye on things:
if ( stristr( $email, '@mistacronks.com' ) ){
$msg = 'Due to the number of spam accounts created using this domain, we dont accept registration from <b>mistacronks.com</b>. If you would still like to sign up, either use a different email address or contact us. We apologize for any inconvenience.';
COM_mail ("myemailaddress@mysite.com", "Email Address from mistacronks.com","nRegistration from mistacronks.com attempted", "DO_NOT_REPLY@mysite.net");
}
What I would like to do now is to require my 150 existing users to enter their full names. I thought when a user logs in I could check for the full name and if empty load usersettings with a msg= message that they must enter their full name. What I need to know is the best place to add the code that does the full name check.
Text Formatted Code
if ( stristr( $email, '@mistacronks.com' ) ){
$msg = 'Due to the number of spam accounts created using this domain, we dont accept registration from <b>mistacronks.com</b>. If you would still like to sign up, either use a different email address or contact us. We apologize for any inconvenience.';
COM_mail ("myemailaddress@mysite.com", "Email Address from mistacronks.com","nRegistration from mistacronks.com attempted", "DO_NOT_REPLY@mysite.net");
}
What I would like to do now is to require my 150 existing users to enter their full names. I thought when a user logs in I could check for the full name and if empty load usersettings with a msg= message that they must enter their full name. What I need to know is the best place to add the code that does the full name check.
33
44
Quote
Status: offline
JRGilliam
Forum User
Newbie
Registered: 11/11/06
Posts: 8
For anyone else who had a problem with Blaine's custom registration example, where you did exactly what he instructed, but when a new user tried to register, nothing happened (the page refreshed with no error or confirmation msg, and the user was not added to the db), here's why:
First of all, Toby's suggestion didn't work for me. I was excited that he was on to something, but all it did was kick out a Warning message that there was a parse error in lib-custom.php -- the second argument was still expected.
Blaine's instructions said to "replace the example custom user-registration functions in system/lib-custom.php with the ones included in his archive." That was absolutely right!
However, there is an additional function in the original lib-custom.php at the very end of all the other custom user-registration functions called custom_usercheck (which checks to see if all required info has been entered) that also must be replaced or commented out.
Once I did that, the entire custom registration example worked perfectly!
Now I just have to figure out what needs to change, and where, if I want to add additional user profile fields.
If this PHP/MySQL novice got this far, I can go even further! Thanks!
____________
JR Gilliam
First of all, Toby's suggestion didn't work for me. I was excited that he was on to something, but all it did was kick out a Warning message that there was a parse error in lib-custom.php -- the second argument was still expected.
Blaine's instructions said to "replace the example custom user-registration functions in system/lib-custom.php with the ones included in his archive." That was absolutely right!
However, there is an additional function in the original lib-custom.php at the very end of all the other custom user-registration functions called custom_usercheck (which checks to see if all required info has been entered) that also must be replaced or commented out.
Once I did that, the entire custom registration example worked perfectly!
Now I just have to figure out what needs to change, and where, if I want to add additional user profile fields.
If this PHP/MySQL novice got this far, I can go even further! Thanks!
____________
JR Gilliam
41
38
Quote
Will
Anonymous
Hi Guys
I'm new to Geeklog, and PHP so hope you guys can help. I have tried several CMS but found geeklog to be the more user friendly one and went with it. I will be converting my other websites over to geeklog as it is much easier to use, anyways, on with my problem...
I have Geeklog installed and up and running no problems, aslo have the PHPBB Bridge installed all working fine, no errors or any think wrong, except...
Due to the nature of the site - www.webhoststhatsuck.com I need to have a TOS agreement that new registered userd need to agree to before they can post on the forum.
I don't need extra fields to add data to my SQL Database, just an agreement which needs to be dislpayed on the registration page with a check box to say they agree, and then allow them to register.
How do I display the agreement that is on the PHPBB on the geeklog registration page?
Or any aother tips on how I can achieve this.
Will
I'm new to Geeklog, and PHP so hope you guys can help. I have tried several CMS but found geeklog to be the more user friendly one and went with it. I will be converting my other websites over to geeklog as it is much easier to use, anyways, on with my problem...
I have Geeklog installed and up and running no problems, aslo have the PHPBB Bridge installed all working fine, no errors or any think wrong, except...
Due to the nature of the site - www.webhoststhatsuck.com I need to have a TOS agreement that new registered userd need to agree to before they can post on the forum.
I don't need extra fields to add data to my SQL Database, just an agreement which needs to be dislpayed on the registration page with a check box to say they agree, and then allow them to register.
How do I display the agreement that is on the PHPBB on the geeklog registration page?
Or any aother tips on how I can achieve this.
Will
34
36
Quote
Jordy
Anonymous
Will looks like you will be using the custom registration function to set up your custom page. I do know that you can edit that page in the "lib-custom.php" file located in your system directory that should be outside of your public Geeklog directory ( Near your config). I beleieve you will also have to enabe the custom registration function in the lib-custom.php. Ther will be directions in the commnents. I think yo uwill be able to type the message into the custome reg section of the lib-custom.php. I believe yo will also put your radio button in that section as well.
I am not really completely sure about the particulars but I think you will at least be getting started. Read thru all the previous posts for help and you may be able to get it done.
good luck,
Jordyd
I am not really completely sure about the particulars but I think you will at least be getting started. Read thru all the previous posts for help and you may be able to get it done.
good luck,
Jordyd
37
44
Quote
Will
Anonymous
Hi Jordy
Thanks, I will start to play around in the areas you suggested.
Because of legal reasons I need to have a TOS due to the nature or the site, and to cover my butt over being sued.
Wonder if I just edit the text above the fields with the TOS, mmmmm
Anyways...
Cheers from Down Under.
Will
Thanks, I will start to play around in the areas you suggested.
Because of legal reasons I need to have a TOS due to the nature or the site, and to cover my butt over being sued.
Wonder if I just edit the text above the fields with the TOS, mmmmm
Anyways...
Cheers from Down Under.
Will
43
35
Quote
Eddy
Anonymous
Hi guys. Trying to set up this and keep getting the following error :
Only thing is that there is NO line 554......
Any ideas, guys!?
Text Formatted Code
Parse error: syntax error, unexpected $end in /home/crewlink/system/lib-custom.php on line 554Only thing is that there is NO line 554......
Any ideas, guys!?
40
51
Quote
Status: offline
slug
Forum User
Newbie
Registered: 04/17/08
Posts: 3
I have a question reguarding the provided example that Blaine put together. If i wanted to add multiple required lines for registration would i just duplicate step one
CREATE TABLE `gl_localuserinfo` (
`uid` mediumint(8) NOT NULL default '0',
`grad_year` varchar(4) NOT NULL default '',
KEY `uid` (`uid`)
) TYPE=MyISAM;
and change 'grad_year' to something else?
Text Formatted Code
CREATE TABLE `gl_localuserinfo` (
`uid` mediumint(8) NOT NULL default '0',
`grad_year` varchar(4) NOT NULL default '',
KEY `uid` (`uid`)
) TYPE=MyISAM;
and change 'grad_year' to something else?
46
63
Quote
Status: offline
luizcruz
Forum User
Newbie
Registered: 05/26/08
Posts: 5
Quote by: jordydme
Date: April 15, 2005
Author: Blaine Lang - blaine@portalparts.com
www.portalparts.com
Geeklog Custom Membership example with all needed code included.
This example will prompt a new user for additional fields when registering.
User Full Name and Graduation year
The Full Name is already a field that is maintained by Geeklog but not prompted for at registration time.
The Graduation Year is not and we will setup a new table to store this extra information.
Any new information should be maintained in a separate table and don't re-use or extend Core Geeklog tables.
Using the Custom Registration Feature requires some PHP and MySQL skills. This example in addition to
the notes and example functions in lib-custom should be sufficient to guide you in adding additional fields.
<<<<<<<<<<<<<<>>>>>>>>>>>>>
These are Blaine's instructions below:
Text Formatted Code
Date: April 15, 2005
Author: Blaine Lang - blaine@portalparts.com
www.portalparts.com
Geeklog Custom Membership example with all needed code included.
This example will prompt a new user for additional fields when registering.
User Full Name and Graduation year
The Full Name is already a field that is maintained by Geeklog but not prompted for at registration time.
The Graduation Year is not and we will setup a new table to store this extra information.
Any new information should be maintained in a separate table and don't re-use or extend Core Geeklog tables.
Using the Custom Registration Feature requires some PHP and MySQL skills. This example in addition to
the notes and example functions in lib-custom should be sufficient to guide you in adding additional fields.
<<<<<<<<<<<<<<>>>>>>>>>>>>>
Hello,
If full Name, homepage and email is already a field that is maintained by Geeklog but not prompted for at registration time.
how do I set for homepage use too.
Thanks
Luiz
48
36
Quote
schneider
Anonymous
I want to put a random letter/number gen checker on my registration page to stop spam log ins how do I go about this? I assume it can be done since it's on this site... (any plugins which may help in the long run?)
38
44
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: schneider
I want to put a random letter/number gen checker on my registration page to stop spam log ins how do I go about this? I assume it can be done since it's on this site... (any plugins which may help in the long run?)
You're looking for the CAPTCHA plugin ...
bye, Dirk
43
43
Quote
Rob
Anonymous
Where can I find an example of the code to insert into my webpage to run geeklog?
35
41
Quote
Page navigation
All times are EDT. The time is now 12:27 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content