Author Topic: Prevent unapproved profiles to see Photos  (Read 76 times)

Hornyflings

  • Veteran Member
  • *****
  • Posts: 201
  • Karma: +3/-0
    • AsiasHeart
Prevent unapproved profiles to see Photos
« on: January 23, 2019, 01:40:14 PM »
I would like to prevent unapproved members to get access to photos.php, that they have no access to this feature until the profile gets approved.

If unapproved members try to open photos.php they should be lead to info.php similar to searches, inbox etc.

How is it possible to do the same for the Photos.php file?

Thanks in advance for helping out.

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 3124
  • Karma: +210/-7
    • Maverick Webworks
Re: Prevent unapproved profiles to see Photos
« Reply #1 on: January 24, 2019, 04:12:43 PM »
STEP 1

- Go into your Admin >> Access Levels.

- Click the "Add New" link near the bottom.

- In the Level Code field enter ... photos_access

- In the Description field enter ... Access Photos Page

- Click the "Save" button

- The "photos_access" will now appear in the list of access levels.

- In the "photos_access" section check the boxes to allow access for FREE and PAID members (Do Not check the box for non-member).

- Click the "Save" button.


STEP 2

- Open your photos.php file.

- Replace the following line:
Code: [Select]
check_login_member('all');
with this:
Code: [Select]
check_login_member('auth');
check_login_member('photos_access');


That should be it!

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

Hornyflings

  • Veteran Member
  • *****
  • Posts: 201
  • Karma: +3/-0
    • AsiasHeart
Re: Prevent unapproved profiles to see Photos
« Reply #2 on: January 25, 2019, 11:27:13 AM »
Thanks for helping out!