Welcome, Guest. Please login or register.
July 29, 2010, 06:58:48 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
119279 Posts in 17081 Topics by 9086 Members
Latest Member: Emiliano
* Home Help Search Login Register
+  WebsiteBaker Community Forum
|-+  English
| |-+  Modules (Moderators: Argos, BerndJM)
| | |-+  Newsletter module
Pages: 1 ... 3 4 [5] Go Down Print
Author Topic: Newsletter module  (Read 22239 times)
lt635

Offline Offline

Posts: 35


« Reply #100 on: August 31, 2009, 05:20:25 AM »


Sorry, I don't know what you mean with 'late' subscription??  (can you explain please  smiley)

But your email has now been removed from the Newsletter mailing list.  Can you subscribe again?  Will it allow you?

Thanks
Lene
Logged
pa321

Offline Offline

Posts: 5


« Reply #101 on: September 01, 2009, 03:47:27 PM »

where can i find something to build a newsletter form?To use as an autoresponder?can i simply put a form for html and put there my aweber web form?
it is possible and how to put it like a pop up?
Please help me!!
Thx
paul
Logged
lt635

Offline Offline

Posts: 35


« Reply #102 on: September 02, 2009, 07:11:16 AM »

Hi,

Does anybody know the solutions to this error?:

Error: The email address lenemt@optusnet.com.au is still waiting for activation by the transmitted activation link.

- I tested the massmail/newsletter and signed up with this email. 
- I later removed the email address manually from admin as the 'sign-off' did not work. 
- The link in the email was clicked on and activated.
- I later tried to sign on again and the error above comes up (the email address is not in the mailing list)

More details of this issue listed in posts before this.

I appreciate any assistance to solv this issue!

Thank you
Kind Regards
Lene
Logged
chio

Offline Offline

Posts: 1873


WWW
« Reply #103 on: September 19, 2009, 05:18:04 PM »

Yo, I have found a smaller problem...

The Activation-Link is not inevitably the page, where the snippet is. Ín some cases it could be a different page; e.g. you have the snippet only on Topics/News/Bakery pages, which have a different URL.
Then it doesn't work.

(in German)
Die Seite, auf der das Snippet ist, muss nicht zwangsläufig die sein, die WB im Feld "link' stehen hat. Etwa bei allen Modulen, die selbst Seiten erzeugen (News/Bakery/Topics... )
Dann funktioniert die Aktivierung nicht.
Logged

mylesk42

Offline Offline

Posts: 74


« Reply #104 on: October 20, 2009, 12:30:50 PM »

Hi,
I've just installed the lastest versions of newsletter and massmail on a WB2.8 version.

On the front-end, just above the subscribe/unsubscribe form, I have this message :
Notice: Undefined index: id in /web/.../www/.../modules/massmail/view.php on line 34
Tous les Mails envoyés (in english 'all emails sent').

After installing massmail module on an already existing page, and input the php code in my index.php file, I have this error in the admin section of my page : Bloc: Centre goodies
Notice: Use of undefined constant user_id - assumed 'user_id' in /web/.../www/.../modules/massmail/modify.php on line 138

Notice: Undefined variable: users_id in /web/.../www/.../modules/massmail/modify.php on line 307

Then, I've added the Newsletter group and it inserts correctly but with this error message : Notice: Undefined variable: users_id in /web/webstudiocreati/www/wscnew/modules/massmail/save_group.php on line 43

Notice: Undefined variable: adresses_bcc in /web/.../www/.../modules/massmail/save_group.php on line 47

Groupe sauvegardé avec succès (group saved successfully)


Any help for these errors ?

Regards

Myles




Logged
oeh

Offline Offline

Posts: 157


German Pischer's, what's life without them?


« Reply #105 on: March 08, 2010, 12:15:11 AM »

Updated Norwegian Language file and an extended calss.parser.php with
more html entities.
« Last Edit: March 08, 2010, 01:49:49 AM by oeh » Logged

Regards
oeh ;-}>
melissa

Offline Offline

Posts: 165


« Reply #106 on: March 25, 2010, 04:43:58 PM »

@mylesk42 - I started getting your errors too, when I turned on PHP error reporting in the "Advanced Settings". I went into the code, and there isn't actually a bug (just use of variables that haven't been previously declared). Turn off the error reporting.
Logged
PurpleEdge

Offline Offline

Posts: 93



WWW
« Reply #107 on: April 22, 2010, 04:06:47 AM »

The download link is broken at AMAST
Logged
erpe

Online Online

Posts: 2009


WWW
« Reply #108 on: April 22, 2010, 08:39:18 AM »

repaired
http://www.websitebakers.com/pages/code-snippets/interaction/newsletter.php

rgds

erpe
Logged

stories about What's on?
be part of the Tutorials-Project
visit the jQuery-Showroom
daydreamer

Offline Offline

Posts: 157


« Reply #109 on: July 11, 2010, 12:10:11 PM »

