Forums Forums Search & Filter Pro RestrictContentPro Integration

Viewing 10 posts - 11 through 20 (of 31 total)
  • Trevor
    #147194

    Thanks for getting back to me. Aside from the documentation issue (there is a sort of good reason why it is not so complete), is this now sorted?

    Anonymous
    #147464

    No. I still don’t fully understand “Using the Post / Result Selector Option” and “Using the Infinite Scroll Container Option” and was after a more comprehensive working example illustrating how it works.

    Could you provide an example that illustrates this?

    I get some strange results with various settings which is why I ask for a definitive example that illustrates both uses cases working.

    In some cases I’m also not seeing the <span>End of Results</span> show at the end of results.
    This is needed as we need to display certain other information at the end of the scrolled data, and I’m not fully understanding the linkages between the settings above and why this doesn’t always show.

    Trevor
    #147493
    This reply has been marked as private.
    Anonymous
    #147745

    Thanks for the offer! Request sent.
    I should clarify that I’m Paul, a Codeable developer https://codeable.io/developers/paul-cohen/ working on the infinite scroll issue https://support.searchandfilter.com/forums/topic/restrictcontentpro-integration/#post-146937 I’m working with Kendra, who is the client who bought the plugin and is doing the design side of the project.

    Trevor
    #147761

    You appear to be 9 hours ahead of me. We need to connect from 4PM onwards your time.

    Anonymous
    #148393

    Thanks for the chat, that cleared up some issues.

    I have another problem though.

    http://wordpress-126708-362887.cloudwaysapps.com/all-tips/ works fine now, I can scroll down and at the end of the free tips it shows a custom message.

    However, if I link to that page from one of the side menu widget links via http://wordpress-126708-362887.cloudwaysapps.com/economy/ or http://wordpress-126708-362887.cloudwaysapps.com/politics-policy/ it links ok, but when I scroll down to the bottom it will not load any more or show the custom message for end of free tips.
    eg: try http://wordpress-126708-362887.cloudwaysapps.com/all-tips/#tip869 from economy page “Jun 6
    The fight over China’s consumer data” 3rd tip from top. It will open all tips page properly but when you scroll to the bottom there is no more infinite scroll behavior.

    I suspect this is due to the results url in the search page specification being set to http://wordpress-126708-362887.cloudwaysapps.com/all-tips/ not http://wordpress-126708-362887.cloudwaysapps.com/all-tips/%5Binsert anchor tag here]

    How can I get it working for this use case?
    I’ve tried various settings combinations but no luck so far.

    Trevor
    #148395

    Are you saying if it has the anchor in the URL it (Infinite Scroll) does not work, but without the anchor it does work?

    Anonymous
    #148403

    yes

    Anonymous
    #148405

    Here’s the current code for all-tips page.
    I didn’t need to use the linked article you gave me, the issue was I had it in the wrong place + message was not showing if the classes were in the settings.

    <?php
    /**
     * Search & Filter Pro 
     *
     * Sample Results Template
     * 
     * @package   Search_Filter
     * @author    Ross Morsali
     * @link      http://www.designsandcode.com/
     * @copyright 2015 Designs & Code
     * 
     * Note: these templates are not full page templates, rather 
     * just an encaspulation of the your results loop which should
     * be inserted in to other pages by using a shortcode - think 
     * of it as a template part
     * 
     * This template is an absolute base example showing you what
     * you can do, for more customisation see the WordPress docs 
     * and using template tags - 
     * 
     * http://codex.wordpress.org/Template_Tags
     *
     */
    
    if ( $query->have_posts() )
    {
    	?>
    	
    	<div class='search-filter-results-list'>
    	<?php
    		while ($query->have_posts())
    		{
    			$query->the_post();
    			
    			if (!rcp_user_can_access( get_current_user_id(), get_the_ID())) {         
    				break;
    			}
    			
                ?>
                <a name="tip<?php the_ID() ?>"></a>
    			<div class='search-filter-result-item'>
                <div class="reportEntryMeta">
    		    		<p><span class="date"><?php the_time('F j'); ?></span></p>
    		    </div>
                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>	
    				<p><br /><?php the_content( ); ?></p>
    					<?php if( have_rows('read_more') ): ?>
    						</br></br><strong>Read More</strong></br>
    						<ul class="links">
    						<?php while( have_rows('read_more') ): the_row(); 
    							// vars
    							$linktitle = get_sub_field('link_title');
    							$linkname = get_sub_field('link_name');
    							$link = get_sub_field('link');
    							?>
    							<li class="link">
    								<strong><?php echo $linktitle ?> </strong><a href="<?php echo $link ?>"><?php echo $linkname ?></a>
    							</li>
    						<?php endwhile; ?>
    						</ul>
    					<?php endif; ?>
    				<?php 
    					if ( has_post_thumbnail() ) {
    						echo '<p>';
    						the_post_thumbnail("small");
    						echo '</p>';
    					}
    				?>
    				<p><?php the_category(); ?></p>
    				<p><?php the_tags(); ?></p>
    				<p><small><?php the_date(); ?></small></p>
    				
    				<hr />
    			</div>
    			
    			<?php
    		}
    
    	?>
    	</div>
    <?php
    }
    else
    {
    	if (!rcp_is_active()) {            ?>
    		<h2 style="text-align: center;">Want more Tip Sheets?</h2>
    		<p style="text-align: center;">Sign up for Trivium Premium and get access to the full Tip Sheet Archive</p>
    		<p style="text-align: center;"><strong><a href="http://wordpress-126708-362887.cloudwaysapps.com/get-access/" target="_blank" rel="noopener">Sign Up</a></strong></p>
    		<p style="text-align: center;">Already have an account? <a href="http://wordpress-126708-362887.cloudwaysapps.com/login" target="_blank" rel="noopener">Log In</a>.</p>
    		&nbsp;
    	<?php 
    	}
    
    	?>
    	<div class='search-filter-results-list' data-search-filter-action='infinite-scroll-end'>
    		<span>End of Results</span>
    	</div>
    	<?php
    }
    ?>
    Trevor
    #148412

    I think I will need to ask the developer. I will see if he is in. I will get back to you.

Viewing 10 posts - 11 through 20 (of 31 total)