Premade Script: goPLUG!
You're probably wondering what the heck is goPLUG! anyways? Well, it's my version of a plug board. Still clueless? Below is an example of how goPLUG! works:
Here is the list of its features:
- goPLUG! Lets your visitors post their 88x31 buttons with a link to their site. Only accepts JPG and GIF files. You can also set a limit for the file size of the buttons for faster loading. Default is 10KB.
- Admin panel. Delete links and buttons and add/delete banned users.
- Anti-spam. Will disallow double plugging and plugging for the people whose IP are banned.
- Auto-prune. Automatically deletes older goPLUG! entries to save space on your database.
Aren't you excited to be getting these? Let's proceed...
Requirements
You must have basic knowledge of how HTML, forms, iFrames and CSS work. Your server must also support PHP and you should have at least 1 mySQL database.
Terms Of Use
If you are going to use goPLUG!, you must never remove the part where it says "goPLUG! by MikoReznor" and it must remain readable. If you want it off, you're required to send me a $10 Amazon Gift Certificate. Email it to this address: mikoreznor@gmail.com.
You may not copy the source of the files in this program for use in another. Also, you may not redistribute goPLUG! or any of its files. If you want to share this to people, direct them to Blinding-Light.COM.
This has been tried and tested and has been found working, however, I am not responsible if goPLUG! causes any damages or security breaches to your server. Use this at your own risk.
Installation Instructions
Download goPLUG! and unzip it in a directory of your choice.
Open config.php and change the following variables (there are comments there to make it easy to locate the variables that need changing):
- $user - MySQL username.
- $password - MySQL password.
- $database - MySQL database.
- $plug_limit - Number of buttons you want to be displayed. Default is 6.
- $button_size - File size limit of buttons (in bytes). Default is 10KB.
- $Admin_Username - goPLUG! Admin panel username.
- $Admin_Password - goPLUG! Admin panel password.
- $error_empty - Error message when the visitor didn't fill in the fields or if the button isn't 88x31 or if the button is more than the maximum required file size. This error will also be displayed to bots.
- $error_ban - Error message when banned visitor is trying to post.
- $error_double - Error message when visitor is double plugging.
To change the look and feel of your goPLUG!, open style.css and edit to your liking. I'm assuming you're familiar with CSS so I don't have to go through that in detail.
After that, open main.html. Comments are also placed there for you to locate which values you can edit. You may copy and paste the code stated there to whatever part of your web site you want to put it in.
In order to avoid any complications, it is advised that you do not edit any other files other than what I've mentioned.
Once you've changed everything according to your preferences, upload the files (except uninstall.php) to your server. Make sure that the files are in their proper directories. Then, go to install.php and read through the introduction and Terms Of Use (discussed earlier), click the agreement button to install. When the installation is finished, make sure you delete install.php for security purposes.
Uninstall goPLUG!
Why would you want to anyway? Oh, well. If you insist...
Upload uninstall.php to the same directory as the rest of the files included in the ZIP. Open it and click the "Yes. I want to remove goPLUG!" button. Once it tells you that the uninstallation is complete, delete all the goPLUG! files and folders from your server and you're done. Bye-bye, goPLUG!
goPLUG! History
March 17, 2006. Initial release.
Support
Use the contact form available on this site.
If you have any questions or if you want to discuss this tutorial, you may post at Blinding Light MB.