Warning: include(/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php) [function.include]: failed to open stream: No such file or directory in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 1

Warning: include() [function.include]: Failed opening '/home/.lurky/jenni/star-girl.org/skins/cookiecheck.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 1

Warning: include() [function.include]: Filename cannot be empty in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 2

Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 2
Plugboard


Original credit goes to Starlet.

I decided to make a more simplistic version of the original tutorial because it took me a while to understand myself :)

1. Check with your host if your site supports .php extensions, otherwise this won't work. Create a new folder called 'plug'.
2. Download this file (click 'Save to' when the box pops up), and then unzip.
3. Open plug.php and edit it if you want. If you're using WS_FTP Explorer, you can edit it once you've uploaded it if you like.
4. Upload plug.php and plug.db.php to your site, in the 'plug' folder you just made. If they don't work in Binary mode, try uploading them in ASCII.
5. CHMOD both files to 666, see my CHMODing tutorials if you aren't sure :)
6. If you site is written fully in php (i.e. your pages look like http://your-site.com/whatever.php), open the page you would like to add the plugboard to and insert this code:

[? include "plug.php"; ?] - but with these brackets on either side < > not [ ]
7. If your site is written in HTML (your pages are http://your-site.com/whatever.html, .htm or .shtml) or anything but .php, then create a new page and insert the code from step 6 just on its own. Then save your file as index.php (make sure it's in the 'plug' folder you created in step 1 or you could overwrite a file that already exists).
8. If you followed step 7, then create a page called plugboard.html and insert this code to show your plugboard:


Change your-site.com to your actual URL, and edit the widths and heights if you like.

9. To customise your board:
  • Open your 'index.php' page and insert CSS code (see my CSS tutorials) to change the background etc.
  • Open your 'plug.php' file and customise to your liking.
    10. Now go to the page where your board is. If your site is in php, just visit the page where you inserted the code from step 6 on. If your site is in HTML, visit http://www.your-site.com/plug/plugboard.html. You'll notice there are some random buttons there already; you can leave these as they are or open 'plug.db.php' and delete all but one row of coding. This will mean you will have broken images until your visitors start adding buttons however!
    11. Fill out the fields on your board with your own info. or a site you like to check it works.
    Warning: include() [function.include]: Filename cannot be empty in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 22

    Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/jenni/star-girl.org/pages/tutorials/program/plugboard.php on line 22