/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright  2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

I have modified usual photo gallery (PHP-Fusion, v.6.01.6) and use it as additional gallery, where users can create their own albums and upload photos without confirmation by administrator. Of course, administrator can edit or delete any materials.

INSTALLATION.

1. Upload following files to the server:
install_sql.php
showuserphoto.php
userphotogallery.php
administration/userphotoalbums.php
administration/userphotos.php

2. Run the file install_sql.php by typing in your web browser http://your_site.com/install_sql.php. It will create two new tables in your database. Then delete this file manually.

3. In the file maincore.php after:
if (iADMIN) {
	define("iAUTH", substr($userdata['user_password'],16,32));
	$aidlink = "?aid=".iAUTH;
}

add this:
if (iMEMBER) {
	define("iUSERAUTH", substr($userdata['user_password'],16,32));
	$uidlink = "?uid=".iUSERAUTH;
}

4. In the file infusions/user_info_panel/user_info_panel.php after:
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>

add new link:
<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."userphotoalbums.php".$uidlink."' class='side'>My photo albums</a><br>

(by following this link user enters to the administration of only his own photo albums, but superadministrator - to all albums.)

5. Add to the navigation menu link to the file userphotogallery.php (call it for example "User's photo albums").


That's all, good luck!

Sergei Gushchin (garry)
garry33@yandex.ru