[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - [mod] Conditional Placeholder / Attribute Display

[mod] Conditional Placeholder / Attribute Display

3rd party code for phpList

[mod] Conditional Placeholder / Attribute Display

Postby themancan » 9:34pm, Wed 08 Aug, 2007

themancan
phpList newbie
 
Posts: 1
Joined: 9:08pm, Wed 08 Aug, 2007

Postby flug » 1:19am, Mon 01 Oct, 2007

FWIW I've adopted a solution to this problem, of using this salutation:

[FIRST NAME]-


If the first name is in the database, then the salutation looks like:

Henry-


If no first name, then there is just a dash at the very top of their email, which they will probably ignore:

-

Not the best solution, but easy & works OK.
flug
PL Nut
 
Posts: 25
Joined: 12:17am, Mon 28 Aug, 2006

Postby flug » 6:57am, Mon 01 Oct, 2007

flug
PL Nut
 
Posts: 25
Joined: 12:17am, Mon 28 Aug, 2006

Postby chrisirmo » 9:04pm, Mon 08 Oct, 2007

flug, this looks like it'll be a great addition. I've tried adding it into my installation of 2.10.5 but when I process the queue it hangs and never sends the emails. Any idea if something might have changed from 2.10.2 to 2.10.5 that might cause that to happen? Is the "</note>" in the last line supposed to be there? I don't think I've never seen that in PHP before, but I'm far from an expert.
chrisirmo
phpList newbie
 
Posts: 4
Joined: 3:46pm, Tue 01 Aug, 2006

Postby christiansees » 11:39pm, Fri 14 Dec, 2007

christiansees
phpLister
 
Posts: 5
Joined: 9:57pm, Tue 23 Aug, 2005

Conditional Placeholders Code Hack - If data exists, _, else

Postby alloallo » 12:42am, Mon 09 Jun, 2008

alloallo
PL Nut
 
Posts: 42
Joined: 3:59am, Fri 30 May, 2008
Location: Toronto

Postby bzcoder » 6:43pm, Mon 09 Jun, 2008

bzcoder
PL Geek
 
Posts: 53
Joined: 8:15pm, Mon 14 Apr, 2008

not isblank - does phplist understand?

Postby alloallo » 11:04am, Thu 12 Jun, 2008

bzcoder, are you suggesting that I send "Greetings!" using the criterion "FirstName=blank", and then "Dear [FirstName]," using the criterion "FirstName=Notblank"?

But textline fields can't be used as criteria
AND
As far as I know, phplist doesn't understand the logic of "is-blank", and nor does it understand the logic of "not".

Am I mistaken?

Thanks,
Jonathon
alloallo
PL Nut
 
Posts: 42
Joined: 3:59am, Fri 30 May, 2008
Location: Toronto

This is still a problem.

Postby alloallo » 6:16pm, Tue 24 Jun, 2008

alloallo
PL Nut
 
Posts: 42
Joined: 3:59am, Fri 30 May, 2008
Location: Toronto

Postby pd » 8:00am, Fri 18 Jul, 2008

pd
phpLister
 
Posts: 14
Joined: 3:19pm, Tue 03 Jun, 2008

Rewrote conditional statements script

Postby pd » 10:23am, Fri 18 Jul, 2008

pd
phpLister
 
Posts: 14
Joined: 3:19pm, Tue 03 Jun, 2008

Re: Rewrote conditional statements script

Postby Guest » 8:59am, Mon 17 Nov, 2008

Guest
 

Re: [mod] Conditional Placeholder / Attribute Display

Postby szlig » 2:50pm, Mon 03 Aug, 2009

szlig
phpList newbie
 
Posts: 2
Joined: 2:33pm, Mon 03 Aug, 2009

Re: [mod] Conditional Placeholder / Attribute Display

Postby spiro » 12:50pm, Wed 07 Oct, 2009

Hi szlig,

I've just been testing this update to the above mod by flug and pd and whilst the conditional example, Sehr {CONDITIONAL|[S_EX=male]|geehrter Herr|geehrte Frau} now works, it only appears to work when a user is receiving a text version of the newsletter. If the recipient has opted to receive HTML then nothing regarding the conditional statement is shown.

Any ideas?

Kind regards
Spiro

<edit> NB: Remove underscore "_" at S_EX in above Conditional
As of July 2011
using the following on a shared Linux host:


PHPList: v2.10.14,FCKeditor: 2.6.3 (as distributed with phpList),PHP: 5.2.14,PHPMailer: ??,Apache: 2.2.11with OpenSSL enabled.
spiro
PL Geek
 
Posts: 50
Joined: 7:37pm, Thu 29 Jan, 2009

Re: [mod] Conditional Placeholder / Attribute Display

Postby AlasdairGF » 11:13am, Wed 23 Dec, 2009

AlasdairGF
phpList newbie
 
Posts: 4
Joined: 10:52pm, Sun 06 Sep, 2009

Next

Return to Contributions: Plug-ins, Add-ons, Mods

Who is online

Users browsing this forum: No registered users and 1 guest