Little Wall O' Buttons
The script has been updated since June 2007, where it had a security scare. It has now been fixed.
Re-download the script and follow the upgrade instructions.
Introduction
A button wall script. Originally made for just me (because I hated updating a button wall), then people started showing an interest and...here it is!
Like all of my scripts, it's nice and easy to install and stuff. :)
Download
Download Little Wall O' Buttons?{14.3KB} [downloaded 296 times].
View a working example?
Features
- http:// Added - should the person submitting the button forget to add "http://", it'll be added automatically.
- Optional target="_blank" - just change to "yes" or "no".
- 'Lite' Spam Protection - there's a "banned words" area in the admin panel, where you can add common spam words and phrases. There's also a hidden field, which only spam bots will fill in, and if this field is filled in, the attempted submission will not go through.
- Secure Button Uploader - the administrator can upload the buttons to their own server. The Uploader checks the image is valid, otherwise it's deleted from the server.
Installing
Step 1
Download the script and unzip the files anywhere on your computer...if you haven't already done so.
Step 2
Open up config.php and edit the variables to fit your information.
Don't know how to create a MySQL database?
Step 3
Upload all files to your server.
Step 4
Load up install.php in your browser, by going to http://yoursite.com/LittleWallOButtons/install.php, changing the domain to whatever your site's URL is. ;)
If the install was successful, you will get a message saying that the tables have been installed. It will tell you to delete install.php - do it; you won't be able to get any further otherwise. Leaving install.php on the server could be a problem, so it's best to remove it.
Step 5
Open index.php and enter your header / footer codes.
If you're going to use this in an installation of Wordpress, include thebuttons.php into the WPP, go to lines 35 and 90 in thebuttons.php and enter the URL to addbutton.php.
Step 6
Add the following code into your stylesheet:
.hideme {
display: none;
}
This will hide the "isthisspam" field from regular users. :)
If you have problems uploading the buttons, CHMOD^ the "buttons" folder to 777.
The Spam Fix
This is for those who installed Little Wall O' Buttons before 22nd April 2007. The spam fix is already added into new installs.
Step 1
Upload spam-fix.php, load the page in your browser. When you get the successful install message, delete the file from your server - you won't need it anymore.
Step 2
Reupload the admin folder, addbutton.php and thebuttons.php. If you made any edits to the pages, you'll need to edit them again.
Step 3
Add the following code into your stylesheet:
.hideme {
display: none;
}
There's an extra field in the submission form, designed to trick the average spam bot into filling it out, if they do fill it out, their submission won't be inserted into the database. ;)
This code will hide the extra field from the majoritory of your visitors; they won't even know it's there.
Step 4
To add a spam word or phrase: in the admin panel, go to the "ban bad words" page and enter any spam phrases you get.
I've already added a list of common words and a couple of common phrases I've gotten.
Updates Log
- Aug/08 - the possible security issue has been fixed; user's choice of button is no longer automatically displayed; the administrator needs to choose a button. Also added the option to upload button to your site.
- May/07 - fixed the spam fix.
- Apr/07 - spam fix released.
- Dec/06 - released.




