• Resolved uksentinel

    (@uksentinel)


    I am using the Xootix for my wordpress / BBPress site and its works well.

    What I would like to do is add the Xootix login to the bottom of the BBPRESS replies where the message ‘You must be logged in to reply to this topic.’ appears.

    Any guidance most welcomed

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xootix

    (@xootix)

    You can use this snippet.

    add_action( 'wp_footer', function(){
    	if( is_user_logged_in() ) return;
    	?>
    
    	<style type="text/css">
    		.bbp-no-reply .bbp-template-notice{
    			cursor: pointer;
    		}
    	</style>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$('body').on( 'click', '.bbp-no-reply .bbp-template-notice', function(){
    				$('.xoo-el-login-tgr').trigger('click');
    			} )
    		})
    	</script>
    	<?php
    } );
    Thread Starter uksentinel

    (@uksentinel)

    Thank you and I will try with the above code, WordPress / BBPress uses the Form-Reply.php and Form-Topic.php to handle this area of functionality.

    Should I add the code snippet there to test or just the main Theme Functions.php file ?

    Thanks

    Thread Starter uksentinel

    (@uksentinel)

    I added the code snippet to my main theme’s Functions.php and the link worked perfectly.

    A big thank you for you support and guidance ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Xootix Login To BBPRESS’ is closed to new replies.