Few Questions | Love aMember!

Discussion in 'aMember Pro v.4' started by nphaskins, Dec 7, 2011.

  1. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Loving this little script. I have a few questions though:
    1. I protected a folder, then removed the protection, but is still redirecting me to sign in (as if it were protected). I've cleared cache and cookies. Is this stuck at .htaccess level?
    2. I've created a custom theme, but my custom themes css is being over written:
    http://screencast.com/t/JxujlY8o

    Any help would be greatly appreciated.
    Nick
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It is strange. When you remove a protected folder from aMember, it must also delete .htaccess file from the folder. If it did not happen by some reason, you have to delete .htaccess file from unprotected folder manually.
  3. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Yeah I do not see a .htaccess file at all in the folder in question, but it's still acting as if it's protected.
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    You may do not see .htaccess files in FTP clients, as it is considered as hidden. Try to use webhosting control panel file manager.

    Also, check if parent folders are not protected ! If you protect a folder, protection affects all nested folders automatically.
  5. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Yup yup parent folder isn't protected but let me check something. I was working on my mac and fetch last night but today I'm on my main rig and it's a PC. Have a feeling it's hidden...will look now.
  6. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    ok got it. am I safe to just remove all the rewrite rules to the directory that i protected?

    I'm thinking that my integration with BB Press possibly screwed it up. What do you think? (note: this isn't the entire .htaccess file, only from the finishing comment from what amember inputs into .htacess to the end of file)

    ########### AMEMBER FINISH ####################

    # BEGIN bbPress

    Options -MultiViews

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /recess/

    RewriteRule ^page/([0-9]+)/?$ /recess/index.php?page=$1 [L,QSA]
    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /recess/forum.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^forum/([^/]+)/?$ /recess/forum.php?id=$1 [L,QSA]
    RewriteRule ^forum/?$ /recess/ [R=302,L,QSA]
    RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ /recess/topic.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^topic/([^/]+)/?$ /recess/topic.php?id=$1 [L,QSA]
    RewriteRule ^topic/?$ /recess/ [R=302,L,QSA]
    RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ /recess/tags.php?tag=$1&page=$2 [L,QSA]
    RewriteRule ^tags/([^/]+)/?$ /recess/tags.php?tag=$1 [L,QSA]
    RewriteRule ^tags/?$ /recess/tags.php [L,QSA]
    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /recess/profile.php?id=$1&page=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /recess/profile.php?id=$1&tab=$2 [L,QSA]
    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /recess/profile.php?id=$1&tab=$2&page=$3 [L,QSA]
    RewriteRule ^profile/([^/]+)/?$ /recess/profile.php?id=$1 [L,QSA]
    RewriteRule ^profile/?$ /recess/profile.php [L,QSA]
    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /recess/view.php?view=$1&page=$2 [L,QSA]
    RewriteRule ^view/([^/]+)/?$ /recess/view.php?view=$1 [L,QSA]
    RewriteRule ^rss/?$ /recess/rss.php [L,QSA]
    RewriteRule ^rss/topics/?$ /recess/rss.php?topics=1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/?$ /recess/rss.php?forum=$1 [L,QSA]
    RewriteRule ^rss/forum/([^/]+)/topics/?$ /recess/rss.php?forum=$1&topics=1 [L,QSA]
    RewriteRule ^rss/topic/([^/]+)/?$ /recess/rss.php?topic=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/?$ /recess/rss.php?tag=$1 [L,QSA]
    RewriteRule ^rss/tags/([^/]+)/topics/?$ /recess/rss.php?tag=$1&topics=1 [L,QSA]
    RewriteRule ^rss/profile/([^/]+)/?$ /recess/rss.php?profile=$1 [L,QSA]
    RewriteRule ^rss/view/([^/]+)/?$ /recess/rss.php?view=$1 [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ /recess/index.php [L]
    </IfModule>

    # END bbPress
  7. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    I removed those rules, and it's still redirecting me.
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please send entire .htaccess file to https://www.amember.com/support/ (with refs to this forum thread), or better send FTP info, folder URL, and aMember CP URL + admin login info, so we can solve the problem for you.
  9. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    That's pretty nice of you guys. I appreciate it. I've checked permissions and the .htacesss file is saving. Cleared cache and cookies but redirect is still in place. Will send email support with what you need, including link to this forum.

    Thank you.
    Nick
  10. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    I registered for Help Desk, and am clicking the login button, but it's not sending me anywhere. Can I PM you this information?
  11. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Strange about helpdesk... Sure, please PM me.
  12. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    BOOM! PM sent.

    Yeah man I'm not a noob or anything, I registered, then click "log in" and it's not directing me anywhere.

    Nick
  13. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Question:
    How do I hide menu items from members, but open to general public? For example, I don't need members to see the "Take a Tour" for instance. I've found how to hide from non-uses. Great, but I need the other way around as well. Any ideas?
  14. scottlott

    scottlott Member

    Joined:
    Jun 17, 2010
    Messages:
    50
    Same thing happened to me, you have to sign off then sign back in to get it to work.
  15. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Thanks.

    Any ideas on how to attack the menu query of mine? I need one menu for public, one menu for members. Or, to simply hide a few public items that members do not need to see.
  16. scottlott

    scottlott Member

    Joined:
    Jun 17, 2010
    Messages:
    50
    Yeah, I have no problem doing it with the XenForo integration.
    - With XenForo you can setup different usergroups with access controlled by aMember.
    - Then, I installed this Addon so I could use regular PHP websites with the XenForo navigation system:
    http://xenforo.com/community/threads/kotomi-generic-script-bridge.13698/
    - Using XenForo conditional statements, I can hide particular items in the UI from users depending on their group: http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-182355

    If you want to see it all in action, you can check out the website I have in development:
    http://intuitivetime.com/forum/pages/Home/
    Username: admin
    Password: admin
  17. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Sorry, I must have miss-communicated that. This is all on the same site.

    Public sees nav item 1, 2, 3

    Members see nav items 4,5,6,7.

    So, I need to hide certain nav items from members. Same site.
  18. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    nphaskins,

    What menu/navigation are you referring to? Are you using aMember with a CMS such as WordPress?
  19. scottlott

    scottlott Member

    Joined:
    Jun 17, 2010
    Messages:
    50
    Yes, that's possible. If you'll notice I have 1 tab that hides from non-admins.
    I could just as easily hide 5 tabs from group 1 then another 5 tabs from group 2, my example is just a very limited version of what you'd like to do.
  20. nphaskins

    nphaskins New Member

    Joined:
    Dec 6, 2011
    Messages:
    24
    Thanks for the help on this folks. I'm using aMember with Wordpress.

    Here's a slight visual, where the numbers in bold red would not be visible to members logged in, but visible to the public.

    Navigation view to Members
    1 2 3 4 5 6 7

    Navigation view to Public
    1 2 3

Share This Page