Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
How to Resize Images in Dynamic Content Gallery
Status: fixed
November 27, 2010
11:54 pm
buscatall
Guest

I have recently installed your plugin and posted 2 articles to the Dynamic Content Gallery section. Both of the images for the 2 posts are visible, however, they are too small for the template. How do I configure these so they will fill the specified space in the gallery frame?

Unfortunately, I can not have you look at the website as I have it in development stage and not for public view. I am using v3.3.3 and Wordpress 3.0.

thanks.

November 28, 2010
2:00 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi,

The DCG doesn't resize images – therefore you need to upload images which are the correct size for your chosen gallery dimensions. For best loading times and picture quality the image size should match your gallery dimensions.

You can automate the creation of correctly sized images by using the add_image_size() WP function to create a correctly sized image. For example, assuming your DCG size is 600px width x 400px height, you could add this to your theme's functions.php:

add_image_size('DCG', 600, 400, true);

Once you've done this, every time you upload an image which is larger than 600x400, WP will create an additional image size. You can then grab the URL for this image for the DCG Metabox. This assumes you are using the "FULL URL" Image Management setting.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
January 2, 2011
1:38 pm
crashtest
Guest

Hi.

i tried to put this line in my functions.php, but i don't see any new option when uploading a new image, maybe i'm doing something wrong

if ( function_exists( "add_theme_support" ) ) {
add_theme_support( "post-thumbnails" );
set_post_thumbnail_size( 200, 200, true );
add_image_size( 'DCG', 600, 330, true );
add_image_size( "single-post-thumbnail", 400, 9999 ); // Permalink thumbnail size
}
January 2, 2011
7:11 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Your code looks fine, but WP doesn't show the additional image sizes in the Media Uploader box, unfortunately.

However, the image URL is easy to determine from the full size url. For example, if the full size image filename is:

myimage.jpg

the DCG size will be:

myimage-600x300.jpg

Therefore, you can work out what the URL is.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
January 6, 2011
2:54 am
crashtest
Guest

thx, it works fine now :) the only thing i have to solve now is that it works only in jquery mode, in mootools it doesn't load (stuck with the animated gif of the loading bar), i'll keep my investigations… ;)

January 6, 2011
8:36 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Re Mootools problem – this means there is a conflict with another plugin using javascript. If you really must use mootools, deactivate other plugins and reactivate one by one until you find the culprit. You will then need to see if you can find an alternative plugin which doesn't conflict. Or stick with jQuery. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: theonsale, nloronacele
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)