Main Content

Updates
To Do List
You
Health and Beauty
Reads
Jenni
Quizzes
Tutorials
The Domain
Dollmakers
Link Star-Girl.org
Question?
Plug Your Site
Index/Blog

Extra

Change The Skin
Jenni Fanlisting
Star-Girl.org Fanlisting
Webdesign Question?
Report An Error
MT Blog Archives
Nov-Apr 04 Archives
Feb-Nov 03 Archives

Sites and Projects

Shining Top Sites
Creme De La Femme
Starshine Boards
Starstruck Zine

Starshine.la Login

Username

Password



Linkage




Etc.

refreshes today
Plugboard


Starlet originally wrote this script, so make sure you give full credit to her :) You will need to be able run php on your server, and you also need to be using FTP.
For an example on what the final version will look like on your site, click here.

1. Download this file and unzip.
2. If you’re using WS_FTP, upload the files to your site, then right-click plug.php and ‘edit’ the file; change the settings inside it to whatever you like. If you’re using a different kind of FTP, you will probably need to open the file and make the adjustments before you upload it.
3. Upload plug.php if you haven’t done so already, and plug.db.php. You will need to CHMOD plug.db.php to 666. If you don’t know how to CHMOD, see one of my tutorials on it.
4. If your site is written in php, to include the plugboard on a page, insert the following code where you want it to appear:



5. If your site is written in HTML, you will want to have your plugboard in an i-frame on one of your pages. Create a page called plugboard.html, and insert this code into it:



You will need to change the URL to the actual path of your plugboard, for example mine is http://star-girl.org/plug/index.php. Then save and view plugboard.html.

FAQ

I just viewed my plugboard, and some random buttons came up, how do I fix that?
They are just ‘test’ buttons, once your visitors post their buttons they will move off the board.

How do I have more than one column of buttons?
Open plug.php, and remove from it the code highlighted in red below:

echo "<a href=http://$url target=_new title=$url><img src=$sitename border=0 width=88 height=33></a><br>\n";

How do I stop people from submitting the form without filling in their details?
The easiest way to do it is open plug.php, and where it says, <input value='Button' type='text' name='url' size='25' style='font-family: $font; color: #$fontcolor; font-size: 7pt; background-color: #eeeeee; font-weight: none; border: 1px solid #$bordercolor'>, remove the part which says ‘Button’ so it looks like <input value='' type='text' etc. Don’t forget to type just before it, ‘Your button URL here’ or something similar, so your visitors know what to put into the box.

I have had lots of people submitting broken images, how do I fix this?
Open plug.db.php, and delete the submissions that don’t work. Although it means there will be lots of broken buttons at the bottom of your plugboard, the next people to post their button will knock those off. It’s much quicker than waiting for the broken buttons to go off the board.

How do I stop a certain site from plugging itself?
Open plug.php. Find (Ctrl + F):

$maxchars = "300"; //Maximum number of characters a person is allowed to use for their button url

After, it add:

$blocked = Array('http://site-you-want-blocked.com','http://www.site-you-want-blocked.com'); // These URLS are not allowed

Find:

if ($url == "" || $url == "http://" || $sitename == "sitename" || $sitename == ""){die("<font face=$font><center>Error: one of the fields you submitted is invalid, please hit your back button and try again</center>");}

After it add:

if(in_array($url, $blocked)) {die("<font face=$font><center>Domain not allowed :P</center>");}

Back | Forward

Advertised

Your Site Here?






All content and design is © Jennifer Brown 2005, unless otherwise stated. Please click *here* for more information.