Click to See Complete Forum and Search --> : profile


whisnart
01-18-2007, 05:39 PM
i am looking for a profile script like myspace where you can make you profile what you want what it says background all that and a blog,im,and i email thing like a pm :) ;) and the login register script that make the profile page like domain.com/username plz help me

Sheldon
01-18-2007, 07:37 PM
You may find a start on sites like www.hotscripts.com , but you will have to customise it im sure.

NightShift58
01-18-2007, 09:18 PM
What's a profile in its simplest form? It's a set of values that apply to one specific user or a specific group of users, etc.

When we say values, we can think variables and as such, the easiest way to set up profiles would be to create a .php file for each user - or group of users - and store them in a directory (for example: /profiles). In this .php file, you would write the name of the variables that make up the profile and their corresponding values. For example:<?php
// Profile: misfit58.php
$profile = array();
$profile['bgcolor'] = "DarkBlue";
$profile['dob'] = "1999-12-31";
$profile['hobby'] = "soccer";
$profile['...'] = "...";
?>When the user logs in, you can then include this file into the appropriate scripts:<?php
if (file_exists("/profiles/$user.php") {
include "/profiles/$user.php";
} else {
include "/profiles/default_profile.php";
}
?>When you think about it, whenever you see something like include "db_connect.php";, that's basically a profile, too.

You can take this a step further and decide to store the information in a database table, in which case you substitute variable name for table field names and instead of an array, records. These field values will then have to be assigned to variables and the mechanism is the same from this point on.