frafor
Forum Replies Created
-
Forum: Plugins
In reply to: [StageShow] Fatal Error on CheckoutProblem solved, in:
/stageshowplus/include/stageshowlib_simulator_gateway.php on line 221
Change line to:
$this->simSaleStatus = '<br>'.__('EMail Sent to', $this->myDomain).' '.$saleHeader->saleEMail;
And the sim checkout will work.
Another problem I’ve found is that the plugins loads its stuff too early so, sometimes WordPress function wouldn’t work.
An example in: stageshowlib_sales_trolley_dbase_api.php
I’ve changed the function FormatTimestampForDisplay() to use date_i18n() instead of date() (line 241). Everything was working fine, except when I added a ticket: in that case, then the cart returned that function date_i18n didn’t exist.
Forum: Plugins
In reply to: [StageShow] Fatal Error on CheckoutHi, I’m still waiting for an answer. Moreover, I’ve translated the plugin to Italian with Poedit and I’d like to send the traslations files to you (mo / po).
Forum: Plugins
In reply to: [StageShow] Fatal Error on CheckoutHi Malcolm, thanks for the reply.
Moved to 6.2.3, and now I get:
Cannot use object of type stdClass as array in /web/htdocs/[…myfolders…]/wp-content/plugins/stageshowplus/include/stageshowlib_simulator_gateway.php on line 221
Confirmation mail is still sent anyway thou
Forum: Plugins
In reply to: [Yoast SEO] Can’t remove from sitemaps posts in a given categoryHi Ben! No problem at all. Anyway, I’ve found a solution by my own and I’d like to share it, so the thread will be truly resolved, and it may help someone else! ??
Here is the code to remove posts in a given category(ies) from the post sitemap. Put it in your theme’s functions.php.
add_filter('wpseo_sitemap_entry', 'exclude_post_in_categories', 10, 3); function exclude_post_in_categories($url, $type, $post ) { // Add the category's slugs you want to exclude to this array $categories = array('category-slug-1', 'category-slug-2', 'and-so-on'); if(has_category($categories), $post->ID)) { return false; } return $url; }
- This reply was modified 7 years, 9 months ago by frafor.
Forum: Plugins
In reply to: [StageShow] Fatal Error on CheckoutUPDATE 2:
Even if i get the fatal error above, confirmation e-mail are being sent correctly.
I’m using a licensed copy of StageShowPlus
Forum: Plugins
In reply to: [StageShow] Fatal Error on CheckoutIf I move to Paypal as Gateway (instead of Simulator) then I’m redirected to the Paypal page.
However the form asking for my details (the one that appears in Simulator mode) does not appear.
Anyway, I’d like to make some test in Simulator mode, is it possible?
Forum: Plugins
In reply to: [StageShow] Not recognizing TimeZone, Not WorkingOk, I did not set Prices in the Prices page. (Still got the notice thou)
However, I did set a Price Plan for these events. Can someone please explain what’s the difference?
Thanks
- This reply was modified 7 years, 9 months ago by frafor.
So, I’ve found that the problem is my socialToggle() function.
Codepens:
mine doesn’t work -> https://codepen.io/anon/pen/VbKobB
with your anon function, it works -> https://codepen.io/anon/pen/bWwXGJI’m not that practical with jQuery, and maybe that’s the reason i couldn’t figure it out by myself. I would only like to know why my code doesn’t work, while your do. Thank in advance for the answer!
EDIT:
Apparently, all I was forgetting was to declare the ‘article’ and ‘a2a’ vars in my function: I forgot to prepend ‘var’ in front of them.
function socialToggle() { jQuery('.a2a_kit').addClass('hide'); jQuery('.social-toggle').click(function(e){ var article = jQuery(this).closest('.hentry'); var a2a = article.find('.a2a_kit'); a2a.toggleClass('show'); a2a.toggleClass('hide'); }) }
Now it works…
FF
More console.log errors:
More details:
- I’m on an archive page. Each entry has the buttons displayed via PHP ADDTOANY_SHARE_SAVE_KIT()
- WordPress 4.7.4
- jQuery 1.12.4
I’ve made more test and if a single icon falls outside the .hentry container, then it stops working. for example:
.a2a_kit.hide { left: -15% }
I can see the twitter icon and the ‘+’ icon: they work.
The facebook icon falls outside the container div: if i click the social-toggle, then it appears, but it doesn’t share anything..a2a_kit.hide { left: -5% }
I can see all the icons. The Facebook icon is hidden for 1/3. But i can click on it, and it shares correctly. All the icons work.
Apparently, the icons work only when they are visible at first. If you hide them, they stop.
I’ve tried even by animating opacity instead of position, from 0 to 1 and they behave the same way. I’m trying to replicate on codepen.
Same on Chrome & FF. This is the Chrome console.
Moreover I disabled AdBlock Plus, checked script loading order and, for information purpose, the code below is the function that toggles the a2a_kit div
function socialToggle() { jQuery('.a2a_kit').addClass('hide'); jQuery('.social-toggle').click(function(e){ article = jQuery(this).closest('.hentry'); a2a = article.find('.a2a_kit'); a2a.toggleClass('show'); a2a.toggleClass('hide'); }) }
- This reply was modified 7 years, 11 months ago by frafor.
I’ve noticed that sometimes a2a scripts aren’t being loaded as when the sharing link point to mysite.com/social, I can read in console:
TypeError: a2a.getData is not a function[More] page.js:1:8430
TypeError: a2a.cbs is not a function[More] page.js:1:8625
TypeError: a2a.getData is not a function[More] page.js:1:8430
TypeError: a2a.getData is not a functionHow is this possible? I’ve already tried to locally cache a2a in settings > advanced, nothing changed
Thanks for the quick reply
I will investigate further in the problem.
FF
To me it’s quite evident that the plugin requires woocommerce: the logo says it all. And if the logo’s not enough, just read the description.
It turns out that the editor wasn’t working for a change in modsec rules at hosting level: support turned off modsec and then I was able again to use MailPoet 2.7.5 with WP 4.6.x.
It seems like it’s working fine now!
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Cannot save Modules nor NewsletterUPDATE:
Contacted my hosting, they tried to whitelist my account, however it seems they apply very strict modsec rules that cannot be whitelisted.
They ended up in disabling the whole modsec for my shared account. Not the best solution as I have to enforce my firewalls now, but then Mailpoet is working fine.