Sephiroth

How to approach this feat in Processwire

Recommended Posts

Seems good, so this newsletter module, if you can explain how it works and all, i can gain some perspective into it. Thanks that won't be bad though because i remember doing all newsletter by hand too 

Hello Sephiroth,

If you do not feel uncomfortable just by installing WordPress, I recommend cloning this one:

Alo EasyMail Newsletter:

http://www.eventualo.net/blog/wp-alo-easymail-newsletter-guide/

A few important points to consider:

- emails should be sent in "small" batches, to avoid being blacklisted quickly

- the possibility to test the newsletter with a small set of test email addresses is a must

Sure, tons of other features are needed, that is why I pointed to this WP plugin, which works well.

Share this post


Link to post
Share on other sites

Seems good, so this newsletter module, if you can explain how it works and all, i can gain some perspective into it. Thanks that won't be bad though because i remember doing all newsletter by hand too 

Well that's the main thing, figuring out a system that integrates well into PW and is simple enough.

See the images below of my current newsletter page in the admin and the final outcome. There's a dedicated Newsletters page in the root page tree, newsletters are listed below them. This is useful because newsletters have their own URLs so "View in browser" is easy to implement.

The subscribers have another page in the root, each subscriber is a page. They can be active or inactive, based on the page status published or not. I use simpe subscription, no confirmation emails. I do not use subscriber lists, this should be also implemented somehow.

I use wireMail() for sending (with MailGun), but queing would be also nice.

It would be nicer to have a new nav item in the admin "Newsletter", and move the newsletters and subscribers there.

Anyway, this is what I've got, maybe these can generate some ideas.

post-3156-0-30446100-1463810781_thumb.pn

post-3156-0-23711800-1463810791_thumb.jp

  • Like 6

Share this post


Link to post
Share on other sites

So today I spent a lot of time looking at Queuing Systems in PHP and it's quite confusing, because I know PHP to be a blocking Language so this is executed as a cron job which sends mail in batches periodically till all mails are sent, Laravel has Queue system, but I don't know how the underlying system works, anyone familiar with this queuing system in PHP, won't mind articles explaining the concept thanks. 

Share this post


Link to post
Share on other sites

Queues are quite simple. Store a message in some kind of database (at best one build for this usage) and some other process does later read the message and execute something based on those messages. Those reading processes are often called workers and either run continuously (deamon) or are started in intervals (cron) or manually, which is always an option :D

  • Like 1

Share this post


Link to post
Share on other sites

This post describes a bit where it comes from: https://processwire.com/talk/topic/12151-wire-queue-basic-implementation-of-simple-queues/#entry112809

@Sephiroth: if you find it useful in general, I can assist in extending / building a sqlite version that suites your needs. (define more finegrained sqlite table fields and fetching batches of a given number recipients at once, for example 100)

  • Like 2

Share this post


Link to post
Share on other sites

Thanks already gotten the idea and will proceed during the weekend, 

@horst I will definitely use your module as it will speed things up thanks, will update this post when i start working on it. 

  • Like 2

Share this post


Link to post
Share on other sites

Sorry this will put on hold, a Wordpress site got hacked, and i have been tasked to switch to Processwire.. 

@tpr will get back to you on this. 

Share this post


Link to post
Share on other sites
Quote

and i have been tasked to switch to Processwire.. 

Isn't that going to be a truck load of work to make the site look the same in processwire ?

Share this post


Link to post
Share on other sites
1 hour ago, pwired said:

Isn't that going to be a truck load of work to make the site look the same in processwire ?

At the end of the day they decided to stick with WordPress already told them i won't manage the WP if that's their decision

  • Like 2

Share this post


Link to post
Share on other sites

Nice solution :)

I just finished to rebuild a WP site to PW. I'm happy with the result, it's fast and feels lightweight. And also has the benefit that the host provider doesn't threat the client to take off the site because it eats 16% of server resources :)

(WPML "side effect")

Share this post


Link to post
Share on other sites
Quote
Quote

