PDA

View Full Version : User Registration / Email Confirmation



big-dig1965
16-12-2008, 02:59 AM
New install of 71, everything went fine :) . First thing I did was setup some of the various things through the admin area. Then I tried registering a user note: I have "User must activate their own account” selected in that option. Seemed to work but I never got a email to activate. I tried to log in with that user and said no user. I check the DB and the user was listed.
:?: How do I fix this?

renlok
16-12-2008, 09:43 AM
hmm make sure the mail() function work properly
make a blank page and put something like

<?php
$to = 'me@mysite.com'; <- your email address
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>
and run it.

big-dig1965
16-12-2008, 03:26 PM
hmm make sure the mail() function work properly
make a blank page and put something like

<?php
$to = 'me@mysite.com'; <- your email address
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>
and run it.

This did send an email, so what now

big-dig1965
16-12-2008, 06:33 PM
I tried this in admin panel, I went to manage users I seen the user and it had an option to resend confirmation email I click it and a box popped up with this I hit the resubmit and still did not receive email. I then copied the code to an email and sent it to the email address through outlook. Although the email didn’t look pretty it had the information for confirmation the link to confirm did not work, said page could not be found. I copied the link and pasted it worked and said I was confirmed
This is by no means a fix for the problem, but maybe will help diagnose the problem and it can be fixed. Awaiting answer
:)

<table bgcolor="#99FFFF" width="100%" border="1">
<tr>
<td>
<#c_logo#>
<h2>Dear Users Name,



Welcome to My Auction
</h2>
</td>
</tr>
</table>
Thank you for registering and becoming our latest member!



In order to begin selling and/or buying at My Auction, you will need to confirm your registration.

Please follow the link below to reach the confirmation page:


http://www.website.com/myauction/confirm.php?id=1 ('http://www.website.com/myauction/confirm.php?id=1')



Your user information appears below:


<table border="0" width="70%" style="border: 1px solid navy">
<tr>
<td bgcolor="#99FFFF">Your Profile<hr></td>
</tr>
<tr>
<td>ID: 1</td>
</tr>
<tr>
<td>Username: Users Nick</td>
</tr>
<tr>
<td>Password: ******</td>
</tr>
<tr>
<td>Full Name: Users Name</td>
</tr>
<tr>
<td>Address: Address</td>
</tr>
<tr>
<td>City: City</td>
</tr>
<tr>
<td>Province/Region: St </td>
</tr>
<tr>
<td>Country: </td>
</tr>
<tr>
<td>Zip Code: 123456</td>
</tr>
<tr>
<td>Telephone: 382-838-2222</td>
</tr>
<tr>
<td>E-mail: big-dog@.net ('big-dog@.net')</td>
</tr>
</table>
<hr>
Please visit us often at http://www.website.com/myauction/ ('http://www.website.com/myauction/')



If you have received this message in error, please reply to this email or

write to admin@website.com ('admin@website.com').

jbilliau
16-12-2008, 07:34 PM
Hmm, you sure it's not going to junk or anything? I've just confirmed with my setup that the confirmation email does get sent. So it seems to work. Something special about your scenario.

big-dig1965
16-12-2008, 07:43 PM
I use outlook so my junk is defined by my rules I looked and no mail is there from the auction.
I havent modded any files for the auction just admin panel stuff, but nothing about mail that I know of.

clivester
17-12-2008, 01:29 AM
I'm not getting email for user registration or for auction postings.

Running the test email send php file works fine.

jbilliau
17-12-2008, 01:42 AM
You guys did specify an admin email address in the admincp correct?

spiralout
17-12-2008, 01:57 AM
Same problem here. It doesn't send a mail for reg confirmation nor auction postings. I've run the test mail and it sends one, so its not a problem with the server. If a user tries to reregister, it says that their email address is already saved in the DB. I've checked the DB and the users are listed there. Also, this might not be the thread for it, but I've noticed that the delete user function isnt working either, so the addresses used for reg cannot be used to re registering. And to jbilliau's post which came while I was writing this, yes, and its the same admin email that I used in 0.6.3, but I never had a prob with that version sending mails.

clivester
17-12-2008, 02:03 AM
You guys did specify an admin email address in the admincp correct?

.....OH PLEASE! ....... give me some credit! :lol:

