• Resolved Tamhas

    (@tamhas)


    Hi! Great to see your plugin is resurrected! Perfect timing as I have just installed superwpa. However your popup is still not showing on apple phones, might there be something I am doing wrong, for example are there certain types of plugins that may clash with it? Appreciate any suggestions, thanks!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ziyad Bachalany

    (@tulipwork)

    Hi!
    Let me know when your website will be back, so I will be able to look forward your problem.
    Thanks!

    Same issues here — plugins are installed, configuration is set, but the actions in the page don’t run to load in the CSS/JS. I’ve added error_log statements into every function and the only one that seems to do anything is the adhs_init function and anything defined for the admin area.

    Tracking that a bit more, I started realizing that the functions stopped working as soon as the server would encounter a closing PHP tag in your script — I changed the add2homecustom function to a series of echo commands instead of closing and reopening PHP and suddenly the CSS and JS files were enqueued. Probably something there to work with. Maybe WordPress only reads the main plugin file until it encounters one of those?

    I’m running PHP 7.2 locally on my Mac, and having the same issues running PHP 7.0 on Ubuntu. Both systems using Nginx and PHP-FPM.

    Side note: the code in the plugin is kind of messy. Difficult to follow through. Good for N years ago, so I’m glad to hear you’ve revisited the plugin and are working to improve it.

    Might I recommend some refactoring: use wp_localize_script, don’t wrap everything in an if statement, use consistent indentation, and maybe split the code into a couple separate files (admin and frontend, at least).

    Plugin Author Ziyad Bachalany

    (@tulipwork)

    Hi,

    You are right @rlamb2, I fixed the problem on the add2homecustom function, thanks a lot for your message!
    The plugin is working now for everyone.

    Z.

    Thread Starter Tamhas

    (@tamhas)

    Thanks Ziyad! And sorry I see I missed your last reply to me. Yes update works perfect. I had hacked up a copy of yours using a plugin called Wonder Popup that could differentiate between OS. My copy of yours worked but not as nice looking, and it was popping on on Wechat browser in iOS which was annoying, as Wechat doesn’t have same add to home screen feature. So I am VERY happy to see your fix. THANKS! I still remember when my brother showed me the original plugin many years back…

    Plugin Author Ziyad Bachalany

    (@tulipwork)

    Perfect, glad this helped! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Does it work yet?’ is closed to new replies.