Single step registration + Confirmation e-mail v0.1

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2007, 08:44 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Single step registration + Confirmation e-mail v0.3

Created by: Vinoth Kannan
Created on: 2007/02/28

Description
It Makes user registration in single step and confirmation email: allows user to validate his e-mail address by confirming a link sent.

Download: http://www.pligg.com/forum/attachmen...1&d=1173771044

Screenshot:


Steps:
step-1: Upload & replace the validation.php and register.php to Pligg root directory
step-2: Upload & replace the login.php to /libs/login.php
step-3: upload & replace the register_step_1.tpl to template/templatename/register_step_1.tpl
step-4: Modify the validation.php with proper database settings

Revision History
v0.3 2007/03/13 Dollars5 - Bug fix to use table_users for pligg user table
v0.2 2007/03/05 Dollars5 - Updated to automatically pick Site url, Greeting message and site email for from address.
v0.1 2007/02/28 Dollars5 - First version


We are open for your feedback and improvements - if you can improve it further - please do it and make sure you share it here.
Attached Files
File Type: zip single step registration03.zip (5.9 KB, 1674 views)

Last edited by dollars5; 03-13-2007 at 03:31 AM.
Reply With Quote
  #2 (permalink)  
Old 02-28-2007, 09:03 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Added a screenshot.

Note to all users who have doubts in confirmation e-mail: user will receive an e-mail containing an link which he need to click to get activated.

This is done by creating an user with last-login time as 0, when an user tries to login - we check for his last-login time and if not zero allow him to login, else we block him from login. Once user clicks on the link in e-mail - the last-login time is initialized and allows to login.

Should you have any alternatives please so post in here.
Reply With Quote
  #3 (permalink)  
Old 02-28-2007, 09:30 AM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 3,800
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Very cool stuff, good work Dollars6

Now Available: Facebook Connect Module !
Reply With Quote
  #4 (permalink)  
Old 02-28-2007, 09:36 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
But be informed that th validation.php does not fit into the current template, if any one could volunteer to clean this up - that would be great. If possible please do make it as a module.

Also on a other note for people inquiring abt Captchas displayed: This is using better captcha for Pligg that is available from http://www.pligg.com/forum/showthread.php?t=4595 it allows users to use their own fonts to get weird characters, alpha-numeric display - this module too is in a very early stage - if someone could improve on it - that would be great.

Thanks for all support.
Reply With Quote
  #5 (permalink)  
Old 02-28-2007, 10:06 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Nice job. We'll have to see about making this a module. Might be a little tougher than usual for this type of customization.
Reply With Quote
  #6 (permalink)  
Old 02-28-2007, 11:17 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
The possibilities of getting this into module would take more effort because - it requires the login, registration to be modified.

But the e-mail confirmation can be made as a module and we can check to see if the module is activated or not to use the modified login, registration scripts - this is one possibility to convert it into a module. but not sure how much code change that it would require.

If any one can volunteer to make these changes - it would be great as we are developing modules as a side task apart from our main work (Mobile applications development + consulting) and cannot afford more time into this
Reply With Quote
  #7 (permalink)  
Old 02-28-2007, 11:23 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Maybe the ability to turn it off and on in the admin panel would be a better idea.
Reply With Quote
  #8 (permalink)  
Old 02-28-2007, 11:36 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
So far we have experience in creating modules - Admin panel is a new place for us to play with - but if any one can initiate a work into this - we can continue the good work
Reply With Quote
  #9 (permalink)  
Old 03-04-2007, 02:27 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
You must enter the all the 4 - DB_NAME, DB_USER, DB_PASSWORD and DB_HOST.
enter your database name for Pligg, enter your username for the database, enter your password for the database and last where the database is located and also pls do change the following line too
Code:
$message ="http://localhost/new/pligg19/validation.php/?code=$encode&uid=$username";
to point to the location of you validation.php file on server.

Sorry we had it hard coded, will fix such that it picks dynamically; on Monday - currently out of office and no access to server.
Reply With Quote
  #10 (permalink)  
Old 03-04-2007, 09:34 AM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,961
Will fix that dude and present a newer one after testing - I think the parameters to mail function are wrong - thanks for pointing it out.

And sorry that i didnot mention to look into register.php in my previous post and thanks for noting it.
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