Coder Social home page Coder Social logo

Comments (13)

leonstafford avatar leonstafford commented on May 10, 2024 1

Thanks for looking at this guys. Happy to merge a pull request if you get it working.

I haven't been able to focus on the plugin much of late, but doing some work around GitHub Pages export functionality this week, so will hopefully be able to sort the S3 export issues with version 1.9 at the same time.

Just the fact that people like you are using the plugin and putting in effort to make it do more is a good motivation for me to keep pushing. Thank you!

from wp2static.

leonstafford avatar leonstafford commented on May 10, 2024 1

Hi all,

The ability to export via WP Crontrol plugin via a custom hook was added in a recent release. Please see some instructions in the readme here: https://github.com/leonstafford/wordpress-static-html-plugin

I have some documentation being prepared with screenshots, etc on how to do this, but have a try in the meantime. Hopefully it will solve your needs for scheduled exports.

I'll be expanding CLI export options soon.

Cheers,

Leon

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

This would be fantastic as I too was looking for this as well. Any updates?

from wp2static.

lazmo88 avatar lazmo88 commented on May 10, 2024

@chiriboga apparently no updates unfortunately, have you found any alternative to achieve the same?

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

@lazmo88 I actually did. I was able to write a bit extra code within their plugin that looks for a variable in the URL. So then I created the cron to point to the page with the extra variable in the URL. when the page gets hit, the code sees that the variable is there and I use jQuery to basically do the click event.

from wp2static.

lazmo88 avatar lazmo88 commented on May 10, 2024

@chiriboga that sounds great! Are you planning to do a pull request or share your snippet by any chance? 😋

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

It's dirty but try it out. This will ONLY work on 1.8 since I read that the S3 part is broken in 1.9.
http://localhost/wordpress/wp-admin/tools.php?page=wp-static-html-output-options&cron=yes

notice the &cron=yes

now open up views > options-page.phtml

before line 85 add this:
if(window.location.href.indexOf("cron") > -1) { $('#progress').show(); processArchives(); $('#results').html(''); }

you can try it in the browser when you do it by just adding that cron=yes to the url. now the code just looks for the word "cron" doesn't care if it equals yes or no or rich or laz.

then you can try creating a cron job to run and run it as php.

hope this helped!

from wp2static.

lazmo88 avatar lazmo88 commented on May 10, 2024

Thanks @chiriboga I will give it a shot :) Does WP required some kind of login token? Or does it allow running the scripts if the php is running from CLI?

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

@lazmo88 I am not sure. I had to stop before testing too much of it and moved to something else. But definitely let me know.

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

hey @lazmo88 did it work for you?

from wp2static.

chiriboga avatar chiriboga commented on May 10, 2024

@leonstafford Just created a pull request

from wp2static.

sinak avatar sinak commented on May 10, 2024

Was that PR merged in?

from wp2static.

leonstafford avatar leonstafford commented on May 10, 2024

Hi @sinak,

Sorry for the late response. This PR was unfortunately not usable with the plugin in its current state. I'm working on another solution to CRON/WP-CLI triggering of exports that I'll be testing in the next few days.

Cheers,

Leon

from wp2static.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.