User album to v7

Simple user album that resizes the images automatically on upload.

Installation:
-------------

Upload the content of the folder user_album_en to the root of your server.

CHMOD the folders images/userprofilepics and images/userprofilepics/thumbs to 777


Open profile.php and insert this after the last closetable:

//start useralbum

opentable("".$user_data['user_name']."*s fotoalbum");

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

echo "<center><b>Click on the thumbnails to inlarge the images.</b></center>";

}else{

echo "<center><a title='Rediger dit fotoalbum' href='".BASEDIR."edit_userprofilepics.php'><b>Edit your photoalbum</b></a></center>";

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


include('userprofilepics.php');


closetable();

//end useralbum


Open infusions/user_info_panel/user_info_panel.php

Find:

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

echo THEME_BULLET." <a href='".BASEDIR."edit_userprofilepics.php' class='side'>My photoalbum</a><br />\n";


Open edit_userprofilepics.php

Make any changes in album options in this area.

/* Settings for your photoalbum */
$max_width = 500; // max. Pixel width
$max_height = 500; // max. Pixel height
$max_tn_size = 120; // max. width/height for Thumbnails
$max_pics = 9; // max. number of images allowed for the user to upload
$thumbs_per_row = 3; // no. of Thumbs per. row
/* End of settings */

Done

//olelau//

