External Page Wrapper v3.00
PHP-Fusion: v7.01.xx
Author: Rayxen
email: rayxen AT phpfusion-mods.com
Update to v1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21, 2.00 RC1/RC2/RC3/RC4/RC5/RC6, 2.00, 3.00 by: WEC
email: wec_ad AT hotmail.com
Last modified: 2010-08-01
----------------------------------------------------
Released under the terms and conditions of the
GNU Affero General Public License (AGPL) (Version 3)
----------------------------------------------------

DESCRIPTION
-----------
This Infusion allows you to embed external pages into your PHP-Fusion site using an iFrame (inline frame). This can be used to save time by allowing you to embed already existing documents on your website without putting them into a PHP-Fusion custom page.

Infusion is latest tested on v7.01.00 

Features include:

. Custom title for each page
. Optional description for each page (HTML support)
. Default wrapper height for each page
. Enable/Disable auto-resize for each page
. Quick view source and wrapped pages links in Admin
. Attempt to automatically resize wrapper when documents on same domain
. Auto resize wrapper when window resizes
. Display info table with description and link to source
. When description is empty, don't display "Info" table
. Handles browsers with no Javascript support
. Handles browsers with no iFrame support
. Option to enable or disable left and right PHP-Fusion block column
. Option to add link to the wrapped page to navigation menu
. Option to set the visibility of the link in navigation menu
. Option to display persistant upper and lower center panels if they are enabled on all pages in System Admin, Panels
. Option to set the order and destination in navigation menues of the generated site link
. Option to let the generated site link open in new window
. Option to set page access. Note that restriction is for the page only and not for the iframe content
. Option to enable comments and rating
. Option to use BB code in generated site link

INSTALLATION
------------
1. Upload the 'wrapper' folder to your infusions folder.
2. Go to Infusion Management and install the Wrapper infusion.
3. Manage the wrapper via "External Page Wrapper" in Infusions Admin.

UNINSTALLATION
--------------
1. Go to System Admin, Infusions and defuse the Wrapper infusion.
2. Delete the folder '\infusions\wrapper'.

UPDATE
------
You can update from previous version by deleting old infusion, upload 3.00 files and reinfuse the infusion.

CREDITS
-------
This script has been modified from the Dynamic iFrame Height Script.
Thanks to the developers for allowing us to use this script.
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
Credit to Rayxen for making the v1.00 infusion for PHP-Fusion.

CHANGELOG
---------

Version 3.00
------------
. Enabled BB code as introduced in PHP-Fusion 7.01.00 for site links
. Update to match changes to the settings table introduced in PHP-Fusion 7.01.00
. Added Turkish locale files

Version 2.00
------------
. Fixed bug causing link position, link window and link order selections not being saved

Version 2.00 RC6
----------------
. Link order list in wrapper_admin.php forced to show two characters for link order 1 to 9
. Added Spanish locale 

Version 2.00 RC5
----------------
. Added add_to_title(" - ".$page_title); to wrapper.php
. Updated Danish locale
. Added css loading.gif
. Code cleanup

Version 2.00 RC4
----------------
. Changed infusion access right EG to unique access right WRAP

Version 2.00 RC3
----------------
. Added cleanup of panel block exclusion lists upon defusion

Version 2.00 RC2
----------------
. Added option to disable left and right PHP-Fusion block columns when creating a wrapped page
. Added option to disable persistant upper and lower center panels when creating a wrapped page

Version 2.00 RC1
----------------
. W3C XHTML 1.0 Transitional
. Rewrite of code to follow v7 standards
. Removed option to enable or disable left and right PHP-Fusion block columns
. Removed option to display persistant upper and lower center panels
. Removed loading.gif

Version 1.21
------------
. Added $aidlink in wrapper_admin.php
. Added Dutch locale

Version 1.20
------------
. Fixed page access bug in wrapper.php

Version 1.19
------------
. Added option to set page access.
. Added option to enable comments and rating.
. Added page loading animated gif. Generate your own gif at http://www.ajaxload.info or use the default gif included.

Version 1.18
------------
. Added Norwegian locale.
. Added pagination in wrapper_admin.php.
. Changed infusion access right from superadmin to normal infusion checkrights("IP").
. Fixed some error notices.
. Added missing closing tag ?> in infusion.php.

Version 1.17
------------
. Improved setting of link order by adding a drop down list with existing site links. 

Version 1.16
------------
. Added option to set the generated site link to open in new window.
. Added option to set the order and destination in navigation menues of the generated site link. With these options you no longer need to go to site links admin to adjust settings after you generated the site link via the Wrapper infusion. 

Version 1.15
------------
. Added option to display persistant upper and lower center panels if they are enabled on all pages in System Admin, Panels.
. Added automatical deletion of Wrapper generated site links on defusion.
. Included Danish and German locale files.

Version 1.14 (Non public release)
------------
. Clean up 

Version 1.13
------------
. Visibility option in Navigation Menu now handled

Version 1.12 (Non public release)
------------
. "Add to Navigation Menu" option now handled

Version 1.11 (Non public release)
------------
. "Page Added" confirmation page with url now handled

Version 1.10
------------
. Included option to enable or disable left and right PHP-Fusion block column for the wrapped page
. Made 600 px appear as default master value for a new wrapped page

Version 1.00
------------
. Packaged as an Infusion
. Handle browser without Javascript support
. Handle browser without iFrame support
. Values stored in database
. Set separate values for each page
. Ability to disable auto-resizing for a page
. Short description added at bottom of wrapper (HTML support)
. Added micro button link to DynamicDrive homepage
. Support for Opera browser (uses default height)

Version 0.21
------------
. Fixed minor bug (set frame height to auto first)

Version 0.20
------------
. Check Domain function removed
. Use Exception Handing to determine size
. iFrame auto-resizes every time a new page inside the iframe is loaded
. iFrame resizes to correct height if page is on local domain
. iFrame resizes to default height if page is (initially or via link in iFrame) on a different domain
. Tested to work in Firefox 1.0+ and IE6

Version 0.10
------------
. Added Check Domain function (only resize on local documents)
. Added basic resizing support
. Basic wrapper page

TODO
----
. Add more locale files