JeanThoumelin
Forum Replies Created
-
@capuderg : it seems the bug is fixed with the new release of WP Mail SMTP. Thanks ! ??
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missing@krstarica: ok, we are talking about Classic Editor.
Anyway, as I said, I’m pretty sure that last week (before the last plugin update) your workaround was also working with Guttenberg editor.
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missing@aljono, weird…
I have the exact same lines (the @krstarica workaround in fact), it does work for me with the classic editor. I just checked.
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missingActually @aljono: the @krstarica workaround still works fine the classic editor.
It doesn’t work with Gutenberg editor.Maybe you confused the two editors in your last post?
- This reply was modified 4 years, 6 months ago by JeanThoumelin.
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missingI tried that. I’m pretty sure it worked last week. And now it doesn’t work anymore.
- This reply was modified 4 years, 6 months ago by JeanThoumelin.
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missingAlso, it works fine with the classic editor. I will use it for now because in really need this feature.
But to have the category filter also displayed when adding a media from a post with the Gutenberg editor is necessary.
Forum: Plugins
In reply to: [WP Media Category Management] MCM filter drop-down box missingThe issue came back. Even after applying the changes both on ‘wp-content/plugins/wp-media-category-management/css/admin.css’ and ‘wp-content/plugins/wp-media-category-management/include/class-wp-mcm-plugin.php’ files.
Yet, the fix was working last week.
—
An interesting point is that with or without any fix:
– filter on categories is offered when setting the post featured image from the media library
– filter on categories is not offered when inserting a media from the media libraryWell, I figured out the issue comes from a “custom-calendars.js” script (written by my predecessor) that overwrites click events handling.
The registration of click event on days was made too soon : before actually updating the month, so on the “old” month days.
Hi @jquigam,
I have the exact same problem @andxres and @tkc49 have. While trying to send the email test I have:
Fatal error: Uncaught exception ‘Google_Auth_Exception’ with message ‘Could not json decode the token’ in /home/***/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Auth/OAuth2.php:186
Stack trace:
#0 /home/***/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Client.php(218): Google_Auth_OAuth2->setAccessToken(Array)
#1 /home/***/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(120): Google_Client->setAccessToken(Array)
#2 /home/***/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Auth.php(37): WPMailSMTP\Providers\Gmail\Auth->get_client()
#3 /home/***/wp-content/plugins/wp-mail-smtp/src/Providers/Gmail/Mailer.php(79): WPMailSMTP\Providers\Gmail\Auth->__construct()
#4 /home/***/wp-content/plugins/wp-mail-smtp/src/MailCatcher.php(122): WPMailSMTP\Providers\Gmail\Mailer->send()
#5 /home/***/wp-includes/ in /home/***/wp-content/plugins/google-calendar-events/vendor/google/apiclient/src/Google/Auth/OAuth2.php on line 186I have both “WP Mail SMTP” and “Simple Calendar” plugins installed and activated. If I deactivate “Simple Calendar”, the mail is send successfully.
There is clearly a conflict between those two plugins. I need “Simple Calendar”, and I would prefer not to change the mailer option (for maintenance, I prefer to have all the Google API’s we need centralized in a single Google account : the account of our association).
What can I do?
What if I rename “setAccessToken” function for one of the two plugins? It might work? But it would be annoying for plugin updates…
Thank your for your help,
Jean
- This reply was modified 5 years, 3 months ago by JeanThoumelin.
Hi,
The problem is solved. I just rewrote the exact same shortcode and saved the page and now it works…
Forum: Fixing WordPress
In reply to: Gallery shortcode : unique IDThank you Matt.
I’ve seen many gallery plugins, and there are probably some that do the job. The thing is the WordPress gallery feature makes what I need. I don’t really need more and I prefer to reduce the number of plugins I use.
I don’t need more…except that ID stuff. :/
I just want to know if there is a solution to my problem, without any extra plugin. If not, I will may use one of the gallery plugins.
Yes! ?? I really don’t know why I haven’t tried that, it was there in front of me since the begining.
The strange thing is that I don’t need to enable it to have the public version work good. I will enable it for both version anyway to have the behaviors as close as possible.Thank you!
I figured out was it the problem : there is no problem.
I was looking at a widget calendar that is displayed on the right of the website in the same time as the event list page.
This calendar displayed an event for the 27th of March but the event list was not : it was not normal.
The thing is the event list was looking at events of the calendar XXX, and the widget calendar is displaying events of both calendars XXX and YYY… And of course, the 27th of March event was one of the YYY calendar events.So no problem: topic resolved. ??
Ok. I think I understand how it works ?? This page :https://wpdocs.philderksen.com/google-calendar-events/shortcode/ gives short examples.
[google-calendar-events id=”XXX” display=”list” interval=”events” interval_count=”1″] should do it! I just have to add styles now. Thank you!
EDIT: One problem remains, if there is an event today, it’s not picked. ??
Example:
* Today is the 03/27, it is 3pm is there is an event “event 0” at 8pm.
* Yersterday was the 03/26, there was an event “event -1” at 8pm.
* Tomorrow will be the 03/28, there will be an even “event 1” at 8pm.With:
[google-calendar-events id=”XXX” display=”list” interval=”events” interval_count=”1″]
-> “event 1” is displayed, even if “event 0” is in the future (it’s 3pm and it will happen at 8pm)With:
[google-calendar-events id=”XXX” display=”list” interval=”events” interval_count=”1″ offset_interval_count=”1″ offset_direction=”back”]
-> “event -1” is displayed. I thought “event 0” would be displayed if the “bug” was “logical”… But here it seems to behave correctly.The problem only exists for an event happening today at an ulterior hour. It’s annoying because people usually want information about the last minute event to come. :/
Just in case, I also tried:
[google-calendar-events id=”XXX” display=”list” interval=”events” interval_count=”1″ offset_interval_count=”0″ offset_direction=”back”]
and
[google-calendar-events id=”XXX” display=”list” interval=”events” interval_count=”1″ offset_interval_count=”0″ offset_direction=”forward”]
but it still doesn’t work.Interesting, but I am not sure that would do the trick.
Here is what I want on my page:the calendar :
[google-calendar-events id=”XXX”]the next event data :
<span style=”text-align:centerr;width:100%”>Next event:</span>
<div id=”next-event”>
<span id=”next-event-title”>Title :</span>
<span id=”next-event-title-value”></span>
<span id=”next-event-start-date”>Start date :</span>
<span id=”next-event-date-value”></span>
…
</div>I need to get what is the next event for my calendar and fill its data (in italic). Through a javascript script for instance.
I am not sure to have fully understood what you think about: is it to load every event of the calendar inside a hidden div, using the event builder codes? In order to then looking for the next event (a loop) to extract the data and load them in the #next-event div?
Something like that:
<div hidden=”true”>
//For every event
<div class=”event-data” id=[event-id]>
<div>[event-title]</div>
<div>[start-date]</div>
…
//end for
</div>And then (sorry if I make Javascript errors):
var today = getToday();
var events = $(“.event-data”);for(i = 0; i < events.length; i++) {
var currentDay = events[i].children()[1]; //start date
if(isInFuture(today, currrentDay) {
loadData(events[i]);
break;
}
}function getToday() {
var today = “”;
// get today in the correct format, thanks to a native javascript function or directly from the calendar and then “gce-today” class
return today;
}function isInFuture(today, day) {
var isInFuture = false;
//compare today and day
return isInFuture;
}function loadData(event){
$(“#next-event-title-value”).text(event.children()[0].text());
$(“#next-event-start-date-value”).text(event.children()[1].text());
…
}