Results 1 to 3 of 3

Thread: Populate Your Priv_Members Table

  1. #1
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default Populate Your Priv_Members Table

    Note: Please see the latest script in a more recent post.


    For proper operation of membership levels, your priv_members table needs to be populated with your users.

    If you have problems with membership levels in CLEAN, please check your priv_members table and see if each of your users has an entry.

    There are three ways for an entry to be made:

    1) On join.

    2) On edit from admin panel (with the fixed clean code, this now works - it was broken in v4.0 patch 2)

    3) use a script.

    The script is attached...

    This script NEEDS to be edited before running it on your system. Please look at it carefully and understand it's operation before running it.

    Smoge
    Last edited by Smoge; 09-18-2005 at 08:13 AM.
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    While I am in Shanghai - I will re-write this code...

    It needs some checks and improvements to make it more useful.

    Why is this code needed?

    Well - first off, you guys running v4.0 Patch 2 (or before), if you set a user level in the admin panel - the aeDating code was not writing to the priv_members table correctly... this is a bigger problem if you did an upgrade.

    I need to change this code so it does not change the users you have already given higher access to - and keeps this info.

    For example, I know GJGUY needs this code on his site....

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Ok - I re-wrote this code - it is not perfect - but closer to what we need.

    This release warns you of what you are about to do - to make sure you understand what it does.

    It also takes the current membership info for each user (level and number of days) from the Profiles table - and inserts records into priv_members based on this.

    Some Notes:

    I will delete your current data in priv_members so you end up with a clean, correct table.

    It sets your Pdate (purchase date) to the current day. You may need to deal with this if you have paying members.

    Upload it and run it from your aeDating root directory... follow the instructions on the screen.

    http://www.yourdomain.com/populate_priv_members.php

    When you are done - you should delete it from your server, so you don't run it by mistake in the future.

    Smoge
    Attached Files Attached Files
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. events no actions table????????
    By stevie in forum Dolphin General Discussion v6.00 and above
    Replies: 2
    Last Post: 09-09-2008, 08:28 PM
  2. moving profiles table from 2.1 to 4.1
    By Modified in forum Database
    Replies: 2
    Last Post: 07-24-2006, 01:25 AM
  3. Visitor needs priv_members ID set to 0?
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 0
    Last Post: 10-16-2005, 01:11 PM
  4. priv_members table contains data on import
    By Smoge in forum Bugs and Fixes
    Replies: 0
    Last Post: 07-23-2005, 01:31 PM
  5. Profile_edit.php readonly table
    By Cankus in forum General Troubleshooting
    Replies: 0
    Last Post: 07-21-2005, 05:28 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
  •