﻿/*
+-----------------------------------------+
+ BBCode Guide V2.00
+-----------------------------------------+
+-----------------------------------------+
| Copyright © 2009 Fangree Productions
| Web: www.fangree.co.uk
| Email: admin@fangree.co.uk
|
| Copyright © 2009 Tu Website
| Web: www.tu-website.com.ar
| 
|  Facebox & JavaScript Support: Barspin 
|
|  Beta Testers
|  Tizzy
|  Fido
|  vbzoka
|  Barspin
|-----------------------------------------+
==================================================================================
|                                                                                |
|    This program is free software: you can redistribute it and/or modify        |
|    it under the terms of the GNU Affero General Public License as              |
|    published by the Free Software Foundation, either version 3 of the          |
|    License, or (at your option) any later version.                             |
|                                                                                |
|    This program is distributed in the hope that it will be useful,             |
|    but WITHOUT ANY WARRANTY; without even the implied warranty of              |
|    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
|    GNU Affero General Public License for more details.                         |
|                                                                                |
|   You should have received a copy of the GNU Affero General Public License     |
|    along with this program.  If not, see <http://www.gnu.org/licenses/>.       |
|                                                                                |
==================================================================================
|-----------------------------------------+
| PHP-Fusion
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
|-----------------------------------------+
*/

-----------------
|GENERAL:       |
-----------------
A nice BBCode Guide page that displays all the enabled BBCodes (If the BBCode is disabled in Admin it will not appear on the guide). 

Scroll over the BBCode Icon and a box over will appear with the BBCode Description.

Also includes BBCode Guide logo and a small introduction to BBCodes usefull for people who do not know much about using BBCodes.

New in  version (V2) is a BBCode Guide BBCode, when this BBCode is enabled it will add a small blue i icon next to the other enabled BBCodes, when selected a nice facebox pop up with the guide. 
Tested and works with Firefox3+ IE8+ Google Chrome and opera.

-------------------------------------------
|Modified Files:                          |
-------------------------------------------

locale/English/admin/bbcode.php
themes/templates/header.php


You can upload the modified header.php included in the package or you can mod it your self.

To mod header.php your self open themes/templates/header.php in notepad or the programme you use.

Look for around line 37:

echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n";

Below it add...

echo "<link rel='stylesheet' href='".INCLUDES."facebox.css' type='text/css' media='screen' />\n";
echo "<script type='text/javascript' src='".INCLUDES."facebox.js'></script>\n";
echo "<link rel='stylesheet' href='".INCLUDES."tooltip/jquery.tooltip.css' type='text/css' media='screen' />\n";
echo "<script type='text/javascript' src='".INCLUDES."tooltip/jquery.tooltip.min.js'></script>\n";

Save file and upload to themes/templates/

If you have any dificulties moding the file refer to the header included in the package.



-------------------------------------------
|INSTALL INSTRUCTIONS:                    |
-------------------------------------------

1. Upload all files in /files/ folder to your PHP-Fusion site route.

The only file you need to over write is /locale/English/administration/bbcodes.php

2. Go to Site Admin >>> System Admin >>> Site Links and make a new link to bbcode_guide.php name it BBCode Guide and it is ready.

-------------------------------------------
|Other Information:                       |
-------------------------------------------
You might have to adjust the CSS styles to suit your sites theme.
To change the facebox style look in the includes folder open up facebox.css and change to suit your theme.
To change the style of the tooltip look in the includes/toltip/ folder open up tooltip.css and change to suit your theme.

To change facebox images look in facebox.js at lines 82 and onwards

To change BBCode Guide Text Look in locale folder for bbcode.php


-------------------------------------------
|CHANGELOG:                               | 
 ------------------------------------------
10.10.2009 - v1.00 First Public Release
11.10.2009 - v1.01 Second Public Release fixed locale folder was named incorectly.
22.10.2009 - v2.00 Added BBCode Guide BBCode with facebox popup. Cleaned up code.