(WPML "side effect")

I can confirm that. I just finished a wordpress website for a real estate company. I had to do it in wordpress because they already bought the "real homes" template for wordpress and wanted me to use that. During my configuration of the WPML string translation to set their website up in 3 languages I encountered many forums reporting the amount of many database calls WPML is making. Although WPML is doing it's job to translate a wordpress website I find it more like a database hacking solution instead of really translating the website from the cms-database setup. WPML is just another wordpress plugin that you have to install extra next to the other plugins to make things work in wordpress. Processwire has already multi-language in it's cms core and is low on resources :)  The only advantage I see with wordpress is the availability of a lot of nice templates that saves you a lot of design time. I know others have a different opinion about this but hey lets face it: it is not easy to be both a coder and a designer.

 

  • Like 1

Share this post


Link to post
Share on other sites

It's been a while since i have update this spot, so you know the usual story, Client builds app in WordPress, work is contracted to me, I feel angry and convert to Processwire and Client is pleased, but now I realized StreetView is a necessary requirement for the project which means, I need to create a StreetView Field for Processwire, if this is already in works please let me know if not, this means I might be creating one and writing an article around it, I won't mind articles to detailed information about creating Fields. 

Have a nice day 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By szabesz
      I'm subscribed to Carl Alexander's newsletter, a developer how knows quite a lot about WordPress development. Today's topic is pretty interesting, quote:
      Wow! That's quite an invention  No more comment. Should anybody be interested in the details:
      https://carlalexander.ca/designing-class-simple-wordpress-queries/
    • By deltavik
      Hey guys, 
         I discovered PW this weekend and have been playing with it. Loving it so far. I am a Wordpress developer, and PW seems much more natural and organized in comparison.
      For my test-drive, I am building a site on a simple use case of building a news website.  A writer will write stories and tag them under "categories" and "tags."  If I were to do this in WP, I would use WP's taxonomy to tag stories in tags and categories. 
      To realize this in PW, this is my plan: Create a page for "story" that contains two repeater fields -- one for "tag," and other for "category."  I would like to add description and image to each tag and category. The question is: how can I have fields for tag and category, which themselves are fields?
      OR, is there another, better way? Maybe instead of creating fields for tags and categories, I can create pages for tags and categories? And then somehow  link these two pages as "fields" in the story page?
      What would you advise?
      Ideally, I would like to have a user experience of a typical taxonomy entry for, like this: taxonomy entry on this forum  But I don't think it is possible in PW. 
      thanks
      Vikram
       
       
    • By sudodo
      Note - I've not set this up, I'm not experienced, I'm probably omitting much
      relevant information as a result so this post will be a bit of a work in
      progress. The answer may be on the forum here - If it is I can't tell for lack
      of experience (I've looked).
      I cannot for the life of me get an install to work and I've tried a lot, and
      I've asked others who're also struggling but I'll try posting here before
      another CMS as I've heard it's nice.
      Info about the server : https://gist.github.com/65086fbc7b5dd03abd0f0461b9c0ec8b
      I'm using the `stable` version of Processwire.
      My `htaccess` file is working - you can test here http://rightangle.space/ and
      click on the admin page to see the internal server error.
      Here is the htaccess file https://gist.github.com/3b805b8ab3c7978aca90a6e39773da00
      Here is the /etc/apache2/apache2.conf file https://gist.github.com/2b2f2518ce7df4af4739413bc967cf56
      Here is the /etc/apache2/sites-enabled/000-default.conf file https://gist.github.com/400cc958ff32dfb6df80693fd8531f08
      Here's the output of  tree -fa /var/www/ https://gist.github.com/a3569becd9889b4b05c4f0d0a8a561d7

       
    • By benbyf
      Hello,
      Been trying to import some data from wordpress and the migration tool with MigratorWordpress installed finishes but then there isn't any content added to my install. I've selected home or /News as parent pages to import to with no avail either time. Import select set to everything. The import xml file is in excess of 17mb if that makes a difference?