hmgauna
Forum Replies Created
-
Forum: Plugins
In reply to: Audio Player breaks website w/ PHP 7Hey @jstamberg
I just found the same bug. Luckily, only a small fix in the code made it work again. It is triggered inside an if condition that uses the PHP version. It seems like some functionality that, in the end, wasn’t developed or needed.
Find:
$AudioPlayer = &new AudioPlayer();
and replace by
$AudioPlayer = new AudioPlayer();
Hopefully, Martin (the developer) will fix the source code and upgrade the plugin.
Regards,
HernanForum: Plugins
In reply to: [WP Favorite Posts] N?o entendo isso: {{wp-favorite-posts}}tl;dr : just paste it into your page/post.
Long answer:
Hi Patrique, this is must be used as a “shortcode”. That means that you paste it in the page or post body and that will render your favorites posts there.
In case you are new, a shortcode is usually between brackets, like: [short-code]. It is always a way to include special content from within posts/pages content edit box.
In this case in particular, I don’t know why the developer choosed to use the double curly brackets “{{ }}”.
Great, I am closing the topic. I will publish this fix anyways soon.
Unluckily, this seems to be a limitation on the ML policies.
They are not showing your ‘free’ listing in the results (neither of them, which of course includes the API I am using), because it’s free. I have tried to hack it somehow, but did not find anything useful yet. The fact that they don’t even show that in their own page is discouraging.
However, the API will return information from a given product if you use the specific ID. Not very useful, but a solution for those cases could be add a feature to specify those missing IDs. Maybe an optional parameter to the shortcode like [include_free=ID]. Not as good as the original solution, though.
What do you think?
Take a look, your other products are probably on hold (not active). If you take a look here, you will see that there is only one product listed for your user:
https://listado.mercadolibre.com.ar/_CustId_33392158
Best regards!
Would you post here the website URL and / or your ML username?
Hi!
Please try deleting or commenting this line of code (line 68):
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
I will publish some fixes in the future, anyways. Let me know if it works.
Regards,
HernánForum: Plugins
In reply to: [Navayan Subscribe] [Plugin: Navayan Subscribe] Sending Two EmailsThis was really silly. I had these problems:
- I found that the plugin was not working on Publish with Custom Post Types, but was working on Saving them.
- The save option always triggered duplicates.
Being clear that the issue was the save_post hook, I replaced it by publish_post… And that made the work. Which is in fact strange, but maybe someone come with the explanation on why it was triggered twice in that case.
If this is a stable solution, the whole
if ( isset($_POST['publish']) ){} elseif ( isset($_POST['save']) ){}
does not make any sense. I think that @amol Nirmala Waman might be able to explain why he put that in the very first place.Besides that, I wrote a bit of code to make the plugin work with custom post types. The problem here was that custom post types have their own publish action, in the format publish_customposttype. So for me this is doing the work, right now:
/*************************************************** * NOTIFICATION CHECKBOX * *************************************************/ if ( $_POST['post_type'] != 'post' ) { $type_publish = 'publish_'.$_POST['post_type']; } else { $type_publish = 'publish_post'; } if ( has_action($type_publish) || has_action('save_post') ){ add_action( $type_publish, 'nys_UpdateBox', 10, 1 ); }
Using WordPres 3.5
I hope it helps, and if Amol needs to point out something about this, please let us everyone know.
Thanks for the support.