How to hide url to protected area in member.php

Discussion in 'Setting-up protection' started by wdevn, Nov 16, 2007.

  1. wdevn

    wdevn New Member

    Joined:
    Oct 12, 2007
    Messages:
    17
    Does anyone know how the URL or location to the protected area be hidden in the member area (member.php)? Do don't want members to access files via the url displayed in the member area (member.php) under "Your Subscritions." We would like members to access the files in the protected areas via a plug-in.

    Would I just have to remove some code in the member.php or memeber.inc.php files?

    Thanks
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can remove that url from aMember CP -> Manage Products -> Edit product -> Product URL
  3. jazzedge

    jazzedge Member

    Joined:
    Aug 11, 2007
    Messages:
    54
    I believe you want to remove this code from member.html (in the templates dir)

    Code:
        {if $p.url gt "" }
            <a href="{$p.url}">{$p.title}</a>
        {else}
            <b>{$p.title}</b>
        {/if}

    ALWAYS make a backup first.
  4. wdevn

    wdevn New Member

    Joined:
    Oct 12, 2007
    Messages:
    17

    Thank is just want I did! It now only worked well it also helped speed up loading. Thanks Jazz!
  5. jazzedge

    jazzedge Member

    Joined:
    Aug 11, 2007
    Messages:
    54
    no prob. glad it worked for you

Share This Page