close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

PG Resizing Images Displayed in Template/Reducing the # of thumbs

Thread began 1/04/2010 1:09 pm by pnealis225525 | Last modified 1/19/2011 7:49 am by pnealis225525 | 9149 views | 35 replies


Hi PeterL,


Your properties.php file seems to be fine, at least it should make a working gallery. The only thing you might want to do is to add back the 62 -62 line to the 'resize_cropped' array:

$GLOBALS['resize_cropped'] = array(
array('w' => 62, 'h' => 62),
array('w' => 92, 'h' => 92),
- Just so that the 'select a gallery' screen can add and show the (62x62) thumbnail to the left of the gallery name. (The thumbnail that is missing in the 'Admin Panel.png' image that you sent).


In your galleries/ribbon_lightbox/index.php though, in order for the admin to upload images sized to match your properties 'resized_cropped' array: - array('w' => 92, 'h' => 92), - your galleries/ribbon_lightbox/index.php (line 14) should read:
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=92c&full=782p'));
That should be it, as far as the code goes. The galleries should update OK if you just add (and then remove if you like) a watermark to the existing images, as this will run the scripts that are used to create/configure the images, without having to delete the gallery and browse for the images when you re-add them.

You must also remember - after you have done that - to click the 'add to site' button for each gallery, and copy and paste the revised 'Embed in PHP Page' code in to the pages your galleries are to be displayed on, as the code will have changed to point to new PowerGallery IDs.

I gather you have made all the necessary changes to your stylesheet (gallery/galleries/ribbon_lightbox/css/common.css) but as I made similar changes to mine, I made a note of them in case anyone else is going through the procedure:

The CSS:

gallery/galleries/ribbon_lightbox/css/common.css (line 51)
.pg-rl .ribbon .thumbs-wrapper {
background-color: #303030;
border-top: medium none;
float: left;
height: 100px;
overflow: hidden;
padding: 9px 10px 9px 1px;
width: 791px;
gallery/galleries/ribbon_lightbox/css/common.css (line 58)
.pg-rl .ribbon .thumbs-wrapper .thumbs {
height: 100px;
overflow: hidden;
width: 790px;

gallery/galleries/ribbon_lightbox/css/common.css (line 24)
.pg-rl .ribbon .prev {
background-image: url("../images/dark_prev.png");
background-position: 90% 50%;
background-repeat: no-repeat;
cursor: pointer;
float: left;
height: 118px;
width: 46px;
gallery/galleries/ribbon_lightbox/css/common.css (line 36)
.pg-rl .ribbon .next {
background-image: url("../images/dark_next.png");
background-position: 2px 50%;
background-repeat: no-repeat;
cursor: pointer;
float: left;
height: 118px;
width: 46px;
gallery/galleries/ribbon_lightbox/css/common.css (line 11)
.pg-rl {
font-family: Arial, Helvetica, sans-serif;
overflow: hidden;
The only problem I still have, is that everytime I create a gallery, I have to correct all the paths to the css and javascript files in the chosen gallery's index.php file. I have just had to get used to that!

I have done a couple of trials with the above settings, and it seems to work OK.

Undoubtedly I will have missed something, - I always do, so please post back (including latest pages zipped) if there are problems.


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...