Pierre_02
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] How to keep class define with "menu_class"Hi Tom π !
Thanks for the quick reply, but I have not been clear ;)…
I know how to GET the current class (generated by mmm), I’d like to know how to KEEP my defined class in my header ;)…
In fact, as your plugin replace my class by its own, it makes my mobile menu stay empty (it is, normally, filled by javascript based on its class name)…TIA Tom π !!
Friendly,
Pierre.
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] French translation's customizationHi vvaz,
I’ve just register to Transifex to be able to download the PO file ;).
The .MO wouldn’t have allowed me to customize the translation ;).Friendly,
Pierre.
Hi angelo,
ok, I found an other way to solve my problem ;).
Friendly,
Pierre.
Sorry forget to post :
add_filter( 'em_get_scopes','from_today_to_end_of_month_scope',1,1); function from_today_to_end_of_month_scope($scopes){ $my_scopes = array( 'today-end-of-month' => 'Today to end of month' ); return $scopes + $my_scopes; }Hi angelo.
I need to show futures events for the current month for a given category.
But actually my filter :
add_filter( 'em_events_build_sql_conditions', 'from_today_to_end_of_month_scope_conditions',1,2); function from_today_to_end_of_month_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='today-end-of-month' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y').'-'.date('m').'-'.date('t'); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; }return only futures events. Ignoring the category passed as parameters in my shortcode ([events_list category=3 scope=”today-end-of-month” limit=7 pagination=1]), but I NEED it π !!
How can I do, please ?
TIA.
Friendly,
Pierre.
Hi angelo π !
ok I’ve wrote my own scope now, but how can I add it to the current criterias (the category that I have passed as parameter in my shortcode) ?
Actually, it only apply my own custom scope bypassing the category criteria (and without any doubt my pagination and limit parameters…).
How to merge it ?TIA.
Friendly,
Pierre.
[events_list category=10 limit=7 pagination=1 mont=3 year=2015]{is_future}#_LOCATIONNAME{/is_future} [/events_list]When I use this shortcode in my page EM find some old events for the month march so it think that it have records.
BUT, as there is the conditionnal placeholder {is_future} it return nothing believing it returns something :$…TIA.
Friendly,
Pierre.
Hi angelo,
I’ve already trie to add the scope “future” (its the one who interest me) but it can’t be combinated with the parameters month and year :(…
Who’s not really, logic to me :)…So, now I’m really blocked and I don’t know what to do…
If someone has an idea, I’m really interested to hear it π !!
TIA.
Amicably,
Pierre.
Yeah π !!
Great π !!
Once again, thanks for your support and reactivity !!
Amicably,
Pierre.
No, I’m gone try to be more clear, but as english is not my language :)…
[events_list category=10 limit=7 pagination=1]{is_future}#_LOCATIONNAME{/is_future}[/events_list] is the content of my “textarea” in one of my page in the back-office of WP.
This page is based on a template (supernetworking.php) in my theme folder.
My php template do two thing :
He pass the content to a function then show me the content :add_filter('the_content','replace_content');
the_content();The function is :
function replace_content($content) { global $month; $content = str_replace('[events_list', '[events_list month="'.$month.'" year="'.date("Y").'"', $content); return $content; }By default, during the first load of the page the parameter “month” is the current month.
Now, the concrete case, is that I have an event but it’s a past one. So my criteria with the two parameters added by my function became
[events_list month="3" year="2015" category=10 limit=7 pagination=1]and find this past records.
But as there is a conditionnal added by {is_future} EM have nothing to send me back :)… Nor a record filtred by{is_future}nor a message telling me that there is no event…In fact the tag
{is_future}is not for filtering record it just here for displaying purpose.I hope have been understandable :).
TIA for your help.
Amicably,
PierrE.
Hum… That’s the way you use it ;)…
Could you help me to “bypass” your replacement ?
TIA.
Amicably,
Pierre.
Oups :)…
Talking too quick… By adding the conditionnal tag[events_list category=10 limit=7 pagination=1]{is_future}#_LOCATIONNAME{/is_future}[/events_list], I mystify EM, because it thinks that it returns me some records (the past ones in fact), but as I don’t display them I have nothing to show to my users. I have no message to tell them that there is no event… Nore information that tell me that EM send me an empty “feed”.
So the content of my page is empty and I don’t know how to manage that case…Someone can helps me ?
TIA.
Amicably,
Pierre.
You do it right π !!
Thanks again !!
Amicably,
Pierre.
Ok, it seems that a “known” bug of WP in a multisite environment :)…
For those will be faced with this problem, I had my solution here :
The solution πAnyway thanks to UM members for their reactivity π !!
Amicably,
Pierre.
My configuration is :
One website parent and some childs websites.
One (and only one) of my children website use UM (not the parent website).
Me, as “super-admin” have added an user as admin in this children website (the one where I use UM) and, in spite of numerous tests, this user (for test purpose, me logged with this normal admin account) can’t edit any user.Are you admin or “super-admin” π ?
TIA,
Pierre