Page 2 of 2
					
				
				Posted: Sun 2. May 2004, 20:25
				by cyrano
				hi there,
where to change this nice message into german?
Oliver Georgi wrote:OK try this:
Create new content part newsletter AND fill in NOTHING in the form. This should be enough for receiving the verify email:
Code: Select all
Hi Oliver,
You have subscribed to the newsletter at 
http://phpwcms.myftp.org/ 
Before you will receive any newsletter 
you have to verify the email address 
   info@phpwcms.de 
To verify click the link 
http://phpwcms.myftp.org/verify.php?i=Vjp1eDA1MmxaWUZ6QlZLVGVPOmluZm9AcGhwd2Ntcy5kZQ== 
To delete your entry from our database 
http://phpwcms.myftp.org/verify.php?i=RDp1eDA1MmxaWUZ6QlZLVGVPOmluZm9AcGhwd2Ntcy5kZQ==
Best Regards
Oliver Georgi
info@mailverbund.de
23-04-2004, 07:53:02
You can use the following placeholder tags for the email templates within the newsletter form:
Code: Select all
{NEWSLETTER_NAME}   = subscriber name
{NEWSLETTER_EMAIL}  = subscriber email 
{NEWSLETTER_VERIFY} = verify URL
{NEWSLETTER_DELETE} = delete URL
OK - that's it.
Oliver
 
 
			
					
				
				Posted: Sun 2. May 2004, 21:02
				by DeXXus
				"./include/inc_front/content/cnt12.article.inc.php"
Code: Select all
$temp_mailtext  = 'Hi {NEWSLETTER_NAME},'."\n\n";
$temp_mailtext .= 'You have subscribed to the newsletter at'." \n";
$temp_mailtext .= $phpwcms["site"]." \n\n";										
$temp_mailtext .= 'Before you will receive any newsletter '."\n";
$temp_mailtext .= 'you have to verify the email address '."\n\n";
$temp_mailtext .= '   {NEWSLETTER_EMAIL} '."\n\n\n";
$temp_mailtext .= 'To verify click the link '."\n";
$temp_mailtext .= '{NEWSLETTER_VERIFY} '."\n\n";
$temp_mailtext .= 'To delete your entry from our database '."\n";
$temp_mailtext .= '{NEWSLETTER_DELETE}'."\n\n\n";
$temp_mailtext .= 'Best Regards'."\n";
$temp_mailtext .= $phpwcms['SMTP_FROM_NAME']."\n";
$temp_mailtext .= $phpwcms["admin_email"]."\n\n";
$temp_mailtext .= date('d-m-Y, H:i:s')."\n";
 
			
					
				
				Posted: Sun 2. May 2004, 21:43
				by cyrano
				Hi DeXXus,
great thank you!
 
and when i send a new subscriber, i get the message 
Email: 
info@xxxxxxxxxx.de successfully registred. You will receive a verification email within seconds.
Where to change this line into german?
Do you have a second hint for me? 

 
			
					
				
				Posted: Sun 2. May 2004, 21:59
				by Jérôme
				This is in the same file - ./include/inc_front/content/cnt12.article.inc.php - :
									Code: Select all
if($content["newsletter"]["success"]) {
										$content["newsletter"]["success_text"] = str_replace("{NEWSLETTER_EMAIL}", "<strong>".$content["newsletter"]["email_address"]."</strong>", $content["newsletter"]["success_text"]);
										$content["main"] .= div_class(
															( ($content["newsletter"]["success_text"]) ? nl2br($content["newsletter"]["success_text"]) :	"Email: ".$content["newsletter"]["email_address"]." successfully registred. You will receive a verification email within seconds.")
															, $template_default["article"]["text_class"]);
									
									} else {			
 
			
					
				when I click verify link...
				Posted: Mon 3. May 2004, 02:25
				by art777
				when I click verify link
open window - "Page no found" 
 
 
Help  

 
			
					
				
				Posted: Mon 3. May 2004, 05:55
				by sayitfast1
				Art777,
I have the same issue... ugh.... Help.
 

 
			
					
				
				Posted: Mon 3. May 2004, 06:10
				by sayitfast1
				I have found my problem.... the links being sent to the person subscribing are missing a trailing slash
Here is the link sent:
http://www.knightslodge.com/siteinclude ... VNlF6OnJoZ.......
...com/siteinclude above should be .com/site/include.  The form works if I put that / in ... 
Open verify.php and add / in front of include.... I think this is because my site in not in the root dir.... just a guess
 
			
					
				
				Posted: Fri 14. May 2004, 17:25
				by isac
				sayitfast1 wrote:I have found my problem.... the links being sent to the person subscribing are missing a trailing slash
Here is the link sent:
http://www.knightslodge.com/siteinclude ... VNlF6OnJoZ.......
...com/siteinclude above should be .com/site/include.  The form works if I put that / in ... 
Open verify.php and add / in front of include.... I think this is because my site in not in the root dir.... just a guess
 
Same problem here... thanks sayitfast1! 

 
			
					
				
				Posted: Mon 17. May 2004, 09:11
				by sayitfast1
				very cool... glad I was able to help
			 
			
					
				
				Posted: Mon 17. May 2004, 14:07
				by Oliver Georgi
				OK, this is the optimized version of verify.php and article.php
Code: Select all
// redirect old article.php to the new index.php
$curdir  = dirname($_SERVER['PHP_SELF']);
$curdir  = str_replace("\\", "/", $curdir).'/';
$curdir  = preg_replace('/(.*)\/\/$/i', '$1/', $curdir);
$curdir  = $_SERVER['HTTP_HOST'].$curdir;
$curdir .= 'include/inc_act/act_newsletter.php?';
$curdir .= $_SERVER['QUERY_STRING'];
header("Location: http://".$curdir);
exit();
available also via CVS.
Oliver
 
			
					
				btw - where do I subscribe
				Posted: Tue 18. May 2004, 11:52
				by jsw_nz
				sorry to look stupid, but where do I subscribe to: 
phpwcms newletter?:sourceforge | mainsite | here
cheers,
jsw
			 
			
					
				
				Posted: Tue 18. May 2004, 13:20
				by Oliver Georgi
				There is no mailinglist for this.
You have to check manually or by using anonymous CVS.
Oliver