big-dig1965
17-12-2008, 02:52 AM
I loaded up pHpAuction which if you look at my other post (http://www.webidsupport.com/viewtopic.php?f=3&t=100) on here you’ll understand that, but anyway I don’t have the mail problem. Still that isn’t fixing my problem with webid, Can someone tell me the file that the email code is in, and Ill take a look at both and see if I notice anything obvious.

renlok
17-12-2008, 07:53 AM
user_confirmation.inc.php

big-dig1965
17-12-2008, 10:01 PM
Well heck I played with several things and still nothing, so I nooked the DB and the auction folder on server and redone it all. Now everything looks ok, but still no email and further more the test email from an earlier post doesnt work. What now? Ilooked at the DB and the user is there so I asume the site is comunicating with the DB.
I can still edit this post so I am adding to it
Can someone tell me what is being processed or pages being accessed under the Users management / Resend e-mail / resend mail button. because if I do that I get the email. I dont know if this will help figure out the problem but I dont have any other ideas

clivester
18-12-2008, 01:06 AM
Can someone tell me what is being processed or pages being accessed under the Users management / Resend e-mail / resend mail button.
[/size]

I don't have a resend e-mail button in my V0.7.1 Users Management :? :? :?

big-dig1965
18-12-2008, 01:22 AM
Its under Users in the admin cpl
http://www.wichitarcraceway.com/upload/Auction/UserAdminSnapshot.jpg

renlok
18-12-2008, 08:28 AM
ahh if that works it means your server doesnt like some of the headers being sent.
in user_approved.inc.php, user_confirmation.inc.php, user_confirmation_needapproval.inc.php, user_confirmation_needapproval.php,
change

"From:".$system->SETTINGS['sitename']." <".$system->SETTINGS['adminmail'].">\r\nReply-To: ".$system->SETTINGS['adminmail']."\r\nReturn-path: ".$system->SETTINGS['adminmail']."\r\nMIME-Version: 1.0\nContent-Type: text/html; charset=$CHARSET"
to

"From:".$system->SETTINGS['sitename']." <".$system->SETTINGS['adminmail'].">\n"."Content-Type: text/html; charset=$CHARSET"

big-dig1965
18-12-2008, 09:03 AM
Error

Parse error: syntax error, unexpected ';' in /home/public_html/Auction/includes/user_confirmation.inc.php on line 63
Origanal

mail($TPL_email_hidden,"$MSG_098",$message,"From:".$system->SETTINGS['sitename']." <".$system->SETTINGS['adminmail'].">\r\n" . "Reply-To: $system->SETTINGS[adminmail]\r\n" . "Return-path: $system->SETTINGS[adminmail]\r\n" . "MIME-Version: 1.0\n" . "Content-Type: text/html; charset=$CHARSET");
Change to

61 mail($TPL_email_hidden,"$MSG_098",$message,"From:".$system->SETTINGS['sitename']." <".$system->SETTINGS['adminmail'].">\n"."Content-Type: text/html; charset=$CHARSET"
62
63 ?>

renlok
18-12-2008, 01:08 PM
put the ); back on the end

big-dig1965
18-12-2008, 06:03 PM
Ok I got an email after about 20 or 30 minutes. It looked good. I clicked the link to comfirm and this is what came up. I tried logging in and said wrong user or password.
http://wichitarcraceway.com/upload/Auction/on_comfir_of_email.jpg

renlok
19-12-2008, 12:42 PM
whats the last error displayed in your error log?

big-dig1965
19-12-2008, 01:23 PM
All the same with differant day and times 9 of them

18-12-2008, 16:54:15:: SELECT suspended FROM PHPAUCTIONXL_users WHERE id=5
Table Auction.PHPAUCTIONXL_users' doesn't exist
page: line:

renlok
19-12-2008, 03:53 PM
wow your using a really old version

in confirm.php change

SELECT suspended FROM PHPAUCTIONXL_users WHERE id=5
to

SELECT suspended FROM ".$DBPrefix."users WHERE id=5

big-dig1965
20-12-2008, 10:41 PM
I give up Im going to try probid

renlok
20-12-2008, 10:57 PM
...ok

clivester
21-12-2008, 01:31 AM
Don't think s/he realized it an in progress work.

Thanks to you though Renlok its come a long way in a short time!

Anyway, I don't mind - that big writing was giving me a HEADACHE :roll:

big-dig1965
21-12-2008, 04:30 AM
I realize it’s a work in progress and I was willing to help the best I could but if you’re going to copy someone else’s work, then get the files and start from where they left off or are at the present. Inventing the wheel again doesn’t make sense.
Sorry for large text but some peoples eyes aren’t as good as others so if all these forums would be a little more user friendly and offer a larger font size our head wouldn’t hurt either.
Might add Probid is up and running as we speak haven’t found an error yet and looks great. Good luck with pHpAuction oh I mean WeBid.

Don’t mean to sound like a ass or start anything, but I compared the file and its obvious where webid came from so again why invent the wheel again.
Best wishes to the project

renlok
21-12-2008, 08:12 AM
3 points
im not sure how im inventing the wheel again by starting with phpauction and massively improving upon it?
you do sound like an ass
phpprobid is professional script costing £110/$175 this isnt.

Box Lot
22-12-2008, 12:55 AM
Ha, ha! Love point 2. It's your house renlok.

Certainly everyone has to decide for themselves though I don't think decisions to stick or go elsewhere require an announcement to the community as a whole.

For me, this kind of development is the way to go and certainly not reinventing the wheel as renlok notes and as most can see with the current version and its appearance.

Hard to see now at this oh so early stage but when things start rolling the community is going to be even more invaluable and it is that support that is going to beat commercially packaged software hands down. For me that has already been proven with retail site software and it's clear that even among the handful here that expertise already exists.

I rely on the kindness of strangers!

Plus if you are not up to speed with all of the ins/outs of PHP (like me!) then being here when things have begun will provide an education that you can't get from reading manuals and more often than not will have to pay for with packaged software.

By the time things are developed then those who have been here can't help but know most of the nooks and crannies and how/where to fix and adjust things. Again I've proven this to my own satisfaction with retail software and I wouldn't even attempt WeBid had I not already received/put into practice some of the basics.

renlok
23-12-2008, 08:52 PM
:D well atleast some people appreciate the work i do.

Box Lot
23-12-2008, 09:38 PM
More than I'm likely to convey effectively. Know that it's always there.

pixellet
12-01-2009, 06:33 AM
Hello frnds... Just reviewd the info... but the script mentioned can only send the info submitted by the user.. confirmation process actually works differently..

I have done it this way in many of my projects :-
I created 2 tables for eg. temp & finalreg ( both have same fields like name, username, password ,email, address etc)

once the user fills in the form the data is inserted in the temp table and a confirmation link is sent to the user for confirming...wherein the link is of a back end file that executes the script " $query : insert into finalreg(name, email, etc....parent)values('$name', '$email', etc.....'$parent') and then php-formmailer process to send the details as the data has been added successfully...hence redirecting to the thanks for confirming page....and the rest of the authorised pages on the site will have to consider (<? required ) the table finalreg as the authentication. Please advice..