Jump to content
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

@LostKobrakai..could Iftrunner be used as a 'worker' in this case?

Share this post


Link to post
Share on other sites

It can, but depending on the use case it might not be a fit. E.g. it's not suited for parallel processing of items.

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

Very interesting thread you have  Mr. Sephiroth 

 I have read all posts and got so many new knowledge about coding

Share this post


Link to post
Share on other sites

Glad to hear JeevanisM, even recently I was thinking of a Github open book about Processwire, but I am somehow a bit of a procrastinator sometimes, I guess I will map out something for that. 

  • Like 1

Share this post


Link to post
Share on other sites

I didn't want to create a topic for this, so I decided to use my existing thread , as mentioned, I am creating some Youtube tutorials around Processwire, I feel a video is much more easier to help people getting started with Processwire. So I did a first video introduction, However I quickly realized my dilemma with self expression skills when talking, so I am working on that but here is the first video and I hope to drop a Video per week or more depending on how fast I can get things out but I am also open to covering other complex topics too around Processwire. Thanks and I hope this helps out a lot of people.

NOTE: LOL Working on how I sound too 😁, bear with me

Love from Nigeria

 

  • Like 7

Share this post


Link to post
Share on other sites

Thanks Mustapha, I really appreciate the support, I am working on more content and also working on making the transitions and effect more jazzing. I'll update this thread as I push more contents 

  • Like 2

Share this post


Link to post
Share on other sites
Quote

NOTE: LOL Working on how I sound too 😁, bear with me

Sound quality is strange 🙂

But your English and articulation is very good, clear and easy to understand! Keep up with the videos!

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, apeisa said:

Sound quality is strange 🙂

But your English and articulation is very good, clear and easy to understand! Keep up with the videos!

Yes, I am using a CandySkull Headset as mic, but I have a Lapel mic, I am looking to get those professional mics and also understand Adobe Premiere audio better, the next video will have a much better sound quality. 

  • Like 1

Share this post


Link to post
Share on other sites

Finally gotten a proper Microphone, will drop some multiple videos this week. 

 

20200720_154912.jpg

  • Like 6

Share this post


Link to post
Share on other sites
4 hours ago, Sephiroth said:

Finally gotten a proper Microphone, will drop some multiple videos this week.

You're da boss! 😄 

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 GradDev
      Hello,
      I have a Processwire website (www.example.com)
      I want to have a wordpress/woocommerce section of the website at (www.example.com/marketplace/)
      Is there any way this can be done?
       
      Apart from this, I am planning to have a universal login system for both the systems. The logins will be verifies inside of PW and an API will be used to transfer login data to wordpress. Now, in this scenario, how the user sessions can be managed and continued? Is cookies a viable/secure option?
    • By greene000
      There is a site https://carnesmechanical.com/ on the WordPress CMS engine on the server, you need to transfer it to Processwire to another server. About 1000 pages. Write how much you are ready to undertake?
    • By skoskie
      Hi. I'm working on building my first processwire site, and I want to make sure I'm getting it right. I'd appreciate any feedback. 
      I have a `vendor.php` template/model that will contain companies.
      I need to give users the ability to rate (1-5) that vendor. So I think I need to build a `vendor_rating.php` model/template  with fields `rating` (int), `user` (ref), `vendor` (ref), and perhaps a textarea for `review`.  Then, in the vendor template I will call and cache the average vendor rating for display. I don't actually want to display the individual ratings anywhere, so I guess I still need to figure out how to do an ajax call from the front end. 
      ###
      Here's the thing. This structure is almost identical to "comments" with only one extra field for the `rating`. So should I just extend that in some way? Or stick to my current path and make a new model/template?
      Thanks!
       
    • By franciccio-ITALIANO
      Hi, in wordpress homepage we can put a list of LAST ARTICLES AND COMMENTS.
      Can I do same thing with processwire?
      If yes, how?
      There is a tutorial?

      Thanks!
    • By pwuser1
      Hi does anybody have experience in converting Wordpress Themes into Processwire Themes?  There must a more efficient way than my cut and paste and check...
×
×
  • Create New...