yoav.aner
Forum Replies Created
-
Forum: Plugins
In reply to: [Ajaxize] Ajaxize not pulling fresh dataAt 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_refererI 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!
YoavForum: Plugins
In reply to: [Ajaxize] Help with javascript?New javascript. You shouldn’t need to change the plugin js code.
Forum: Plugins
In reply to: [Ajaxize] Help with javascript?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,
YoavForum: Plugins
In reply to: [Ajaxize] Live feed display?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,
YoavForum: Plugins
In reply to: [Ajaxize] Live feed display?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,
YoavForum: Plugins
In reply to: [Ajaxize] Is the plugin still current and secure?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 🙂
Forum: Plugins
In reply to: [Ajaxize] Is the plugin still current and secure?You’re welcome, Guy.
I just pushed an update after testing it with 4.5.2 …
Cheers,
YoavForum: Plugins
In reply to: [Ajaxize] Is the plugin still current and secure?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,
YoavForum: Plugins
In reply to: [Ajaxize] apply ajax to a div class?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,
YoavForum: Plugins
In reply to: [Ajaxize] apply ajax to a div class?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,
YoavForum: Reviews
In reply to: [Ajaxize] Awesome pluginBig thank you from the author 🙂
I’m really glad to hear and very happy to know that it’s useful.
Cheers
YoavForum: Plugins
In reply to: [Ajaxize] BUTTON TO CALL A PHP AJAXIZED FUNCTIONHi 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
Forum: Plugins
In reply to: [Ajaxize] Possible to load php snippets or shortcodes?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_functionwith ajaxize, and also you can define a shortcodesome_shortcodethat simply callssome_function()…Hope this helps
Cheers
YoavForum: Plugins
In reply to: [Ajaxize] Example of load function on clickThe 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.
Forum: Plugins
In reply to: [Ajaxize] Is there a way to get the current post id in functions?Glad you found the solution 🙂