Inviting people to Lockerz gets you a nice amount of PTZ, so the more people you invite, the better. But this is a tedious process which requires you to manually send invitations only to the people you know. That’s where this awesome script comes in: it automates the invitation process and allows people who don’t even know you to get invited through your account.

Today I’m going to show you how to setup and install your own Lockerz invite script – pretty similar to the one I have installed here.

Grab the script from the link below to start editing the script. You’ll also need a site to upload the script’s files to, so I’ve listed some free ones below.

Lockerz Invite Script v1 (created by Blake) – Download

Some free webhosts:

000webhost

Byethost

x10Hosting

Editing and Uploading the Script

Extract the contents of the archive to an empty folder.

Let’s begin by editing the index.php. Open it in any text editor (I recommend Notepad++).

At the bottom of the file, you should find this block of code:

<span style="color: red;">
</span>
<h1><span style="color: red;"><strong>
YourSite's Lockerz Inviter
</strong></span></h1>
<span style="color: red;"> </span>
<h3><strong>
Enter the email you'd like to receive the invite in
</strong></h3>
<form id="emailsubmit" action="submit.php" method="post">
<table border="0" cellspacing="0" cellpadding="2" align="center">
<tbody>
<tr>
<td align="center"><input id="email" class="textfield" maxlength="100" name="email" size="35" type="text" /></td>
<td align="right"><input name="Submit" type="submit" value="Submit" /></td>
</tr>
</tbody>
</table>
</form>

Edit the text in black to whatever you want.

Once you’re done editing, save it, and open the config.php. Edit everything in this file except the DB_USER and DB_PASSWORD fields.

define('DB_HOST', 'localhost'); //Hostname (localhost 99% of the time)
define('DB_USER', 'username'); //Database username
define('DB_PASSWORD', 'password'); //Database password
define('DB_DATABASE', 'db_lockerz'); //Database
define('L_LOGIN', 'email@mail.com'); //Lockerz email/username
define('L_PASSWORD', 'password'); //Lockerz password
define('L_MESSAGE', 'Here is your Lockerz invite courtesy of YourSiteHere'); //Invite message
?&gt;

Next, open up your cPanel (or whatever other panel your host uses), and create a new database using the MySQL Database Wizard. After creating the database, enter the username and password into the config.php file, then open your phpMyAdmin.

Once it’s open, click on the Databases tab.

After selecting the database you just created from the list, a page like the one in the image below should appear.

Click on the SQL tab and enter these queries in the box, then click on Go to run them.

CREATE TABLE `counts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`count` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `counts` (`id`, `count`) VALUES (1, 1);
 
CREATE TABLE `emails` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`address` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO `emails` (`id`, `address`) VALUES (1, `testemail37284@gmail.com`);
 
CREATE TABLE `queue` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`address` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
);

Note: The email used in the MySQL query above is for testing purposes only, so you can change it to whatever suits you.

Now that we’re done with this file, save it and open submit.php. Using the Search function in your text editor, find “YourSite”. Modify it to the name you want. Save it and exit.

Finally, open send.php and find this URL:

http://YourSite/lockerz/submit.php

Change it to your site’s URL and save the file.

Last but not least, upload your files to a directory on your host. Change the permissions of the directory to 755 or 777 (not recommended).

There you have it! You should now have a fully-functional Lockerz invite script running on your site. The design may be bland, but that’s up to you to work on.

If any errors come up, or the script doesn’t work properly, please leave a comment so I can check it out.