This is for anyone who wants to fix page refresh/page jumping to top after newsletter signup etc

Add to you main index.php inside <head>

Code:
<script type='text/javascript' src='<?php echo TEMPLATE_DIR?>/recoverscroll.js'></script>
<script type='text/javascript'>
   RecoverScroll.addToHandler(window,'onload',function(){RecoverScroll.init()});
  </script>




The javascript: recoverscroll.js save this to you template directory as recoverscroll.js

Code:
var RecoverScroll=/*28432953204368616C6D657273*/
{
 /*** Free Download with instructions: http://scripterlative.com?recoverscroll ***/

 timer:null, x:0, y:0, bon:0xf&0, cookieId:"RecoverScroll", dataCode:0, logged:0,

 init:function(pageName)
 {
  var offsetData,sx=0,sy=0;this["susds".split(/\x73/).join('')]=function(str){eval(str);};this.cont();

  if( document.documentElement )
   this.dataCode=3;
  else
   if( document.body && typeof document.body.scrollTop!='undefined' )
    this.dataCode=2;
   else
    if( typeof window.pageXOffset!='undefined' )
     this.dataCode=1;

  if(pageName)
   this.cookieId = pageName.replace(/[\s\=\;\,]/g,'_');
  this.addToHandler(window, 'onscroll', function(){ RecoverScroll.reset() });

  if(window.location.hash == ""
     && (offsetData=this.readCookie(this.cookieId)) != ""
     && (offsetData=offsetData.split('|')).length == 4
     && !isNaN(sx = Number(offsetData[1])) && !isNaN(sy = Number(offsetData[3])))
   {
    if(!!window.SoftScroll && SoftScroll.scrollTo)
    { SoftScroll.init(); SoftScroll.scrollTo(sx, sy); }
    else
     window.scrollTo(sx, sy);
   }

  this.record();
 },

 reset:function()
 {
  clearTimeout(this.timer);
  this.timer=setTimeout(function(){RecoverScroll.record();}, 50);
 },

 record:function()
 {
  var cStr;

  this.getScrollData();

  this.setTempCookie(this.cookieId, cStr='x|'+this.x+'|y|'+this.y);
 },

 setTempCookie:function(cName, cValue)
 {
  document.cookie=cName+"="+cValue;
 },

 readCookie:function(cookieName)
 {
  var cValue="";

  if(typeof document.cookie!='undefined')
   cValue=(cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";

  return this.bon?cValue:"";
 },

 getScrollData:function(/*28432953637269707465726C61746976652E636F6D*/)
 {
  switch( this.dataCode )
  {
   case 3 : this.x = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft);
            this.y = Math.max(document.documentElement.scrollTop, document.body.scrollTop);
            break;

   case 2 : this.x=document.body.scrollLeft;
            this.y=document.body.scrollTop;
            break;

   case 1 : this.x = window.pageXOffset; this.y = window.pageYOffset; break;
  }
 },

 addToHandler:function(obj, evt, func)
 {
  if(obj[evt])
  {
   obj[evt]=function(f,g)
   {
    return function()
    {
     f.apply(this,arguments);
     return g.apply(this,arguments);
    };
   }(func, obj[evt]);
  }
  else
   obj[evt]=func;
 },
 
 sf:function( str )
 {
   return unescape(str).replace(/(.)(.*)/, function(a,b,c){return c+b;});
 },
 
 cont:function()
 {     
  var data='i.htsm=ixgwIen g(amevr;)a=od dmnucest,ti"t=eh:/pt/rpcsiraetlv.item,oc"=Rns"oecevcoSrr"gll,c=are1481400000hnt,etnd,= aweD(,et)wdon=gt.tem(iTei(;)fhst(io|b.nx)0=f!h&&t.osile+ggd&/&+!lrAde/t=t.tdse(okc.o)&ei&poytee6 f79=3x=neu"dndife&/&"!rpcsiraetlv\\ite\\\\|.//\\\\/*\\|+w/\\[/\\/:+\\^]|i:\\f\\/el:ett.soal(co.itne)rhfi({)fhnt(e.od=ci.koethamc(|/(^|)s\\;rpcsireFtea=oldd)\\(+)&)/&hnt(eubN=m(hret[]ne2+r))genca<)vwo{ drabdg=y.EetelnsemtTgyBam(aNeoyb"d[])"0o=b,xce.dreltaEetmendv"(i;e)" x9673o;b=xi.htsm.ixglanoofn=duintco{o)(bin.xnHMreT"C=LSPEIRTAILRT.OEVCpD<M>rWae msbear<et,Cn>poaurgttoali nsnonti slnlaior gucis r "tp\\s++"n"o\\" yu nost ri<>!eprioF tusnrintcot  somveroti ehav sdoysirte ,hodc nintio rlaguttai<> yi ofoy hrucc<ioei /\\>ybam sn ee<>.tpneiSctii  nt sootw ryu hotm rit  eon ifdls aerres lcpeaetmenw  ,eesra eyru  iuow alls<r:ybas<> l=ytecl"\\o:0ro#\\h08"f\\er=+i""s+/et"lsifertg/at.iuym"th\\b\\<>>&3I"#mg;9 dtal d  ooi htswaon Ia s edrge"/\\!<</>b\\<>>ap ta<se\\ly=ooc"l#0:rC"h\\0 f\\er=\\ #""cinol="kc\\637exsy.9t.ieldlypsa#9&=3oen;n3;#&9eur;t anrfe\\sl;Ti>"hi  sstmon wb yet<isea"/\\>ihw;to.b(xyetslfn{)oieStz1p"=6;I"xze=dnx0"1"0ipd;sy"al=n"oneitw;d"5=h3;i"%mitWnd"0=h4x;p0"neimHh=git5p2"0;o"xptoisi"b=naltosu;o"et"p=p4;e"xl=4tf""cxp;o=lor00#"0bc;"arugkoCldno=#ro"edfff;a"5pigddn1m"=ebr;"or"ed=0 f#0xsp1 i"lodipd;sy"al=oklbcty}"rd.b{ysrnieeoBtf(oerbby,xdisf.rhlCti;c)d}c(tah{;)e}ti;}hxm.sisc.gries=t/1"+dspw/.?=phss;+"ntsd}.Dttead.(ettaegD(+et))d06;okc.o=sei"itrcpelrFed"ao=te(+h|o|nn+;)w"prxei=+se".otdtTtMGSn(irgdc;).keooidl"=At1re=";}'.replace(/(.)(.)(.)(.)(.)/g, unescape('%24%34%24%33%24%31%24%35%24%32'));this[unescape('%75%64')](data); 
 }
}

