[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/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 - [plugin] EnhancedPlaceholders: Add more placeholders

[plugin] EnhancedPlaceholders: Add more placeholders

3rd party code for phpList

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 9:23pm, Thu 16 Jun, 2011

drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 9:53pm, Thu 16 Jun, 2011

drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 10:02pm, Thu 16 Jun, 2011

duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 8:15pm, Sat 18 Jun, 2011

Thanks very much! I've looked at your changes, which all seem to me to be quite good, and will meld them with my code as soon as I have time to do so and to run them in the instance of phpList to which I am migrating a customer's mailing lists. That system has an additional extension to my plugin in order to accomplish some stuff which is very specific to the customer's needs. I will have to be sure that things work together alright (which they should) before actually implementing your changes. I hope I can do this next week.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 6:41am, Sun 19 Jun, 2011

boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby duncanc » 8:18am, Sun 19 Jun, 2011

I think that I saw this type of problem when I first used the plugin, and it is to do with core phplist code, not the plugin code, adding and removing special characters when inserting or querying the database. I think that there is some double removal of back-slashes, and in the end it was too messy to work around it. I'll try to have a closer look though.

If you have used single or double quotes or most likely back-slash in your placeholder name, description or value then that is the cause of the problem so please avoid using them.

If you have knowledge of how to look at your database through control panel, can you view the config table row with item enhanced_placeholders, and copy/paste the value here?
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 11:21am, Sun 19 Jun, 2011

boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby boxbreak » 11:59am, Sun 19 Jun, 2011

boxbreak
phpLister
 
Posts: 7
Joined: 3:34pm, Thu 13 Aug, 2009

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby shanoviachan » 9:34pm, Tue 05 Jul, 2011

Hi
I am new in phplist and try to get this nice plugin run, but i don´t get a new editor form for my new placeholders. I tried to add two placholders for Upcoming Events and "the most important news"

I open the plugin setup page and create this to placeholders, but the does not appear on the "create new message" page.

I have installed the latest version of phplist and the latest version of this plugin, but i´am a bit confused about all the some recent posts with other instructions than in the opening post with the latest version. I´am also confused about the cron jobs part...

Could someone sum up all relevant steps to get this great plugin running?

Thanks
regards
Thorben
shanoviachan
phpList newbie
 
Posts: 2
Joined: 9:20pm, Tue 05 Jul, 2011

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 11:59pm, Tue 05 Jul, 2011

Last edited by drmike on 7:40pm, Sun 09 Oct, 2011, edited 2 times in total.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 12:11am, Wed 06 Jul, 2011

drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby shanoviachan » 8:05am, Wed 06 Jul, 2011

Hi drmike
thanks for your quick response, it seems the plugin works fine, but not that way i expected... :(

I thought with this plugin i will be able to add a new editor form for newsletter typing. My admins should have the option to "create a new message" with 3 textforms, they fill the first one with major topics, the second on with upcoming events and the third one with the standard body (CONTENT).

This mod viewtopic.php?f=7&t=7967 goes that way, but the def´s of placeholders seems hard, because me admins will get confused about Content 1, Content 2 ... fields.

Just to conclude,your plugin seems to have another aim ;-) Correct me, if iam wrong ;-)
shanoviachan
phpList newbie
 
Posts: 2
Joined: 9:20pm, Tue 05 Jul, 2011

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby carsini » 7:47am, Wed 31 Aug, 2011

Hi drmike,

I've installed the latest version of your plugin (0.96). I can create new placeholders without problems, but if I try to send a message (as test mail or via the real mail processing) I get this error message:
Database error 1064 while doing query You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'arial narrow", arial; font-size: 1.6em; text-transform: uppercase; line-he' at line 1

Do you have an idea what is the reason for that?

Best regards,
carsini

System information
phplist-Version: 2.10.14
PHP-Version: 5.3.6
Webserver: Apache/2.2
MySQL-Version: 5.1.49-3~bpo50+1
carsini
phpList newbie
 
Posts: 1
Joined: 7:33am, Wed 31 Aug, 2011

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 7:31pm, Wed 31 Aug, 2011

The thing I notice at first glance is the double quote after the word narrow. It appears that you have some style statement in HTML that is part of the content of whatever test message it is that you are sending and that perhaps there are quotation marks in that style that are confusing the SQL parsing. I suggest you try a test message containing no HTML in either the message or the content of the tags. If that gives no problem, try looking carefully at the HTML in whatever you are sending (and in the tags) to be sure there are no unmatched quotation marks, either double or single. Let us know how it goes. If you cannot find a solution, send me (or post here) the raw HTML of at least the part of the message or tag contents that contains the error reported by MySQL, including a significant portion of the text before and after that error. In the meantime, I will try to take a look at the code to see if there is anything there which could be vulnerable to such a situation.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

Re: [plugin:EnhancedPlaceholders] Add more placeholders

Postby drmike » 9:05pm, Wed 31 Aug, 2011

After further consideration, my thought is that the issue might be more likely to be in the HTML for one of the enhanced placeholders.

And I believe I need to review the code further to be sure database interactions are dealing adequately with the issue of escaping characters before strings are inserted in the database and un-escaping when the strings are retrieved from the database. Since any changes I make as a result will need to be tested, I will not be able to complete this work for a few days, due to other obligations.
drmike
PL Nut
 
Posts: 19
Joined: 8:40pm, Sat 14 Aug, 2010
Location: Chesterfield, MO, USA

PreviousNext

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

Who is online

Users browsing this forum: No registered users and 0 guests

cron