WPFront
  • Home
  • Plugins
    • Notification Bar Plugin
      • Plugin Ideas
      • Plugin Settings
      • Plugin FAQ
    • Scroll Top Plugin
      • Plugin Settings
      • Plugin FAQ
    • User Role Editor Plugin
      • Plugin Documentation
      • Plugin Settings
      • Plugin FAQ
    • Paddle Gateway Plugin
  • Go Pro
  • Support
    • Documentation
    • FAQ
  • Affiliates
  • Contact
  • Login
  • Cart
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • August 24, 2015 at 2:22 am in reply to: If logged in redirect to Login Redirect url? #14985
    Bratt
    Participant

    Works like a charm 🙂

    August 20, 2015 at 11:53 pm in reply to: If logged in redirect to Login Redirect url? #14887
    Bratt
    Participant

    Hi!

    Sorry, i had totally missed your answer =)

    Tried it this morning and it works great as it seams. It gives error if the user’s role has no redirect role.
    ERR_TOO_MANY_REDIRECTS
    Like admin account but that is something that is acceptable.

    Your the hero of the year!! Wow, thanks for the exceptionally grate support.

    August 13, 2015 at 3:08 am in reply to: If logged in redirect to Login Redirect url? #14338
    Bratt
    Participant

    Much appreciated ! =)

    August 12, 2015 at 1:36 pm in reply to: If logged in redirect to Login Redirect url? #14309
    Bratt
    Participant

    It’s a shared server.

    August 11, 2015 at 11:20 pm in reply to: If logged in redirect to Login Redirect url? #14250
    Bratt
    Participant

    Do you have any tips for where i can find the setting except contact my hosting company?.

    August 11, 2015 at 3:08 am in reply to: If logged in redirect to Login Redirect url? #14191
    Bratt
    Participant

    I diden’t get it to work, does it work for you ?

    August 11, 2015 at 12:25 am in reply to: If logged in redirect to Login Redirect url? #14188
    Bratt
    Participant

    I deactivated Wordfence, should be the only plugin that should have some with the cache to do. I will try it as soon as i can 🙂

    So glad you are helping me with this!

    August 10, 2015 at 10:37 am in reply to: If logged in redirect to Login Redirect url? #14153
    Bratt
    Participant
    This reply has been marked as private.
    August 9, 2015 at 11:46 pm in reply to: If logged in redirect to Login Redirect url? #14131
    Bratt
    Participant
    This reply has been marked as private.
    August 9, 2015 at 2:20 pm in reply to: If logged in redirect to Login Redirect url? #14103
    Bratt
    Participant

    Sorry, i didn’t think i got this. 🙁

    I tried to add this instead but didn’t work at all.

    
    <?php
    add_action( 'plugins_loaded', 'my_plugin_override' );
    
    function my_plugin_override() {
    if(is_user_logged_in())
    wp_redirect(apply_filters(‘login_redirect’, ‘/’));
    else
    wp_redirect(‘/wp-login.php’);
    }
    ?>
    
    August 9, 2015 at 1:34 am in reply to: If logged in redirect to Login Redirect url? #14087
    Bratt
    Participant
    <?php if(is_user_logged_in())
    wp_redirect(apply_filters(‘login_redirect’, ‘/’));
    else
    wp_redirect(‘/wp-login.php’); ?>
    
    <?php
                                
    get_header();  ?>
    	<div id="primary" class="row-fluid">
    		<div id="content" role="main" class="span8 offset2">
    
    			<?php if ( have_posts() ) : ?>
    				<?php while ( have_posts() ) : the_post(); ?>
                    
    					<article class="post">
    						  
                             <h1 class="title"><img class="img-responsive aligncenter title" alt="DSV" src="http://xxxxxxxx.xxx/xxx_b.png"><?php the_title();  ?></h1>
    						                          
    						<div class="the-content">
                                	
    							<?php the_content(); 
    							
    							?>
    							<?php wp_link_pages(); ?>
                            </div><!-- the-content -->
    					</article>
    
    				<?php endwhile; ?>
    
    			<?php else : ?>
    				
    				<article class="post error">
    					<h1 class="404">Här var det tomt.</h1>
    				</article>
    
    			<?php endif;  ?>
    
    		</div><!-- #content .site-content -->
    	</div><!-- #primary .content-area -->
    <?php get_footer();  ?>
    August 7, 2015 at 5:07 pm in reply to: If logged in redirect to Login Redirect url? #14048
    Bratt
    Participant

    It didn’t work 100%, it works as long as your not logged in, but if logged in it will not redirect to “login redirect” url. =(

    Any spontaneous ides ?, really appreciate the help =)

    August 7, 2015 at 3:28 am in reply to: If logged in redirect to Login Redirect url? #14008
    Bratt
    Participant

    Wow great, absolutly! 🙂

  • Author
    Posts
Viewing 13 posts - 1 through 13 (of 13 total)
Log In
Lost Password

Search Topics

Documentation

FAQ
Roles List Add Role Edit Role Delete Role Restore Role Add or Remove Capability Assign/Migrate Users Posts/Pages Extended Permissions Custom Post Type Permissions Navigation Menu Permissions Widget Permissions Admin Menu Editor Media/Attachment File Permissions User Level Permissions Content Restriction Shortcodes Login Redirect Export Roles Import Roles Bulk Edit Settings Multisite Roles List Multisite Add New Role Multisite Edit Role Multisite Delete Role Multisite Restore Role Multisite Sync Roles Multisite Settings WordPress Capabilities Actions and Filters Installation Instructions