close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Resize Gallery PowerCMS

Thread began 2/28/2011 11:03 am by mousework50137 | Last modified 3/03/2011 5:14 pm by Jason Byrnes | 1170 views | 6 replies |

mousework50137

Resize Gallery PowerCMS

Hi
I've read through the PDF giving instructions as to how to resize a gallery but for some reason the code looks different to the code shown in the pdf.

I am using PowerGallery version 1.2.1

My page is at members_photo_gallery.php and I want to increase its width to 780 pixels wide so it fills the div fully.

Also how do I make the thumbnails larger so there is say 6 across.

Files attached,
thanks
mark

Attached Files
grid_lightbox.zip
members_photo_gallery.php.zip
Sign in to reply to this post

mousework50137

Help still required

Hi Guys,
I still need help with this.

Also gallery admin page is now displaying code above the login area.

see

index.php

Sign in to reply to this post

Jason ByrnesWebAssist

the size of the gallery is set in the /galleries/grid_lightbox/css/common.css file


this style is setting the width to 728px:

.pg-gl {
width: 720px;
font-family: Arial, Helvetica, sans-serif;
background-color: #1e1e1e;
padding: 8px 0 8px 8px;
}

you an increase the galery width by editing the width setting of the .pg-gl selector.

the size of the thumbnails is set by the /galleries/grid_lightbox/index.php page. this line:

php:
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=132c&full=782p'));



sets the thumbnails to use the a32px cropped size.


see this thread for details on changing that and or creating custom image sizes:
showthread.php?t=8844&highlight=properties


For the error you are getting, here is an updated copy of the powergallery/admin_gallery/images/installed.png file.

Attached Files
installed.png.zip
Sign in to reply to this post

mousework50137

hi,
Thanks for these details, I'm working on the sizes now, will let you know if a further issue.

Replace the file you supplied but still getting one last line of code at the top of the gallery admin page,

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/worceste/public_html/powergallery/admin_gallery/global.php on line 37

cheers
mark

Sign in to reply to this post

Jason ByrnesWebAssist

in the powergallery/admin_gallery/global.php


change:

php:
require_once("images/installed.png");

//PowerGallery version
$wa_settings['pg_version'] = '1.2.0';
mysql_free_result($result);




to:

php:
//PowerGallery version

$wa_settings['pg_version'] = '1.2.0';
mysql_free_result($result);
require_once("images/installed.png");
Sign in to reply to this post

mousework50137

fantastic,
Thanks jason
best

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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...