Single step registration + Confirmation e-mail v0.1

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #91 (permalink)  
Old 12-12-2007, 09:57 AM
TobiParrot's Avatar
Casual Pligger
Pligg Version: Pligg beta 9.8.2
Pligg Template: Default
 
Join Date: Dec 2007
Location: UK
Posts: 41
I agree with binjamin. Sad I can't use this module.

Email confirmation for registration is a core feature for nearly all the CMS applications I use. It's not the sort of feature I would have thought needed to be PHP or MySQL version dependent.
Reply With Quote
  #92 (permalink)  
Old 12-12-2007, 10:36 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
I'll be re-working this module to make it compatible with the new Captcha module and php4 compatible. It'll be ready later this week.
Reply With Quote
  #93 (permalink)  
Old 12-12-2007, 10:42 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
yahooo thanks Ash this is awesome.

Reply With Quote
  #94 (permalink)  
Old 12-12-2007, 11:52 AM
TobiParrot's Avatar
Casual Pligger
Pligg Version: Pligg beta 9.8.2
Pligg Template: Default
 
Join Date: Dec 2007
Location: UK
Posts: 41
Quote:
Originally Posted by AshDigg View Post
I'll be re-working this module to make it compatible with the new Captcha module and php4 compatible...
That is indeed excellent news. Many thx.
Reply With Quote
  #95 (permalink)  
Old 12-13-2007, 02:24 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
Quote:
Originally Posted by binjamin View Post
So theirs no way to get this thing working for php4? only php5? That's kind of a disadvantage as MANY sites still use php4
Sorry Benjamin I was incorrect I am using php 5 I'm sorry about the confusion!



I'm still having issues with this DOLLARS5 please hep me

ght I played with it and now I get this,

Quote:
Welcome to BlogEngagePLIGG_Visual_Name‏
From: admin@blogengage.comPLIGG_PassEmail_From
When I try and delete the extra text I get a parse error ?

This is where I'm at,
Code:
			echo "Welcome $username<br />";
			echo "Check your e-mail for activating your account.<br />";
			$from = 'From: admin@blogengage.com' . PLIGG_PassEmail_From . "\r\n";
			$subject="Welcome to BlogEngage" . PLIGG_Visual_Name;
			$message = "Hello " . $username . ",\r\n\r\nThanks for registering with us. Please confirm your activation by clicking the following link or by copy, pasting it into your url address field of your browser.\r\n" . my_base_url . my_pligg_base . "/validation.php?code=$encode&uid=$username\r\n\r\nRegards,\r\nAdministrator";
			$to=$email;
			mail($to, $subject, $message, $from);
EDIT: I just did it like this and I don't have an error I will try it and see if it works,

Code:
		echo "Welcome $username<br />";
			echo "Check your e-mail for activating your account.<br />";
			$from = 'From: admin@blogengage.com' . 
			$subject="Welcome to BlogEngage" .
			$message = "Hello " . $username . ",\r\n\r\nThanks for registering with us. Please confirm your activation by clicking the following link or by copy, pasting it into your url address field of your browser.\r\n" . my_base_url . my_pligg_base . "/validation.php?code=$encode&uid=$username\r\n\r\nRegards,\r\nAdministrator";
			$to=$email;
			mail($to, $subject, $message, $from);
Alright I still get an error when I do it this way,

Quote:
Warning: mail(): Bad parameters to mail() function, mail not sent. in /home/content/b/b/r/bbrian017/html/blogengage/register.php on line 173
Line 173 is,

Code:
		mail($to, $subject, $message, $from);
Cheers,

bbrian017
Reply With Quote
  #96 (permalink)  
Old 12-13-2007, 06:40 PM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Just by taking a look at the code you posted, I see a problem here...

PHP Code:
            $from 'From: admin@blogengage.com' 
            
$subject="Welcome to BlogEngage" 
You cut off half of the original code, and you're ending the lines with a . (period) instead of a ; (semicolon).
Reply With Quote
  #97 (permalink)  
Old 12-13-2007, 10:06 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
When I add the code back in ashdigg,
Code:
$from = 'From: admin@blogengage.com' . PLIGG_PassEmail_From . "\r\n";
$subject="Welcome to BlogEngage" . PLIGG_Visual_Name;
Then when you recieve the confirmation it looks like this,
Quote:
Welcome to BlogEngagePLIGG_Visual_Name‏
From: admin@blogengage.comPLIGG_PassEmail_From
Reply With Quote
  #98 (permalink)  
Old 12-15-2007, 03:36 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
I got this to work, thanks everyone
Reply With Quote
  #99 (permalink)  
Old 12-15-2007, 09:31 AM
VLJ VLJ is offline
Pligg Donor
Pligg Version: beta 9.8.2
Pligg Template: modified yget
 
Join Date: Feb 2007
Posts: 60
Quote:
Originally Posted by bbrian017 View Post
I got this to work, thanks everyone
I am curious to know what the problem was... What did the trick?
Reply With Quote
  #100 (permalink)  
Old 12-15-2007, 10:04 AM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 804
Well I'm a noob when it comes to coding and pligg. I mean I can copy paste pretty good but when I have to copy paste and modify I'm in big trouble lol.

When people were signing up they were getting a confirmation e-mail that looked like this in the Body and Title,

Quote:
Welcome to BlogEngagePLIGG_Visual_Name‏
From: admin@blogengage.com PLIGG_PassEmail_From

So I took out this,

Code:
. PLIGG_PassEmail_From . "\r\n"
and

Code:
. PLIGG_Visual_Name
So the register.php looked like this at first,

Code:
echo "Welcome $username<br />";
			echo "Check your e-mail for activating your account.<br />";
			$from = 'From: admin@blogengage.com' . PLIGG_PassEmail_From . "\r\n";
			$subject="Welcome to BlogEngage" . PLIGG_Visual_Name;
			$message = "Hello " . $username . ",\r\n\r\nThanks for registering with us. Please confirm your activation by clicking the following link or by copy, pasting it into your url address field of your browser.\r\n" . my_base_url . my_pligg_base . "/validation.php?code=$encode&uid=$username\r\n\r\nRegards,\r\nAdministrator";
			$to=$email;
			mail($to, $subject, $message, $from);
and now it works perfect like this,

Code:
			echo "Welcome $username<br />";
			echo "Check your e-mail for activating your account.<br />";
			$from = 'From: admin@blogengage.com';
			$subject="Welcome to BlogEngage" ;
			$message = "Hello " . $username . ",\r\n\r\nThanks for registering with us. Please confirm your activation by clicking the following link or by copy, pasting it into your url address field of your browser.\r\n" . my_base_url . my_pligg_base . "/validation.php?code=$encode&uid=$username\r\n\r\nRegards,\r\nAdministrator";
			$to=$email;
			mail($to, $subject, $message, $from);

Last edited by bbrian017; 12-15-2007 at 10:10 AM.
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