To start using this script you only have to include some files and call the proper function.
To get started i will split the procedure in several steps.
Step 1.
At the start of your page open the required php brackets
<?php ?>
and add inside
//we need to define a variable to prevent users going to direct files define("access", true); //include the required files include_once 'config.php';//db connection and session start include_once 'classes/misc.class.php';//functions needed by mostly all classes include_once 'classes/interface.class.php';//user interface class //Class that contains the html $ui = new UserInterface();
Step 2.
now we also need to include the javascript and css files.
inside your <head></head> tags
add the following lines:
<link rel="stylesheet" type="text/css" href="style.css" /> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> <script type="text/javascript" src="client.js"></script> <script type="text/javascript" src="jquery.submitajax.js"></script> <script type="text/javascript" src="jquery.dopopup.js"></script>
Step 3.
Now about the navigation menu.
To do that we have to open again the php brackets inside our <body></body> tags now
<?php //this gets the navigation menu and shows it on the page $ui->getUserInterface(); ?>
Step 4.
Finally, you have to import the SQL files into your database.
The files can be found inside the sql folder.
You will have to edit some lines of code to make it work to your needs.
Firstly,
open misc.class.php and go to line 11.
There you will find this php code:
$this->sender_email = "my@email.com";
what you have to do is change my@email.com to yours email.
What does this email does?
It is needed so that your users when they recieve an email about activating their account or resetting their password or even resenting an activation link know from who they get the email.
Secondly,
open config.php and go to line 3
there you will find the following php code:
mysql_connect('localhost', 'root', '') or die(mysql_error());
where you will have to change localhost to your database hostname, root to your database username and space to your database password.
also go to line 5
and change
mysql_select_db('your_db') or die(mysql_error());
your_db to your database name.
You also have to change your websites url which will be used when users recover their password
To do that, open recover_password.class.php file and go to line 60
where you will find:$reciever_message .= "Please go to http://domain.com/reset.php?email=$this->email&hash=$this->hash to reset your password";Change domain.com to your domain name.
If you want to approve your users that register, please go to misc.class.php at line 13 and change
$this->approve_accounts = false;to
$this->approve_accounts = true;So you can first approve your users before they can log in. By default its set to false, so they dont need your permission to activate their account and log in.
If you have already purchased the script, go to updates folder and run update.php one time.
This updates the users table to allow your users to add their picture into their profile.
If you just purchased the script then you dont have to run the update script.
Finally you are ready to use this script.
This script uses 1 CSS file and 3 Javascript files.
Inside the CSS you can edit everything you would like to tweak about the script.
Now i have created 2 jquery plugins.
One for showing the popup window and sliding through the pages and
Another one for submitting the ajax requests to the server.
The final Javascript file uses the functions of the other 2 to work and do all the magic.
Also you will need the jQuery library loaded inside your file you call the script.
Thanks for purchasing my item and dont hesitate to post a comment for support or questions about this item in the items page.
Steve.