Arnold Lesikar | 1 Jul 23:11 2015
Picon

[phpList-developers] The last section of "How to Write a Plugin"

Hi all,

I’ve completed the section entitled “How to make your pages look like phpList.” This is the last
section that needed to be written of the web page “How to Write a Plugin.”

Please check that everything looks right. Even though I have proofed it, typos are still more than possible.

At this point, in response to Michiel’s initial request, I have put down everything that I know about the
subject. I hope that this long page will help to ease the learning curve of prospective new plugin authors
if there are any out there.

Michiel provided the initial outline and some of the text. Duncan Cameron wrote some sections, as well.

Arnold

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Michiel Dethmers | 1 Jul 15:45 2015

Re: [phpList-developers] [phplist-plugin-rssfeed] add cronjob setting (#4)



On 01/07/15 12:20, Duncan Cameron wrote:

Is the new cron job processing explained anywhere?


No, not yet. I'm still finishing it. https://github.com/phpList/phplist3/blob/master/public_html/lists/admin/cron.php

The idea is that you can set up a single cron process, calling this page, which then handles everything that needs doing in phpList. The system sets up one cron and then you can forget about that.

That will make it easier for plugins to create processes that need calling regularly. I'd like to pull in the processqueue and processbounces at a later stage, but for now that causes awkward conflicts.

Announcing the new feature, along with the documentation url (which I also wasn't aware of), could be done through the dev mailing list.


Sure. The documentationUrl is just a quick link to a place to read more about the plugin. For now, I'm pointing it to the resources wiki.


Reply to this email directly or view it on GitHub.


-- Michiel Dethmers michiel <at> phplist.com http://www.phplist.com Open Source newsletter manager
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Dan Waterloo | 28 Jun 09:25 2015
Picon

[phpList-developers] from: Dan Waterloo


Hiya phplist

http://www.localmarketingmogul.com/borrow.php?led=rv8b46dsaxbsp3

dan.waterloo <at> gmail.com

Sent from my iPhone

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Arnold Lesikar | 26 Jun 16:03 2015
Picon

[phpList-developers] Preprocessing in a plugin constructor

OK. I have put a warning about this in “How to write a plugin.” It’s at the end of the text beneath the
‘Example’ heading.

Arnold

On Jun 26, 2015, at 2:35 AM, Duncan Cameron <phplist-dev <at> dcameron.me.uk> wrote:
> 
> 
> Regarding the constructor question the constructor should not contain any processing that has an
external effect, such as changing the contents of a database table, or modifying any phplist global
variables. But on reflection such processing is going to be quite unlikely.
> 
> An example, although you shouldn't put this in the documentation, is the cosign plugin
> https://github.com/bradallenfisher/phplist-plugin-cosign/blob/master/plugins/CosignPlugin.php
> I wrote part of that and put processing in the constructor which modified some phplist session variables
to allow automatic login. Only when testing did I realise that the processing needed to be in the activate
method as I was automatically logged-in even when the plugin was disabled.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Michiel Dethmers | 26 Jun 09:13 2015

Re: [phpList-developers] Writing Plugins


On 26/06/15 02:07, Arnold Lesikar wrote:
> OK. I got it. All the magic is in $("a.ajaxable").click(function() in phplistapp.js.
>
> I’d never thought of doing dynamic HTML that way, just by loading a page fragment into a DOM element.
>
> I’m not sure that it’s really Ajax. I see no XML nor JSON, but it’s cool !!!! And it has the advantage of
simplicity of use. You don’t have do put a bunch of javascript in your page. You just create the action
page, and put the link into the ajaxable class.

Sure, it's not doing any clever logic in the JS and the crunching is
still on the server side. I try to make things JS independent. So, for
example, these links still work if you have JS switched off, they will
reload the same page with the "action" in the parameter, which then
causes it to include it.
>
> Thanks, Michiel. I wish that I had had this available for the submitByMail plugin.

Great. I'm glad this is now clearer. Sorry I hadn't documented this very
well. If you have some time, it would be great to write about your
findings.

--

-- 

Michiel Dethmers
michiel <at> phplist.com
http://www.phplist.com
Open Source newsletter manager

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Michiel Dethmers | 25 Jun 22:37 2015

Re: [phpList-developers] Writing Plugins


Yes, very much so. I haven't come across the need yet, but I would do that as soon as I was writing some plugin where that was useful.

In fact, I've been wanting plugins to be able to add to the reconcile page for ages, and that would be perfect for Ajaxable calls, similar to the button I put there.

If anyone has the time to sort that out, that would be great as a PR. Otherwise, I'll do it when I find the need for it.

M

On 25/06/15 21:19, Arnold Lesikar wrote:
Actually, I wonder if it is worth modifying pageAction.php to also work with plugins. Might it not be simpler for prospective plugin authors to simply do Ajax with the jQuery functions? After all the jQuery stuff is quite straightforward.

Arnold

On Jun 25, 2015, at 3:13 PM, Arnold Lesikar <alesikar <at> mac.com> wrote:

Sorry about the repeated question. Our emails apparently crossed.

I’m looking at configure.php as an example. I see how jquery adds a click handler to “ajaxable” links. But what happens afterwards seems very different from the usual jQuery ajax call. I’m still working at understanding what’s going on. But I’m sure I’ll be able to figure it out.

Anyway, thanks for the info.

Arnold

On Jun 25, 2015, at 2:45 PM, Michiel Dethmers <michiel <at> phplist.com> wrote:


Well, what I wrote in my previous mail.

I haven't managed to implement it in too many places yet, but

http://demo.phplist.org/lists/admin/?page=configure (click any edit link)
http://demo.phplist.org/lists/admin/?page=reconcileusers (click the
button at the bottom "subscribers who have an invalid email address").
http://demo.phplist.org/lists/admin/?page=updatetranslation

and there are several other places where things are being ajaxed.

It all works as I wrote before. Make a link, give it a class "ajaxable"
and it'll be thrown through the "pageaction" script.




On 25/06/15 20:34, Arnold Lesikar wrote:
Michiel, you say the core has an Ajax method. Where can I find that?

Arnold

--

Michiel Dethmers
michiel <at> phplist.com
http://www.phplist.com
Open Source newsletter manager




-- Michiel Dethmers michiel <at> phplist.com http://www.phplist.com Open Source newsletter manager
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Arnold Lesikar | 25 Jun 20:44 2015
Picon

[phpList-developers] Writing Plugins

Hi all,

I have made some changes in the Plugin Basics page at https://resources.phplist.com/develop/plugins. First I have changed the page title to the self-explanatory “How to Write a phpList Plugin.”

Second I have added the following new sections;
1. Using PHP program execution functions (The short answer here is: DON’T!)
2. Linking inside phpList
3. Building an Ajax server page

You might take a look to see if everything looks OK.

Arnold


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers
Michiel Dethmers | 25 Jun 18:12 2015

Re: [phpList-developers] date placeholder plugin


On 25/06/15 16:57, Christian Bauer wrote:
> Hallo Michiel,
> I like the idea of the date plugin.
> But I have a question, I looked in the code, I saw that the date will
> be create in the moment of sending.
> But what will happend if you use the "view browser" plugin, then will
> be create the date again, but not the date of sending of the message.
> Is it right?
> It will be nice, that the date of sending would be used, however its
> can work.

Ah, yes, that's a good point. I will see if I can work that one out.

Thanks for the suggestion!

--

-- 

Michiel Dethmers
michiel <at> phplist.com
http://www.phplist.com
Open Source newsletter manager

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Michiel Dethmers | 25 Jun 17:30 2015

[phpList-developers] date placeholder plugin


I've made a new plugin: date placeholders

https://resources.phplist.com/plugin/dateplaceholder
Comments and suggestions welcome.

--

-- 

Michiel Dethmers
michiel <at> phplist.com
http://www.phplist.com
Open Source newsletter manager

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Duncan Cameron | 24 Jun 15:43 2015
Picon

[phpList-developers] Remote queue processing

I am looking at using remote queue processing on phplist hosted. The 
documentation at 
https://resources.phplist.com/system/remote_processing?s[]=secret says
"When run from a webpage, phpList, by default, will only run the queue 
processing for one minute. It will try to send as many mails as possible 
in that time. Then you will need to run it again. "

and
"when you place a campaign in the queue, or requeue an existing one, it 
will activate the processing from our servers. We will run the queue 
very often and make sure your campaigns are sent. "

This seems to suggest that the batch settings (batch size, batch period 
and throttle) are ignored when using this approach. Is that the case?

Further, there is a reference that this is available in phplist 3.1. But 
release 3.0.12 seems to have it included. Again, is that correct?

thanks
Duncan

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
Arnold Lesikar | 13 Jun 19:31 2015
Picon

[phpList-developers] submitByMailPlugin v1.0b2 released.

This version is much better tested. The necessary PEAR files are now distributed with the plugin following a suggestion of Duncan Cameron. This makes setting up the plugin much, much easier. Thanks, Duncan.

The plugin will also generate shell scripts for a mailbox pipe and cron jobs.

Information on this latest version is at https://resources.phplist.com/plugins/submitbymail.

Arnold
------------------------------------------------------------------------------
_______________________________________________
phpList-developers mailing list
phpList-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/phplist-developers

Gmane