<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Joomla Community Builder User Plugin: plug_cbprofilegallery
* @version $Id$
* @package plug_cbprofilegallery
* @subpackage cb.profilegallery.xml
* @author Nant, JoomlaJoe and Beat
* @copyright (C) Nant, JoomlaJoe and Beat, www.joomlapolis.com
* @license Limited  http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @final 1.0 RC2
*/
-->
<cbinstall version="1.0.3" type="plugin" group="user">
	<name>CB Profile Gallery</name>
	<author>Nick A.</author>
	<creationDate>03 August 2006</creationDate>
	<copyright>(C) 2005 joomlapolis.com</copyright>
	<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
	<authorEmail>nant@joomlapolis.com</authorEmail>
	<authorUrl>www.joomlapolis.com</authorUrl>
	<version>1.0</version>
	<description><![CDATA[
	   <div align="left">
	   <img src="../components/com_comprofiler/plugin/user/plug_cbprofilegallery/images/cbprofilegallerylogo.jpg" alt="logo" /><br />
	   <strong><font face="Verdana, Arial, Helvetica, sans-serif" class="sectionname">CB Gallery (aka Nant's Gallery) 1.0 RC2</font></strong><br /><br />
	   Provides each registered (Community Builder) user with a Gallery Tab.<br/>
	   Created by Nant, JoomlaJoe and Beat - members of the CB Core Team over at joomlapolis.com - Logo and alternative icon set contributed by Rembrandt.<br />
	   <br />
	   <p>Version: 1.0 RC2 [build:03-AUG-2006] with known fixes</p>
	   <br />
	   <h3>
	   Plugin Quicknotes
	   </h3><br />
	    </div>
	    <iframe SRC="../components/com_comprofiler/plugin/user/plug_cbprofilegallery/info/cbgalleryinfo.html" NAME="mambot" WIDTH="600" HEIGHT="600" ALIGN="LEFT">
		<p>It seems, your browser does not support so-called iframes. You should have seen a help file here. Click <a href="../components/com_comprofiler/plugin/user/plug_cbprofilegallery/info/cbgalleryinfo.html">here</a> to open it anyway.</p>
		</iframe>
     	]]>
	</description>
	<files>
		<filename plugin="cb.profilegallery">cb.profilegallery.php</filename>
		<filename>index.html</filename>
		<filename>js/profilegallery.js</filename>
		<filename>js/effects.js</filename>
		<filename>js/lightbox.js</filename>
		<filename>js/prototype.js</filename>
		<filename>js/scriptaculous.js</filename>
		<filename>css/lightbox.css</filename>
		<filename>images/blank.gif</filename>
		<filename>images/close.gif</filename>
		<filename>images/closelabel.gif</filename>
		<filename>images/loading.gif</filename>
		<filename>images/next.gif</filename>
		<filename>images/nextlabel.gif</filename>
		<filename>images/prev.gif</filename>
		<filename>images/prevlabel.gif</filename>
		<filename>images/image-1.jpg</filename>
		<filename>images/thumb-1.jpg</filename>
		<filename>info/cbgalleryinfo.html</filename>
		<filename>info/style-for-html-files.css</filename>
		<filename>language/english.php</filename>
		<filename>language/dutch.php</filename>
		<filename>language/greek.php</filename>
		<filename>language/index.html</filename>
		<filename>images/index.html</filename>
		<filename>images/cbprofilegallerylogo.jpg</filename>
		<filename>images/pgtn_nonimageitem.gif</filename>
		<filename>images/pgtn_docitem.gif</filename>
		<filename>images/pgtn_pdfitem.gif</filename>
		<filename>images/pgtn_xlsitem.gif</filename>
		<filename>images/pgtn_zipitem.gif</filename>
		<filename>images/pgtn_txtitem.gif</filename>
		<filename>images/pgtn_pptitem.gif</filename>
		<filename>images/pgtn_pngitem.gif</filename>
		<filename>images/pgtn_jpgitem.gif</filename>
		<filename>images/pgtn_gifitem.gif</filename>
		<filename>images/pgtn_bmpitem.gif</filename>
		<filename>images/pgtn_mp3item.gif</filename>
		<filename>images/pgtn_wmpitem.gif</filename>
		<filename>images/pgtn_swfitem.gif</filename>
		<filename>images/pgtn_movitem.gif</filename>
		<filename>images/block-arrow.gif</filename>
		<filename>images/none-arrow.gif</filename>
		<filename>images/archive_f2.png</filename>
		<filename>images/delete_f2.png</filename>
		<filename>images/publish_f2.png</filename>
		<filename>images/unarchive_f2.png</filename>
		<filename>images/unpublish_f2.png</filename>
		<filename>images/publish.gif</filename>
		<filename>images/unpublish.gif</filename>
		<filename>images/revoke.gif</filename>
		<filename>images/approve.gif</filename>
		<filename>images/delete.gif</filename>
		<filename>install.profilegallery.php</filename>
		<filename>uninstall.profilegallery.php</filename>
	</files>
	<params>
		<param name="@spacer" type="spacer" default="This plugin was created by Nick A. with the (much needed) support of JoomlaJoe and Beat B. Alternative icon set contributed by Rembrandt." label="Credits:" description="" />
		<param name="@spacer" type="spacer" default="This plugin is distributed under a limited GNU/GPL license and cannot be modified to work with anything else outside of the Community Builder suite supported by the Joomlapolis.com site" label="License:" description="" />
		<param name="@spacer" type="spacer" default="Please look at the relevant tab for additional parameters" label="Parameters:" description="" />
		<param name="pgManagementTabEnabled" type="radio" default="0" label="Approval Tab Enabled" description="Specify Yes to enable gallery management tab for moderators.">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
		</param>
		<param name="pgModeratorNotification" type="radio" default="1" label="Moderator Notification" description="Specify Yes to enable notification messages sent to moderators.">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
		</param>
	</params>
	<tabs>
		<tab name="_pg_ProfileGallery" description="_pg_ProfileGallery_Desc" class="getProfileGalleryTab" fields="0" position="cb_tabmain" displaytype="tab">
			<params>
				<param name="pgGalleryAutoEnabled" type="radio" default="1" label="Gallery Automatically Enabled" description="Specify NO to require each user to enable his/her gallery by editing his/her profile setting.">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgPagingEnabled" type="radio" default="1" label="Enable Paging" description="Allow entries to automatically page when they exceed the number per page limit.">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgOpMode" type="list" default="IMAGEMODE" label="Gallery Operations Mode" description="Select which mode you want the gallery to operate under">
			        <option value="IMAGEMODE">Images</option>
			        <option value="FILEMODE">Files</option>
			        <option value="MIXEDMODE">Images and Files</option>
				</param>
				<param name="pgImageFileTypeList" type="text" default="jpg,gif,png" label="Image File List" description="Comma separated file extension list for images." />
				<param name="pgOtherFileTypeList" type="text" default="zip,doc,pdf,txt,xls" label="Other File List" description="Comma separated file extension list for non image items." />
				<param name="pgSortOption" type="list" default="DATEDESC" label="Sort Option" description="Select which sorting option to apply when displaying gallery items">
			        <option value="DATEASC">Older items first</option>
			        <option value="DATEDESC">Newer items first</option>
				</param>
				<param name="pgAccessMode" type="list" default="REG" label="Access Mode" description="Select which access mode type to apply when viewing the gallery tab.">
			        <option value="PUB">Public</option>
			        <option value="REG">Registered Only</option>
			        <option value="REG-S">Registered Only - Stealth</option>
			        <option value="CON">Connections Only</option>
			        <option value="CON-S">Connections Only - Stealth</option>
				</param>
				<param name="pgAllowAccessModeOverride" type="radio" default="1" label="Allow Access Mode Override" description="Select Yes to allow users to override default access mode setting for gallery tab viewing">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgAllowModeratorFrontEndUploads" type="radio" default="1" label="Allow Moderator FE Uploads" description="Select Yes to allow moderators to upload items on behalf of users when viewing their profiles in the front-end">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgDisplayFormat" type="list" default="DF1" label="Display Format" description="Select which format to use when displaying gallery items">
			        <option value="DF1">Default (thumbnail)</option>
			        <option value="DF2">Table list</option>
			        <option value="DF3">Thumbnail lightbox</option>
				</param>
				<param name="pgDisplayFormatParameters" type="text" default="10,...,100,0,70,10" label="Display Format Parameters" description="Comma separated parameters to use during html rendering of profile gallery items (default:10,...,100,0,70,10)." />
				<param name="pgAllowDisplayFormatOverride" type="radio" default="1" label="Allow Display Format Override" description="Select Yes to allow users to override default format setting for gallery viewing">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgAutoPublish" type="radio" default="1" label="Autopublish" description="Default setting for newly submitted items. Can be over-ridden by any user from the cb field profile updates.">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgAllowAutoPublishOverride" type="radio" default="0" label="Allow Auto-publish Override" description="Select Yes to allow users to override default autopublish status for new gallery items">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgAutoApprove" type="radio" default="1" label="Auto-approve" description="Select to automatically approve or force item approval by authorized moderators">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgAllowAutoApproveOverride" type="radio" default="1" label="Allow Auto-approve Override" description="Select Yes to allow admins to override default autoapprove setting for individual users via the backend user management">
			        <option value="0">No</option>
			        <option value="1">Yes</option>
				</param>
				<param name="pgButtonIcons" type="radio" default="0" label="Gallery Button Icons" description="Select to over-ride default icon images">
			        <option value="0">Default</option>
			        <option value="1">Over-ride</option>
				</param>
				<param name="pgIconList" type="text" default="delete.gif,unpublish.gif,publish.gif,approve.gif,revoke.gif" label="Gallery Icon List" description="Comma separated file list for gallery icon images." />
				<param name="@spacer" type="spacer" default="" label="" description="" />
		    	<param name="pgEntriesPerPage" type="text" default="5" label="Entries per Page" description="Number of entries shown per page." />
				<param name="pgNumberOfGalleryItems" type="text" default="10" label="Items Quota" description="Default gallery items quota per user."/>
				<param name="pgMaxWidth" type="text" default="500" label="Maximum width" description="Maximum image width for single image upload in pixels. Images exceeding this value will be resized." />
				<param name="pgMaxHeight" type="text" default="500" label="Maximum height" description="Maximum image height for single image upload in pixels. Images exceeding this value will be resized." />
				<param name="pgMaxSize" type="text" default="250" label="Maximum size" description="Maximum gallery item size in Kbytes allowed for single uploaded item. Files exceeding this size will be rejected." />
				<param name="pgTNMaxWidth" type="text" default="150" label="Maximum thumbnail width" description="Maximum thumbnail width in pixels for image items." />
				<param name="pgTNMaxHeight" type="text" default="150" label="Maximum thumbnail height" description="Maximum thumbnail height in pixels for image items." />
				<param name="pgDefaultQuota" type="text" default="1024" label="Storage quota" description="Default storage quota for individual user. Can be over-ridden by admin for VIP users." />		
				<param name="@spacer" type="spacer" default="" label="" description="" />
			</params>
			<fields>
				<field type="radio" title="_pg_EnableProfileGallery" name="cb_pgenable" description="_pg_EnableProfileGallery_Desc" registration="0" readonly="0" profile="0">
					<fieldvalue title="_UE_YES" ordering="1" sys="0" />
					<fieldvalue title="_UE_NO" ordering ="2" sys="0" />
				</field>
				<field type="radio" title="_pg_AutoPublish" name="cb_pgautopublish" description="_pg_AutoPublish_Desc" registration="0" readonly="0" profile="0">
					<fieldvalue title="_UE_YES" ordering="1" sys="0" />
					<fieldvalue title="_UE_NO" ordering ="2" sys="0" />
				</field>
				<field type="radio" title="_pg_AutoApprove" name="cb_pgautoapprove" description="_pg_AutoApprove_Desc" registration="0" readonly="1" profile="0">
					<fieldvalue title="_UE_YES" ordering="1" sys="0" />
					<fieldvalue title="_UE_NO" ordering ="2" sys="0" />
				</field>
				<field type="text" title="_pg_ShortGreeting" name="cb_pgshortgreeting" description="_pg_ShortGreeting_Desc" registration="0" readonly="0" profile="0" />
				<field type="text" title="_pg_TotalAllowedQuotaSize" name="cb_pgtotalquotasize" description="_pg_TotalAllowedQuotaSize_Desc" registration="0" readonly="1" profile="0" />
				<field type="text" title="_pg_TotalAllowedQuotaItems" name="cb_pgtotalquotaitems" description="_pg_TotalAllowedQuotaItems_Desc" registration="0" readonly="1" profile="0" />
				<field type="text" title="_pg_MaxSingleUploadSize" name="cb_pguploadsize" description="_pg_MaxSingleUploadSize_Desc" registration="0" readonly="1" profile="0" />
				<field type="text" title="_pg_ShortGreeting" name="cb_pgshortgreeting" description="_pg_ShortGreeting_Desc" registration="0" readonly="0" profile="0" />
				<field type="text" title="_pg_CurrentUploadedItemsCount" name="cb_pgtotalitems" description="_pg_CurrentUploadedItemsCount_Desc" registration="0" readonly="1" profile="0" />
				<field type="text" title="_pg_CurrentUploadedItemsSize" name="cb_pgtotalsize" description="_pg_CurrentUploadedItemsSize_Desc" registration="0" readonly="1" profile="0" />
				<field type="date" title="_pg_LastUpdate" name="cb_pglastupdate" description="_pg_LastUpdate_Desc" registration="0" readonly="1" profile="0" />
				<field type="select" title="_pg_AccessMode" name="cb_pgaccessmode" description="_pg_AccessMode_Desc" registration="0" readonly="0" profile="0">
					<fieldvalue title="PUB" ordering="1" sys="0" />
					<fieldvalue title="REG" ordering="2" sys="0" />
					<fieldvalue title="CON" ordering="3" sys="0" />
					<fieldvalue title="REG-S" ordering="4" sys="0" />
					<fieldvalue title="CON-S" ordering="5" sys="0" />
				</field>
				<field type="select" title="_pg_DisplayFormat" name="cb_pgdisplayformat" description="_pg_DisplayFormat_Desc" registration="0" readonly="0" profile="0">
					<fieldvalue title="DF1" ordering="1" sys="0" />
					<fieldvalue title="DF2" ordering="2" sys="0" />
					<fieldvalue title="DF3" ordering="3" sys="0" />
				</field>
			</fields>
		</tab>
			<tab name="_pg_ProfileGalleryManagement" description="_pg_ProfileGalleryManagement_Desc" class="getProfileGalleryManagementTab" fields="0" position="cb_tabmain" displaytype="tab">
			<params>
			</params>
		</tab>
	</tabs>
	<install>
		<queries>
			<query>
				CREATE TABLE IF NOT EXISTS `#__comprofiler_plug_profilegallery` (
					`id` int(10) NOT NULL auto_increment,
					`userid` int(10) default NULL,
					`pgitemorder` int(10) default NULL,
					`pgitemtype` varchar(10) not NULL default 'UNKNOWN',
					`pgitemfilename` varchar(50),
					`pgitemtitle` varchar(50) default NULL,
					`pgitemdescription` text NOT NULL,
					`pgitemdate` datetime default NULL,
					`pgitemsize` int(10) NOT NULL default '0',
					`pgitempublished` tinyint(1) NOT NULL default '0',
					`pgitemapproved` tinyint(1) NOT NULL default '0',
					PRIMARY KEY  (`id`)
				) TYPE=MyISAM
			</query>
		</queries>
	</install>
	<uninstall>
	</uninstall>
	<installfile>install.profilegallery.php</installfile>
	<uninstallfile>uninstall.profilegallery.php</uninstallfile>
</cbinstall>