YannLes
Forum Replies Created
-
Forum: Plugins
In reply to: [Ally - Web Accessibility & Usability] Does this support Divi?Hello,
Yes it does help. I use also https://github.com/campuspress/divi-accessibility/releases in complement.
Hello,
Actually, it seems your ultimate member plug in isn’t activated as we can see the shortcode in plain text in your pages- This reply was modified 8 years, 3 months ago by YannLes.
Hello Boris,
Yes, i cheked it but, for some reason, it doesn’t suit me. What I really need to know is if there is a simple function or instruction to replace IF_IT_IS_A_UM_RESTRICTED_PAGE in this kind of code :
<php if ( is_user_logged_in() && IF_IT_IS_A_UM_RESTRICTED_PAGE) {//then do something;}) ?>- This reply was modified 8 years, 3 months ago by YannLes.
Probably i’m unclear, sorry. When auser is logged in there is to possibilities
1 – he is on a um restricted page
2 – he is on a public page
I would like to display a different menu when he is on a restricted page. In the public pages, the logged in user will see the same public menu as logged out user.
That’s why i would like to know if there is an existing function to see if the page is restricted.
Sorry, english is not my native langage and it’s somehow difficult for me to be accurate.Boris,
What do you mean by this is not php ?
I’m developing WordPress sites and modifying php templates for many years now and I swear you I never cried ?? In fact, i even know rather well php. do_shortcode() is a wp function.
I don’t understand why it seems so difficult to do a simple test in php to kwow wether a page is um private or not.
If you don’t know how to do it, that’s ok, thanks anyway for trying to help me.- This reply was modified 8 years, 3 months ago by YannLes.
The function is ok but I want it to be dynamic. I want to detect if the page is restricted. If a user is logged in and if he is on a restricted page a special menu will appear. If he is on a public page a different menu should appear.
I try this in my header.php file but it nothing occured
do_shortcode( '[um_loggedin show_lock=yes] This text can only be seen by logged in users [/um_loggedin]' );
Thank you for your answer Boris. I thought to this solution but it doesn’t really suit me because I want to put some code in the header.php file of my site. This is why i’m looking for a php solution like
<?php if ( is_user_logged_in() && IF_IT_IS_A_UM_RESTRICTED_PAGE) { //then do something; }
Sorry, I will try to better express myself .
I just want to know if a page has been restricted with UM.
Here’s an example of code i would like to use<?php if ( is_user_logged_in() && IF_IT_IS_A_UM_RESTRICTED_PAGE) { //then do something; }
Thanks for your help !
- This reply was modified 8 years, 3 months ago by YannLes.