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.

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

2 Different Issues: Cufon Conflict & Carousel Label Truncation

fixed
UserPost

1:31 am
January 1, 2010


benorbeen

Guest

1

Post edited 1:32 am – January 1, 2010 by benorbeen


Hi there!

Love this plugin and am featuring it on the homepage of my website I'm redesigning.  I'm using WP 2.9.

I've discovered a couple of things with the new v3.1 that I thought I'd share.  I think these are current limitations but if you have a fix, I'd be intersted to hear.

- Dynamic Content Gallery appears to partially conflict with the Cufon plugin (font replacement plugin).  For me, the problem manifests in the Heading sections.  In IE7 my Cufon font replaces as intended.  However, in Firefox 3.0, no Heading is visible (just black space).  I deactivated my Cufon plugin and sure enough, the Heading reappeared in Firefox in the default font Cufon was replacing.  I believe I had this same issue with v3.0 or whatever version I upgraded to today.

- Separately, I noticed a (new?) limitation to the Carousel Label.  Earlier today before upgrading, I configured the Featured Content tab to say:

↓ Featured Stories // More Stories ↑

I made this configuration in the Settings page for the plugin.

But after I upgraded, I noticed that the field was truncated and I couldn't get that long of a Carousel Label to stick.  I was unsuccessful in finding out how to expand the textstring limit after digging in the jd-mootools > jd.gallery.js script.

I hope you find this information helpful!

Cheers,

Ben Smile

11:47 am
January 1, 2010


Ade

Admin

posts 2384

2

Hi Ben,

Not sure there will be a fix for the Cufon issue. I'll need to do some testing here to see if I can find a workaround. Does the conflict disappear if you use jQuery instead of mootools (see DCG's Settings page for this option)?

For the Featured Articles text, there is a data sanitisation check which limits this text to 25 characters. You can change this by opening up /includes/dfcg-admin-ui-sanitise.php. Find line 166:

// Extract first 25 characters
        $input[$key] = substr( $input[$key], 0, 25 );

Change the 25 to 50, ie like this:

// Extract first 50 characters
        $input[$key] = substr( $input[$key], 0, 50 );

That should work. I'm probably being too restrictive with 25 characters and will increase this limit in the next release.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

7:09 pm
January 1, 2010


benorbeen

Guest

3

Hi Ade!

I much appreciate the reply.  Sure enough, pointing me to …-ui-sanitise.php did the trick.  I bumped it up to 50 and it worked well.

Also, I tried changing from mootools to jQuery.  Sure enough, Cufon worked when I used jQuery!  Thanks for letting me know that.  I actually don't think I need the Carousell ("Featured Content" tab) as I didn't know it actually existed until quite some time after I installed the plugin (a note about making it a bit more obvious?).  So I may start working with the jQuery version.  The appearance is a little different (notably, smaller left/right arrows) but I may be able to fudge that.

I'm going to post in another thread about a saving problem on the backend when using IE7.  I noticed someone else had that issue ("can't save").  I have found that if I open the backend in Firefox, I can save like a charm.  A small hassle, though, esp. in light of how incredible your wonderful, free plugin is.

Again, I much appreciate your reply.

Cheers,

Ben

8:39 pm
January 1, 2010


Ade

Admin

posts 2384

4

Hi Ben,

Glad the sanitise fix worked. As I mentioned, I will make the same change in the next release.

As for the Cufon conflict, generally speaking using the jQuery option will work where the mootools script conflicts. I'm planning to upgrade the current jQuery script to make to look more like the mootools version.

I'll answer you on your other thread re the save problem in IE.

Ade.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

10:42 pm
January 1, 2010


benorbeen

Guest

5

Glad you're planning to make the jQuery look a little more like mootools.  I tried the jQuery out and tried styling it.  I abandoned it and went back to mootools when I found that the navigation was displaying funky.  When I would hover over the center of the image, in IE7 I got some strange black line with a white line or image in the center.  In Firebox, a huge black overlay appeared with what looked like large images of the arrows facing each other.  I'm fine in my design lacking the headings in Firefox et other browsers.  Don't seem to lose much info.

Cheers, and Happy New Year!

Ben

1:03 am
January 2, 2010


Ade

Admin

posts 2384

6

Ben,

What's your URL? It would be interesting to see what you're seeing.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?

1:10 am
January 2, 2010


benorbeen

Guest

7

I sent you a PM with my URL.  I'll leave my site configured to jQuery for about an hour for you to take a look at.  Cheers!

3:07 am
January 2, 2010


benorbeen

Guest

8

Ale, my apologies.  I figured out the source of my problem with respect to the arrow weirdness.

I had forgotten that I added a width: 558px; into the jquery styles script in an effort to shrink the photos in the Dynamic Content Gallery.  Taking it out, it was a culprit in the weirdness.

Looking more closely, using jquery instead of mootools may actually work for me to use Cufon.  I need to top center some of the photos, though, which I'm trying to find in the script.  No need to follow up, though feel free if you want to!

Cheers,

Ben Laugh

3:52 am
January 2, 2010


benorbeen

Guest

9

Actually, I can't find how to top center the photos, so if you have any insights into how to do this, it would be great.

The reason is that I have some landscape shots and some portrait.  In the jQuery version, landscape shots display pretty well.  However, portrait shots are aligned in the top left corner.

When I was using mootools (which I think I'll switch back to until I can figure this out), this is what I did to get the display of photos as I wanted it:

In the plugin's folder on the server under js-mootools > scripts > jd.gallery.js I scrolled down to around Line 387 and found:

var currentImg = new Fx.Styles(

and specifically:

'backgroundPosition':"center center",

I changed this from "center center" to "top center" … That aligned the images in the gallery along the top edge, which displayed the photos a little bit better.

Can't figure out how to do something equivalent in the plugin's jQuery codes.

Cheers for now!

Ben Wink

1:26 pm
January 2, 2010


Ade

Admin

posts 2384

10

Hi Ben,

Glad it's working better for you now.

I'll have to look through the jQuery script to see how the image position is being set.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?