Go Back   Pligg Forum > Pligg Development > Pligg Mods
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2007, 07:44 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
Smile Single step registration + Confirmation e-mail v0.3

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, 856 views - Who Downloaded?)

Last edited by dollars5 : 03-13-2007 at 02:31 AM.
Reply With Quote
The Following 10 Users Say Thank You to dollars5 For This Useful Post:
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 02-28-2007, 08:03 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
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, 08:30 AM
Yankidank's Avatar
Yankidank Yankidank is offline
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Pligg Founder
Pligg Version: 9.9
Pligg Template: Blue Green Str
 
Join Date: Dec 2005
Location: Savannah, GA
Posts: 1,359
Downloads: 58
Uploads: 6
Thanks: 88
Thanked 139 Times in 93 Posts
Very cool stuff, good work Dollars6
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #4 (permalink)  
Old 02-28-2007, 08:36 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
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, 09:06 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,577
Downloads: 61
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
Nice job. We'll have to see about making this a module. Might be a little tougher than usual for this type of customization.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
  #6 (permalink)  
Old 02-28-2007, 10:17 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
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, 10:23 AM
kbeeveer46's Avatar
kbeeveer46 kbeeveer46 is offline
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,577
Downloads: 61
Uploads: 6
Thanks: 255
Thanked 651 Times in 515 Posts
Maybe the ability to turn it off and on in the admin panel would be a better idea.
__________________
I accept donations for my time helping users like you on the forum and IRC.

FREE and premium Pligg Web Hosting (NO ads, Includes MySQL, PHP, PHPMyAdmin, and Control Panel) - PM me for discounts on premium packages or if you would like a custom-made package. Paypal accepted.
Reply With Quote
  #8 (permalink)  
Old 02-28-2007, 10:36 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
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, 01:08 AM
abcdefgary abcdefgary is offline
Constant Pligger
 
Join Date: Feb 2007
Posts: 236
Downloads: 5
Uploads: 0
Thanks: 20
Thanked 29 Times in 15 Posts
I'm having trouble setting this up. Particularly here:

Code:
		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
am I suppose to change the first value, or the second value? (for example, do I place my db name at DB_NAME or under Database Name?

I do get an e-mail, but the activation link appears in the subject, rather than the email body, and it shows up as:

Code:
http://localhost/new/pligg19/validation.php/?code=##############################&uid=username
i must be doing something wrong.
Reply With Quote
  #10 (permalink)  
Old 03-04-2007, 01:27 AM
dollars5's Avatar
dollars5 dollars5 is offline
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,130
Downloads: 29
Uploads: 1
Thanks: 289
Thanked 262 Times in 174 Posts
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
The Following 2 Users Say Thank You to dollars5 For This Useful Post:
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks Enabled by vBSEO 3.0.0