Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-12-12 20:24:51

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

mem plugins with 4.5.x

I’m curious which of the plugins that I created are still being used and whether any of them are broken in txp 4.5.x or replaced by new core functionality.

Note: this isn’t a promise to make the plugins work with 4.5. Time permitting, I’ll try to fix some, but at the very least I’m hoping to document what does and does not work with 4.5.

Completely Broken/Redundant:

  • ?

Sorta Broken:

  • mem_postmaster – Cannot send emails from Write tab

Works:

  • mem_form
  • mem_simple_form

Last edited by Manfre (2012-12-13 19:11:43)

Offline

#2 2012-12-12 22:12:10

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: mem plugins with 4.5.x

Still using mem_form and mem_self_register, although the ign_pw_protect compatibility isn’t a big deal since cbe_frontauth came onto the scene. I also know of installations that use the mem_moderation* suite and mem_postmaster.

btw, not sure if it solves the “Can’t email” thing in postmaster, but the following diff worked for me to at least prevent “The form could not be submitted” javascript errors from appearing every time you save an article. ymmv:

28a30,31
> 		global $app_mode;
>
39c42,45
< 		$line = <<<EOL
---
> 		if ($app_mode == 'async') {
> 			$line = '';
> 		} else {
> 			$line = <<<EOL
65,70d70
<
< 		// for 4.0.4
<
< 		if (is_callable('dom_attach')) {
< 			echo dom_attach('article-col-2', $line, $line, 'div');
< 			return;
73,77c73,85
< 		// for 4.0.3 and earlier
<
< 		$line = addcslashes($line, "\r\n\"\'");
<
< echo $js = <<<eof
---
> 		if ($line) {
> 			// for 4.0.4
>
> 			if (is_callable('dom_attach')) {
> 				echo dom_attach('article-col-2', $line, $line, 'div');
> 				return;
> 			}
>
> 			// for 4.0.3 and earlier
>
> 			$line = addcslashes($line, "\r\n\"\'");
>
> 			echo $js = <<<eof
92a101
> 		}

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2012-12-12 22:31:43

springworks
Member
Registered: 2005-01-06
Posts: 172
Website

Re: mem plugins with 4.5.x

I’m using mem_form (0.5.4) and mem_simple_form (0.3) along with ign_password_protect (0.5b9) on one of my sites under TxP 4.5.4 and it all seems to work fine.

Offline

#4 2012-12-13 11:33:36

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: mem plugins with 4.5.x

I’m not using any of them, but if you’re updating mem_form / mem_postmaster, have a look at the new send_email function (part of the future TXP 4.6 release), which would make it easier for people to replace the standard mail() function with something else, like class.PHPmailer, without having to fix this in each plugin (and TXP itself) separately.

Offline

#5 2012-12-13 12:30:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: mem plugins with 4.5.x

Hi Michael, good to see you back in the forum. I’m using postmaster and any update for compatibility with the latest release(s) of txp would be greatly appreciated.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2012-12-13 21:26:13

Manfre
Plugin Author
From: North Carolina
Registered: 2004-05-22
Posts: 588
Website

Re: mem plugins with 4.5.x

@ruud, Thanks for the heads up.

@colak, everytime I look at the postmaster code, I cringe. The original budget for mem_postmaster allowed for small improvements without any major changes to clean things up. The message generation and mass emailing code could use some serious work. I’ll apply Stef’s patch and see if that does more than silence the error. If not, I might be able to quickly retool another (unreleased) plugin I wrote to manage the actual sending of emails.

Offline

#7 2012-12-14 09:53:56

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: mem plugins with 4.5.x

Hi Michael.

I use mem_form, mem_simple_form and mem_public_article in txp 4.5.4 and seem it work fine!

Offline

#8 2012-12-14 17:04:34

moon blake
Member
From: near Hannover, Germany
Registered: 2009-07-16
Posts: 76

Re: mem plugins with 4.5.x

Are there any experiences if mem_self_register is working in the 4.5 branch?

Offline

#9 2012-12-19 03:03:38

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: mem plugins with 4.5.x

mem_templates

I removed references to ‘is_default’ when importing/exporting sections on lines and it seems to work fine

  1. "fields" => "name, page, css, is_default, in_rss, on_frontpage, searchable, title",
  2. "sql" => "`name` = '%s', `page` = '%s', `is_default` = %d, `in_rss` = %d, `on_frontpage` = %d, `searchable` = %d, `title` = '%s'",

removed from line #423 to #427

if ($type == 'section' && $first_section)
{
safe_update($config['table'], "`is_default` = 0", '1=1');
$first_section = true;
}
  1. $set = sprintf($config['sql'], $data['name'], $data['page'], $data['is_default'], $data['in_rss'], $data['on_frontpage'], $data['searchable'], $data['title']);

Offline

#10 2013-01-21 07:48:48

whaleen
Member
From: Portland
Registered: 2006-05-11
Posts: 373
Website

Re: mem plugins with 4.5.x

These work for me: mem_form, mem_simple_form, mem_public_article, and mem_self_register.


txtstrap (Textpattern + Twitter Bootstrap + etc…)

Offline

#11 2013-03-01 12:05:46

dF
Member
Registered: 2006-12-22
Posts: 22

Re: mem plugins with 4.5.x

Help.
We recently updated our TXP 4.0.8 to 4.5.4 and it works fabulously (thnx a lot) and today we tried to send our 2013 March newsletter (6x a year service to 270+ subscribers) but the mem_postmaster plug-in button does not work anymore. I can’t find a solution here to get Michael Manfre mem_postmaster plug-in working as fabulously again?
Can anybody help us what to do?
Should we go back to our TXP 4.0.8 version incl. back-upped database and all?
Or is there another plug-in like the Ben Bruce Postmaster we can use instead without re-arranging our newsletter and subscriber list?

Thanks a lot in advance.

Offline

#12 2013-03-01 12:13:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: mem plugins with 4.5.x

Hi, I have the same problem and with over 2000 subscribers I just can’t update to the latest txp version. Ben’s plugin would not work either. It is the one manfre picked up to develop.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB