Single step registration + Confirmation e-mail v0.1

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #151 (permalink)  
Old 03-02-2008, 11:30 AM
New Pligger
 
Join Date: Feb 2008
Posts: 8
Hi
Where and how to change this step-4: Modify the validation.php with proper database settings. I found validation.php but there is no
define('DB_NAME', 'Database Name'); // The name of the database
define('DB_USER', 'Username'); // Your MySQL username
define('DB_PASSWORD', 'Password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value.
Do I have to add this and where or is it in some other place.
Please help me I am going crazy.
Reply With Quote
  #152 (permalink)  
Old 03-05-2008, 10:45 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
I'm assuming Ash Digg isn't working on this module for 9.9.0 anymore?
Reply With Quote
  #153 (permalink)  
Old 03-07-2008, 10:17 AM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 123
Quote:
Originally Posted by ketissak View Post
Hello every body

I try to do something for the email validation...

For me it looks like to work well. You can try it here : elEcodiario - Agregador de Noticias / Publicadas

It's not a module because i don't have the time neither the knowlege.
I tried to do it but without success by lack of time...

I put an archive with the files and there is the way:
login.php --> ./
register.php --> ./
registration.php --> ./
validation.php --> ./
libs_login.php --> ./libs/login.php
*.tpl --> ./templates/yget/

I Hope it will be usefull
Ketissak
Ketissak, I tested yours from your site and it says my confirmation notice came from password@pligg.com. You may want to change that.
Reply With Quote
  #154 (permalink)  
Old 03-11-2008, 05:53 AM
New Pligger
Pligg Version: Pligg_Beta_9.9.0
Pligg Template: yget
 
Join Date: Feb 2008
Posts: 2
Quote:
Originally Posted by fingerprn View Post
Ketissak, I tested yours from your site and it says my confirmation notice came from password@pligg.com. You may want to change that.
Thank you for the remark!!

I changed it..

I forgot to tell that i run the version Pligg_Beta_9.9.0

If there is someone who can tell me a feedback, it works for you, did you try it??

Good bye
Reply With Quote
  #155 (permalink)  
Old 03-11-2008, 01:51 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 123
It didn't work for me, but I was able to get some ideas from your code and the original to create a version that works. I just need to make a few tweaks and I'll post my solution in the next several days.
Reply With Quote
  #156 (permalink)  
Old 03-17-2008, 09:06 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 123
Here's my humble attempt at improving the registration system.

Here's what was changed from dollars5 mod:

1. Although the v.0.3 code seems to work fine for most of you, it didn't on my server. I discovered it's because it wasn't accessing my database properly. I replaced the standard MySQL commands with just enough EZsql commands to get it to work. If you were having problems with the old code, my version may work for you.

2. Originally, if the user didn't click on the confirmation email code and tried to log in, it would just say they had the wrong username/password. Now it will tell you that you never completed the confirmation process and offers to send you another confirmation email.

3. Other small tweaks to make the experience more user-friendly.

4. NEW! dollars5's v.0.3 code did not work with the "Send Welcome Private Message" module. This version now includes a private welcome message. However, since I could not get this mod to work with the original "Send Welcome Private Message" module, I just dumped the module code into the register.php file and tweaked a few things until it worked. If you don't want this capability, just delete or comment it out.



Important: I am not a developer. I modified the original mod through hours of trial and error and not through my vast knowledge of PHP. Therefore, if it doesn't work on your system I won't be able to help because I'm not completely sure why it does work on my system.

That said, let's move on:

1. Download the attached files below and put the PHP files in the Pligg root directory and the TPL files in your template/templatename directory. Don't forget that the login.php file goes in your libs directory.

2. Open your libs/lang.conf and place the following at the bottom:

Code:
/////////////////////////////////////////////////////////////////////////////////////////////

//<SECTION>CONFIRM ACCOUNT</SECTION><ADDED>0.983</ADDED>
PLIGG_Visual_Resend_Error_Email_Does_Not_Exist = "That email address does not exist in our system."
//<SECTION>CONFIRM ACCOUNT</SECTION><ADDED>0.983</ADDED>
PLIGG_Visual_Login_Confirm_Error = "ERROR - your account is still unconfirmed.&nbsp;<br /><br />&nbsp;Please check e-mail for your confirmation link &nbsp;<br /><br />&nbsp;or <a href='http://www.yoursite.com/resend_confirm.php' />click here</a> here have your confirmation link resent.&nbsp;"
//<SECTION>CONFIRM ACCOUNT</SECTION><ADDED>0.983</ADDED>
PLIGG_Visual_Resend_Confirmation = "Resend Confirmation"
//<SECTION>REGISTER</SECTION><ADDED>0.983</ADDED>
PLIGG_Visual_Resend_Confirm_Do_Not_Continue = "Resend Confirmation Unsuccessful"
//<SECTION>REGISTER</SECTION><ADDED>0.983</ADDED>
PLIGG_Visual_Resend_Confirm_Success = "Confirmation Sent"
3. Open html1.php and find the following code:

If ($x == "register") {return my_pligg_base."/register.php";}

below it add:

Code:
If ($x == "resend_confirm") {return my_pligg_base."/resend_confirm.php";}
Next, find:

If ($x == "register") {return my_pligg_base."/register";}

below it add:

Code:
If ($x == "resend_confirm") {return my_pligg_base."/resend_confirm";}
Next, find:

$main_smarty->assign('URL_register', getmyurl("register"));

below it add:

Code:
$main_smarty->assign('URL_resend_confirm', getmyurl("resend_confirm"));

4. If you are using the URL2 method, open .htaccess and find:

RewriteRule ^register/?$ register.php

below it add:

Code:
RewriteRule ^resend_confirm/?$ resend_confirm.php

5. Be sure to customize your confirmation code in register.php, resend_confirm.php and validation.php. I currently have it set to "zzzzz".

That should do it!


NOTE: This has not been tested on version 0.9.9.0 If this does work, please let us know.


REVISION HISTORY

5/31/2008 Version 0.3_fingerprn_2 Added private welcome message capability.
Attached Files
File Type: zip 1-step-register-emailconfirm-resendconfirm.zip (8.9 KB, 23 views)

Last edited by fingerprn; 05-31-2008 at 07:11 PM. Reason: Updated Code
Reply With Quote
  #157 (permalink)  
Old 03-19-2008, 04:32 PM
Pligg Donor
Pligg Version: 9.8.2 +
Pligg Template: yget
 
Join Date: Jul 2007
Posts: 123
I just noticed that my "Send Welcome Private Message" module isn't working anymore. However, I don't know if it's being caused by the v.0.3 mod, my mod to the mod (above), or something else I've modded over the last few days.

UPDATE: Finally discovered what is going on. Dollar5 did not add this capability back in. My newest version above now includes a private welcome message. However, since I could not get this mod to work with the original Send Welcome Private Message module, I just dumped the module code into the register.php file and tweaked a few things until it worked. If you don't want this capability, just delete or comment it out.

Last edited by fingerprn; 05-31-2008 at 06:18 PM. Reason: Discovered solution
Reply With Quote
  #158 (permalink)  
Old 03-21-2008, 12:42 PM
New Pligger
Pligg Version: 1
Pligg Template: diggggggg
 
Join Date: Mar 2008
Posts: 2
Thanks, trying
Reply With Quote
  #159 (permalink)  
Old 04-01-2008, 07:54 PM
New Pligger
 
Join Date: Sep 2007
Posts: 4
bumped: v9.9.0?
Reply With Quote
  #160 (permalink)  
Old 04-03-2008, 02:25 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
We have it implemented for 9.9 - but not released as OSS - if interested feel free to email us at sales [at] dollars5 [dot] com
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email confirmation for registration sbanerjee Questions and Comments 2 11-23-2008 11:42 AM
Single Step Registration+Email Verification arkasun Questions and Comments 6 11-10-2008 10:46 AM
HELP! I'm getting spammed! AshMCairo Questions and Comments 113 11-04-2008 01:58 PM
Single step registration + Confirmation e-mail v0.3 onis Questions and Comments 1 01-17-2008 11:23 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development