hokopt
Forum Replies Created
-
Hi,
On the post listing page I marked all private post titles (with UM-WP) with a padlock, via functions.php.function add_lock_access ( $new_title ) {
if( !is_user_logged_in() && in_category('newsumwp') /* && !um_user( $data ) */ ) {
$new_title = '<i class="iconlock" style="color:red;"></i> ' . $new_title;
}
return $new_title;
}
add_filter( 'the_title', 'add_lock_access' );
Anyone who is not logged in sees the padlock, a user who logs in to see restricted content (UM-WP) the padlock is not displayed.
I am currently running W3TC with cache in which a user without a login, if they click on a title with a padlock, is redirected to the login, that is, even with pagecache does not display the UM-WP content without login.How can I configure the W3TC to have pagecache for logged in users and ensure that those who are logged in do not see the padlock added to the post titles?
Regards.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] Delete all dataHello Yenmer, wouldn’t it be better if you gave the answer here so the entire community can know the solution?
Thanks
Any news?
Hi Champ Camba!
Happy new year 2021!Have you found a solution?
Hi, @champsupertramp
Thanks!
I have try your customization but not get the redirect work, have you a demo or tes online?Hi,
The message is set global on UM
then if i want a post restrited ative in the post the global messageHi, Champ Camba
My site are set to “Site accessible to Everyone”…. your suggestion not suitable for me.GOAL:
1. Visit a restricted content post
2. On a global message click on the link to login form
3. Make login on page login and redirect..
4. -> Redirect to the before restricted content post (now open not restricted)Hi Champ Camba,
The Avada are TOP SELLER have more 600.000 sells on the ThemeForest and the plugin Ultimate Member won’t work with it ?!
I am missing something where?!
- This reply was modified 5 years, 4 months ago by hokopt.
Hi Champ Camba,
I have customize my Restricted Access Message (Global) with your code, but not worked…
after i click on the link LOGIN HERE and do the login, no redirect to the post before…<script> jQuery(function( $){ var touchmoved; $('.um—profile—nav—item a').on('touchend', function(e) { if(touchmoved != true){ return true; } }).on('touchmove', function(e){ touchmoved = true; return false; }).on('touchstart', function(){ touchmoved = false; return false; }) ; }); </script> <a href="#LINK TO MY LOGIN FORM PAGE CUSTOMIZE FOR A GROUP"><strong>Login Here</strong>.</a>- This reply was modified 5 years, 4 months ago by hokopt.
Hi,
I want to redirect to the last post visit before i click to login
http://www.yoursite.com/login/?redirect_to=?????Hi,
If i add that to functions.php remove the restrict access, and display all content without my message restrict.
I what to display only the title, excerpt, and featured image from my Avada Layout Builder for sections
https://theme-fusion.com/documentation/avada/layouts/understanding-layouts-and-layout-sections/
and my message restrict access global.- This reply was modified 5 years, 4 months ago by hokopt.