Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1248381
    lisacole1
    Participant

    Hi
    I’m using Paid Memberships Pro on this site http://members.breastfeedingfestival.com

    When someone is logged out or not registered they are seeing the default X theme not found message
    http://members.breastfeedingfestival.com/category/members-news/

    They should be seeing a login or register option.

    I think I have the settings right in PM pro so is there something in X that is overriding it?

    Many thanks!

    #1248434
    Paul R
    Moderator

    Hi,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1248528
    lisacole1
    Participant
    This reply has been marked as private.
    #1248589
    Darshana
    Moderator

    Hi there,

    It’s an empty category page that you’re using. In that case follow this instructions below.

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Copy the file _content-none.php which is under “x/framework/views/global/” into your child theme’s respective location (“x-child/framework/views/global/_content-none.php”).

    Then Edit the file using a text editor and replace with the following code.

    
    <?php
    
    // =============================================================================
    // VIEWS/GLOBAL/_CONTENT-NONE.PHP
    // -----------------------------------------------------------------------------
    // Output when no posts or pages are available.
    // =============================================================================
    
    if ( (is_category( 'members-news' )) and (!is_user_logged_in()) ) {
    ?>
    
    <article id="post-0" class="post-0 post type-post status-publish hentry">
      <div class="entry-wrap">
        <header class="entry-header">
          <h1 class="entry-title"><?php _e( 'Your Login Page Title', '__x__' ); ?></h1>
        </header>
        <div class="entry-content">
          <p><?php _e( "Your Login Page Content Here", '__x__' ); ?></p>
        </div>
      </div>
    </article> <!-- end #post-0 -->
    
    <?php
    } else {
    ?>
    <article id="post-0" class="post-0 post type-post status-publish hentry">
      <div class="entry-wrap">
        <header class="entry-header">
          <h1 class="entry-title"><?php _e( 'Nothing to Show Right Now', '__x__' ); ?></h1>
        </header>
        <div class="entry-content">
          <p><?php _e( "It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.", '__x__' ); ?></p>
        </div>
      </div>
    </article> <!-- end #post-0 -->
    <?php
    }
    
    

    Then change the content accordingly.

    Hope that helps.

    #1248621
    lisacole1
    Participant

    Thanks but that didn’t work – I still get

    “Nothing to Show Right Now

    It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.”

    instead of a login/register

    #1248730
    Lely
    Moderator

    Hi There,

    Please clear your browser cache. See attached screenshot of what I am seeing. You may edit that content on the code provided here:#1248589

    Hope this helps.

    #1248792
    lisacole1
    Participant

    Hi, that works only on the blog – not on the pages, they show the X error message

    #1249563
    Lely
    Moderator

    Hello There,

    From the code suggested on the previous reply, please check this line:
    if ( (is_category( 'members-news' )) and (!is_user_logged_in()) ) {
    Update to this:
    if ( (is_category()) and (!is_user_logged_in()) ) {

    Hope this helps

    #1249695
    lisacole1
    Participant

    thank you, now I get a thing that says ‘ your login page here’

    so it is sort of working, only I don’t have a login page.

    I’ve done this on other x sites and it’s just automatically shown a login option, so I’m not sure why it is behaving differently on this one.

    If you look at this page
    http://members.breastfeedingfestival.com/archive/

    that is what I want it to do globally when a user is not logged in or registered.

    #1249801
    Christian
    Moderator

    You might have set the redirect URL in your membership plugin incorrectly. Please contact the plugin developer to get their feedback on this issue.

    Thanks.

    #1249847
    lisacole1
    Participant

    ok will do, thank you – I’ll take off the code you gave me because it looks like a plugin issue, not an x issue. thank you for your time helping

    #1249897
    Lely
    Moderator

    You’re welcome!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1248381 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>