Forum Replies Created

Viewing 15 replies - 16 through 30 (of 129 total)
  • Plugin Author yoav.aner

    (@yoavaner)

    At a very quick glance, it seems like ajaxize returns -1, which is a fairly common problem in some circumstances. The FAQ talks about this

    I’m getting -1 instead of the content some times. Is there anything I can do?
    You can try de-selecting the Ajax Referer Check option. For security reasons, please check that your ajaxize function doesn’t have any side-effects. It is recommended to keep this option On. Only use if you understand the risks. For more information, please see http://codex.wordpress.org/Function_Reference/check_ajax_referer

    I don’t want to sound rude, Ben, but I think you already posted 3 times and I’ve answered all of your questions as fast as I could. I’m afraid I won’t be able to provide this level of support going forward. I would recommend seeking someone with more experience with wordpress / development to help you further if there are any other problems.

    Cheers and all the best with your website!
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    New javascript. You shouldn’t need to change the plugin js code.

    Plugin Author yoav.aner

    (@yoavaner)

    Hi arhyarion,

    I successfully installed Ajaxize, pasted a function and got a div – and it works. Woohoo!

    Happy to hear!

    1. I’d like it to refresh every 30 seconds.

    Take a look at the FAQ https://wordpress.org/plugins/ajaxize/faq/

    2. The function outputs price per gram. I need to output price per Troy ounce. So the value that is being output needs to be multiplied by 31.10.

    Unfortunately this goes beyond the basic functionality of Ajaxize or the level of support I am able to offer.

    Good luck using Ajaxize.

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi Ben,

    This plugin / documentation assumes some basic understanding of wordpress functions. It doesn’t have a step-by-step guide for complete beginners, and unfortunately I cannot offer this level of support.

    Nevertheless, I’m sure even a relatively inexperienced wordpress developer can figure out how to use Ajaxize, and whether or not it solves the problem for you. I would recommend finding a freelance developer, who I’m sure can help you resolve this one way or another.

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi Ben,

    If the plugin itself does the caching, then ajaxize might not help. Otherwise, if you can call this shortcode from a function, you can ajaxize this function (as long as the function accepts no parameters), and then place the “ajaxized” div on the page, so it is fetched dynamically.

    Hope this helps!

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    If you’d like to help, please test it and vote for its compatibility.

    Once you use it, and if you find it useful, would be great if you could also rate it 🙂

    Plugin Author yoav.aner

    (@yoavaner)

    You’re welcome, Guy.

    I just pushed an update after testing it with 4.5.2 …

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi gecko_guy,

    Thanks for reaching out. It’s a very valid concern indeed. The last thing you’d want is some stale software with a bug waiting to be exploited. At the same time, there’s no guarantee that a newly developed, or frequently updated plugin is free of bugs or security holes.

    I believe that this plugin is simple and small enough not to warrant too many updates. It does one thing, and I hope it does it well. For better or worse, it’s not something that you’ll add a ton of features to and get a lively community around. I did build it with security in mind, as you can hopefully see from the documentation and the code. However, I cannot possibly claim that it’s free of bugs or security holes. Just that I haven’t come across any that warranted an update.

    I would encourage you and anybody else to look into the code and let me know if there’s any problem worth fixing. It’s open-source and I would love not to be the only one who actively maintains it.

    You’re right that I should update and indicate its compatibility with latest versions of wordpress. I’m running it on the latest version just fine. It’s mostly out of lazyness (and slightly to blame svn and the wordpress plugin ecosystem which feels a bit clunky to work with for me).

    Hope this answers your questions and concern. If there’s anything else, let me know.

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    A quick example (but I’m sorry, won’t be able to help further unfortunately):

    inside your functions.php file, add a simple function:

    function my_function() {
      echo '<div>something</div>';
    }

    You can add this function to your templates, but if you’re using caching – it will be cached. If you want to fetch it via ajax, so whatever the function outputs will always be “fresh”, you can use Ajaxize.

    Go to the settings->Ajaxize and enter the function name (in this example, it’s “my_function” without the quotes). Click on “Generate Div”, and then use this div inside your templates, instead of calling the function directly.

    That’s it – from now on, the page will load, and ajaxize will take care of calling the function and generating your div dynamically.

    Hope this helps!

    Cheers,
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi andrew55,

    The way ajaxize is meant to work is to turn a function to a div. So as long as you can create a simple function that outputs something on the screen (outputs a div, runs a shortcode, anything…) – then you can use ajaxize and convert this function into a dynamic div that is going to be refreshed via ajax.

    Please look at the documentation and examples for more information.

    Cheers,
    Yoav

    Forum: Reviews
    In reply to: [Ajaxize] Awesome plugin
    Plugin Author yoav.aner

    (@yoavaner)

    Big thank you from the author 🙂

    I’m really glad to hear and very happy to know that it’s useful.

    Cheers
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi Enri,

    Unfortunately Ajaxize wasn’t designed for your use case. It was created to be able to dynamically load code using a static html tag, primarily when pages are cached.

    If you want to trigger a server function via a button click, then you’d need to handle it with javascript on the frontend anyway, and once you do that, there’s very little value in using Ajaxize in the first place.

    Unfortunately I can’t really help much. I suggest looking for other plugins or resources on how to use javascript to load dynamic content from wordpress.

    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    Hi Mr-B,

    The only benefit of creating a shortcode is to allow you to re-use PHP functions inside your own HTML. Since you’re essentially defining a function, which the shortcode runs – why not just create this function inside your functions.php and call it from ajaxize (or from the shortcode). So for example, in functions.php define

    function some_function() {
     // place code here
    }

    Then use some_function with ajaxize, and also you can define a shortcode some_shortcode that simply calls some_function()

    Hope this helps
    Cheers
    Yoav

    Plugin Author yoav.aner

    (@yoavaner)

    The example you linked to seems like a working example. You say that you’re not good with coding, yet you’re trying to do something quite advanced, that typically requires some coding experience.

    If you find someone with some coding experience, I’m sure they can help you implement something, and most likely you won’t even need Ajaxize.

    Ajaxize is meant to be used by people with limited coding experience, but only for the more common use-case of converting a PHP function into an ajax call. Anything beyond that, I don’t think Ajaxize helps so much with.

    Plugin Author yoav.aner

    (@yoavaner)

    Glad you found the solution 🙂

Viewing 15 replies - 16 through 30 (of 129 total)