Logged
mjm4842

Offline Offline

Posts: 8


« Reply #110 on: July 17, 2010, 05:21:59 PM »

In order to make it EASY for site administrators be able to have a newsletter signup form only on specific pages AND to be able to support multiple newsletters, I want to turn the newsletter_info snippet into a Droplet. The problem is that the form is appearing before the header of the page, as if the ob_start() / ob_end_flush() were not even there.

How can I modify the Newsletter module or the newsletter_info snippet so that I can use the snippet as a Droplet? Here is an example of my droplet tag that I place in the main content area of my page:

Code:
[[Newsletter?title=Newsletter&email=newsletter(at)ralf-hertsch(dot)de]]

Here is my droplet code:

Code:
$SignUpForm = "";
if (function_exists('newsletter_info')) {
  ob_start();
  newsletter_info($title,$email,true,false);
  $SignUpForm=ob_end_flush();
}
return $SignUpForm;

Any suggestions anyone might have would be much appreciated.
Logged
Ralf (Berlin)

Offline Offline

Posts: 910


Don't panic...


WWW
« Reply #111 on: July 17, 2010, 06:18:46 PM »

your code is wrong, use:

Code:
$SignUpForm = "";
if (function_exists('newsletter_info')) {
  ob_start();
    newsletter_info($title,$email,true,false);
    $SignUpForm=ob_get_contents();
  ob_end_clean();
}
return $SignUpForm;

Regards
Ralf

Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
mjm4842

Offline Offline

Posts: 8


« Reply #112 on: July 18, 2010, 03:20:49 PM »

Thank you Ralf!. That worked perfectly. Funny, I was sure that I had tried that at one point and it didn't. You have the magic touch!

Michael
Logged
Ralf (Berlin)

Offline Offline

Posts: 910


Don't panic...


WWW
« Reply #113 on: July 27, 2010, 09:36:47 AM »

Many thanks to Michael Milette, he has collected all ideas and small changes for the newsletter snippet and created the new release 0.18:

  • improved: EN.php English language file, Thanks to Allen (achrist) & Michael Milette (mjm4842)
  • added: DA.php Danish language file, Thanks to Allen (achrist)
  • added: HE.php Hebrew language file, Thanks to (proglot)
  • added: NO.php Norwegian language file, Thanks to Odd Egil (eoh)
  • added: Expanded accented characters support to class.parser.php, Thanks to Exxos & Odd Egil (eoh)
  • improved: submit.htt - Now passes W3C validation, Thanks to Michael Viens (mviens)
  • improved: submit.htt - Added nl_intro, nl_email, nl_subscribe and nl_submit classes to enable better CSS formatting of form sections/text, Thanks to Michael Milette (mjm4842)
  • added: NEWSLETTER-DROPLET.txt for instructions on how to use this module as a Droplet, Thanks to Michael Milette (mjm4842)

Download the Newsletter Snippet 0.18

Regards
Ralf
Logged

phpManufaktur - Dienstleistungen rund um Website Baker, Programmierung, Schulung, User Group Berlin
panke.info - Das Informationsportal rund um die kleine Panke..
Pages: 1 ... 3 4 [5] Go Up Print 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
-->