Pierre_02
Forum Replies Created
-
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
I’ve just made an other test and the only possibility for my normal admin to be able to edit an user in the back office, is to promote him as “super-admin” from my parent website…
A thing that I don’t want to do :(…
TIA,
Amicably,
Pierre
Ok, not sure to understand…
You mean that, by default, a user sets as admin in WP (and so in UM) can edit any user. It’s exactly what I thought until I did the test by myself :)…
I can confirm that an admin user in WP can’t edit users in backoffice (at least on my website) :(…No solution ?
TIA.
Amicably,
Pierre.
Great ?? !!
Thanks a lot ?? !!
Amicably,
Pierre
Hi,
yes ?? !
Amicably,
Pierre.
Hi,
yes, I’ve checked this parameter and anyway I haven’t change any parameter for admin account ;).
Amicably,
Pierre
YES ?? !!
Thanks a lot caimin_nwl ?? !!
That’s works very well !!
Great !!
Have a good day !
Amicably,
Pierre.
Hi Angelo,
yes, in theory what I need seemed quite simple :)… But in practice…
The process :
User load the event page for a category. By default on first load I show him futures events (for the selected category) for the current month.
After what, he can, if he wants, choose an other month (from current month to 2 after) and I show him the events corresponding to its criteria.That’s it ?? !
TIA,
Pierre.