Results 1 to 2 of 2

Thread: Membership level checking

  1. #1
    Prometheus
    Guest

    Default Membership level checking

    We have finally reached the point where we are able to have a total lock down our site.
    Not a member...no BW....LOL....


    But...in order to do so you not only have to go into your membership levels and set say, non members to NOT perform this or that action, you also have to add this bit of code to EVERY page.
    Why....
    Well...
    Here's an example.
    If I config my settings so nonmembers cannot "perform a search".
    This script still lets nonmembers get to the search.php page.
    They hit search and then they are taken to the
    "You need to login before you can use this page".....DUH!!!!
    WHY.....???
    False hope...?..LOL........Irritating is what that is......
    Why not redirect them to the join page or the default
    "You need to login before you can use this page" page from the start.....LOL...????

    Also, and this has been a thorn in my side for some time now, while you are editing
    your php pages enable/change the code so you, the admin, has all the privs of a member and more? Hell your the admin...lol....these guys kill me....still... IQ....anyway...


    Code:
    In ALL your .php files find
    
    if ( !( $logged['admin'] = member_auth( 1, false ) ) )
    	if ( !( $logged['member'] = member_auth( 0, false ) ) )
    		if ( !( $logged['aff'] = member_auth( 2, false )) )
    			$logged['moderator'] = member_auth( 3, false );
    
    After add
    
    
    $logged['member'] = member_auth( 0, true );
    $member['ID'] = (int)$_COOKIE['memberID'];
    
    
    
    
    If you want to truly be GOD on your site edit this code..
    
    if ( !( $logged['admin'] = member_auth( 1, false ) ) )
    	if ( !( $logged['member'] = member_auth( 0, false ) ) )
    		if ( !( $logged['aff'] = member_auth( 2, false )) )
    			$logged['moderator'] = member_auth( 3, false );
    
    
    And give yourself the privs.
    We all learn by doing and trial and error...LOL.....

  2. #2
    bruno79's Avatar
    Join Date
    Jan 2009
    Posts
    16

    Default

    thanks man!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Membership Level Choices...Where are They?
    By Spexmex in forum Payment Processing
    Replies: 3
    Last Post: 03-25-2009, 12:13 PM
  2. Membership level?
    By EHartford in forum FAQ & HOWTO
    Replies: 6
    Last Post: 01-26-2009, 02:30 AM
  3. Membership expiration letter sent to members whose membership level expires.
    By swingers in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 2
    Last Post: 01-28-2008, 01:16 AM
  4. Promotional Membership Level
    By Smoge in forum Bugs Dolphin 6.00
    Replies: 0
    Last Post: 09-07-2007, 09:39 PM
  5. membership level trouble
    By myukdate in forum General Troubleshooting
    Replies: 0
    Last Post: 03-13-2006, 04:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •