Home Forums AFP548 Community Projects PHP Gift Registry

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #359845
    ElgertS
    Participant

    PROJECT DESCRIPTION

    This is a fun project to host your own Gift Registry. The registry allows users to register but requires the administrator to approve new users. Your users will see a list of other users and can request the ability to view the gift list of a particular user. If that users approves their request, they can see the list and either reserve or purchase gifts for that individual.

    Gift request entries have a star rating, descriptions, categories, comments, and a url to simplify shopping.

    Upcoming events are listed along with how many days left for shopping.

    A convenient page is generated showing you the products you are buying or plan to buy along with their pricing and a total to be spent.

    #359850
    ElgertS
    Participant

    Step 1: Download PHP Gift Registry

    Download the project:

    PHP Gift Registry 1.5.2

    Decompress and move to directory you wish to host the site from.

    #359851
    ElgertS
    Participant

    Step 2: Create a database for PHP Gift Registry

    Using PHPMyAdmin, create a new database named “phpgiftreg” or whatever name you choose for the installation you are preparing.

    #359852
    ElgertS
    Participant

    Step 3: Edit SQL code

    Open the “create-phpgiftregdb.sql” file in an editor and scroll to the very bottom. Configure your default user information in the following line changing the values to be valid entries:

    INSERT INTO users(username,password,fullname,email,approved,admin) VALUES (‘username’,’password’,’fullname’,’[email protected]’,1,1);

    #359853
    ElgertS
    Participant

    Step 4: Insert SQL into database

    Using PHPMyAdmin, select the phpgiftreg database and open the SQL tab. Select your edited “create-phpgiftregdb.sql” file to populate the database.

    #359854
    ElgertS
    Participant

    Step 5: Edit db.php

    Using an editor, open the db.php file and correctly set the following with your server name, MySQL user name, and MySQL password:

    mysql_connect(“host”,”username”,”password”)
    or die(“Could not connect: ” . mysql_error());

    #359855
    ElgertS
    Participant

    Step 6: Log into PHP Gift Registry

    At this point you can log into the website using the administrator account you configured earlier. You can also invite users to register on the site. Once they register, the system will ask you to approve them before they can log in and begin adding their gift requests.

    Each user must make an individual request to other users if they wish to view each other’s gift request lists. Those users must either accept or deny this request.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Comments are closed