Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can someone point me where to go with this?

    Hi, I have been working on a new site..
    Its going to kind of be a RPG type game, but right now I am trying to get the site to work..

    So far, I have http://php-login-script.com/ Which it has a profile and everything, but can someone point me where to start, or if there is already a script for like a catalog on the site?

    Like in your profile you'd have a character.
    You could go to the catalog on the site, and buy lets say a hat or a shirt, then you can go into your inventory on the site and there would be under your character it would say

    For example Cowboy Hat | WEAR | REMOVE

    Then when you hit wear it would go on your character.
    If someone could tell me a name of a PHP script to do this, or point me in how to start the script that would be great. I've seen this done on many sites..

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    This sounds too specific for a turn-key script you can download and run. So what you need would be:

    1. Good working knowledge of PHP/HTML based on your own experience coding websites using PHP/HTML

    2. Good working knowledge of a storage tool, preferrably a RDBMS such as MySQL, though it's possible you could use your webserver's file system (I wouldn't recommend it)

    Both requirements above need to be gained by creating and coding web pages over time, starting with simple projects and moving up in complexity and functionality. At some point you will realize you have the knowledge and expertise it requires to code an entire browser game.

  • #3
    Regular Coder
    Join Date
    Nov 2010
    Location
    Oregon
    Posts
    243
    Thanks
    23
    Thanked 10 Times in 10 Posts
    What your looking for requires a fair amount of work to assemble

    1)For starters you must first build a users database

    2)Then build a sign-up form with proper security and escape coding to prevent crossline attacks and intruding data.

    3)build a login page, should have some kind of unlock code script to detour password hackers

    4)build landing page with user groups so each user can maintain their profile and access their necessary data

    5)build the Admin landing page to manage users accounts.

    5)and finally every page must be coded with the session code something like this.

    Code:
    <?php
    // code every page with a session header to keep track of the user
    session_start();
    ob_start();
    if($_SESSION[user]->rights!= "users_rights") {
    	die("You do not have permission to access this page!");
    }
    // build a connection script to your default db_connect
    require_once("connection.php");
    // Check if user has permissions.
          $sql = sprintf("SELECT * FROM users ORDER BY username ASC", $_SESSION[user]->id);
          $query = mysql_query($sql);
    $username = $_SESSION[user]->firstname ;
    // You Are Now Connected - Session Started
    
    ?>
    Last edited by DataTalk; 12-14-2010 at 10:38 PM.


  •  

    Posting Permissions

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