newsletter function

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post 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
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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";
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post 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? :lol:
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post 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 {			
art777
Posts: 34
Joined: Wed 12. Nov 2003, 03:07

when I click verify link...

Post by art777 »

when I click verify link
open window - "Page no found" :(
Help :!:
sayitfast1
Posts: 21
Joined: Fri 5. Mar 2004, 07:32

Post by sayitfast1 »

Art777,

I have the same issue... ugh.... Help.

:shock:
sayitfast1
Posts: 21
Joined: Fri 5. Mar 2004, 07:32

Post 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
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post 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! :wink:
sayitfast1
Posts: 21
Joined: Fri 5. Mar 2004, 07:32

Post by sayitfast1 »

very cool... glad I was able to help
User avatar
Oliver Georgi
Site Admin
Posts: 9917
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

btw - where do I subscribe

Post by jsw_nz »

sorry to look stupid, but where do I subscribe to:

phpwcms newletter?:sourceforge | mainsite | here

cheers,
jsw
User avatar
Oliver Georgi
Site Admin
Posts: 9917
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

There is no mailinglist for this.

You have to check manually or by using anonymous CVS.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply