WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    Get WPFTS Pro today with 25% discount!

    Recognize active members in Restrict Content Pro when searching

    Scheduled Pinned Locked Moved Recipes and Known Solutions
    1 Posts 1 Posters 1 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V Offline
      VAGenSoc
      last edited by

      We recently implemented a licensed version of WPFTS, and it's working great.
      I did find a code snippet to change the results per page from the default 5, to 10 per page, and that works.
      (Using the Code Snippets plugin to add this.)

      Here's the issue I'm hoping someone can help with. I've searched the forums, and can't find an answer that quite matches.

      We use a membership plugin, Restrict Content Pro, to limit certain content to active members.
      When I do a search, get excerpts, then click on the link in the excerpt, I get a 'forbidden' error, even if I'm logged in. Even as an admin.
      I assume this is because the pdf in question is behind the RCP member firewall.

      What I'd like to do is get a bit of code I can implement using the Code Snippets plugin that would recognize the logged in active member, and allow clicking on the link in the excerpt to open the pdf in question.
      I found some related code, but it is basically designed to block access, and I'm trying to do the opposite.

      If it helps, I pulled this from RCP developer docs:

      rcp_membership_get_status

      Parameters:

      $status (string) – The member’s current status.

      $membership_id (int) – ID of the membership being checked.

      $membership (RCP_Membership) – Membership object.

      The membership status we want is 'active'.

      Thanks for any help you can provide.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Suggested Topics

      • EpsilonAdminE

        [Solved] Search PDF by content in Real3D FlipBook Plugin

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions search pdf real3d flipbook pdfviewer
        1
        0 Votes
        1 Posts
        1k Views
        No one has replied
      • EpsilonAdminE

        [Solved] Indexing and Search files by content in BuddyDrive

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions buddydrive file search
        1
        0 Votes
        1 Posts
        804 Views
        No one has replied
      • EpsilonAdminE

        [Solved] No excerpts shown in search results in Storefront theme

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions storefront theme excerpt fix
        1
        0 Votes
        1 Posts
        879 Views
        No one has replied
      • EpsilonAdminE

        How to search coupons by description in WP Coupons and Deals plugin

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions wpcd coupons deals
        1
        0 Votes
        1 Posts
        745 Views
        No one has replied
      • EpsilonAdminE

        How to search a post by the attached PDF file

        Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions acf attachment meta pdf
        1
        0 Votes
        1 Posts
        933 Views
        No one has replied

      Additional Resources

      • My Account
      • Buy WPFTS Pro
      • Community Forum
      • Affiliate Program
      • Privacy Policy
      • Terms & Conditions
      • Contact Us
      • Coupon Partner

      Be the first to read the news!

      We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

      Join Us Now!

      We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

      We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

      ewm-logo-450

      The forum powered by NodeBB | Contributors