User Profile Album with FancyBox image zoom

EASY PHOTOS


Simple user album that resizes the images automatically on upload.

/************************************
| Terry Broullette (Grimloch)
| Date: July 18, 2010
| FancyBox added to edit photoalbum
| FancyBox added to view photoalbum
| This is a modification NOT an infusion
| Email: webmaster@whisperwillow.com
| Web: http://www.whisperwillow.com
\************************************

Installation:
----------------
STEP 1:

<*** ALWAYS BACKUP OR RENAME EXISTING FILES IF THEY ARE BEING REPLACED BY A MOD ***>

Upload: 'php-files/includes/fancybox' folder to your 'root/includes' folder

***< If you have a MODIFIED 'profile.php' in your root folder >***
***< DO NOT upload 'php-files/profile.php' ... Instead do the following >***

      ****Edit your 'profile.php' according to the following****

Edits:
Open your existing 'profile.php' in your favorite editor and add this:

Near the top:

FIND: include LOCALE.LOCALESET."user_fields.php";
ADD THIS AFTER: include INFUSIONS."easy_photos/locale/English.php";

--------------------

Then ADD THIS code block AFTER the VERY LAST closetable():

//start useralbum
opentable("".$user_data['user_name']."".$locale['EZP_300']."");

echo "<br /><table align='center' cellpadding='0' cellspacing='1' width='500' class='tbl-border'><tr><td align='center' class='tbl2'>";
if ($user_data['user_id'] != $userdata['user_id']) {

echo "<strong>".$locale['EZP_301']."</strong>";

}else{

echo "<a title='".$locale['EZP_302']."' href='".INFUSIONS."easy_photos/edit_userprofilepics.php'><strong>".$locale['EZP_303']."</strong></a>";

}
echo "</td></tr></table><br />";

include (INFUSIONS."easy_photos/userprofilepics.php");

closetable();
//end useralbum

End ADD THIS

***< Otherwise don't do Step 1 above and upload 'php-files/profile.php'>***

STEP 2:

***< If you have a MODIFIED 'infusions/user_info_panel/user_info_panel.php' in your INFUSIONS folder >***

      ****Edit  your 'user_info_panel.php' according to the following****

Edits:
Open your existing 'infusions/user_info_panel/user_info_panel.php' file in your editor and add this:

AFTER: if (!defined("IN_FUSION")) { die("Access Denied"); }
ADD: include INFUSIONS."easy_photos/locale/English.php";

Then Find:

echo THEME_BULLET." <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['global_120']."</a><br />\n";
       
ADD THIS just after the above code:

echo THEME_BULLET." <a href='".INFUSIONS."easy_photos/edit_userprofilepics.php' class='side'>".$locale['EZP_304']."</a><br />\n";

***< Otherwise don't do Step 2 above. Simply upload 'infusions/user_info_panel/user_info_panel.php' from this archive >***

STEP 3: (***optional***)

Open 'infusions/easy_photos/edit_userprofilepics.php' file in your editor:

Make any changes in album options in this area.

/* Settings for your photoalbum */
$max_width = 800; // max. Pixel width
$max_height = 600; // max. Pixel height
$max_pics = 9; // max. number of images allowed for the user to upload
/* End of settings */

***< Otherwise don't do above (optional Step 3) >***

! ! DONE WITH MODIFICATIONS ! !

FTP Upload the contents of the folder 'php-files' to the root of your server.

CHMOD the folder 'root/images/userprofilepics' to 777

This is not an 'infusion'. It is simply a modification. No need to 'infuse'

Completely Done !!!

//olelau//
//Grimloch//

