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
Black box after upgrade resolve method
Status: closed
September 18, 2010
4:08 pm
Acid
Guest

Hi Ade

I'm posting here – if you don't mind – my method that I found working after I got a black box when got upgrade to the newest version.

In short: WP 3.0.1, changing to Mootools didin't help, also downgrading…

So I checked the source code of my site and found that I have a double include of jQuery libs.
One from WP include and another one from Google CDN that I put some time ago in functions.php. Deleted that and It works now :)

PS. For users that want to have jQuery or Mootools from CDN just install the "Use Google Libraries" plugin. It replace WP jQuery with the Google hosted one.
It works too with DCC :)

Thanks for great plugin!

September 18, 2010
6:55 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Hi,

Thanks for posting this. Glad you like the plugin! Smile

A quick word about loading javascript libraries (such as jQuery) in Wordpress, which may be of interest to others.

1. Plugins should always load jQuery (and other libraries) using the WP function wp_enqueue_script(). The cool thing about this function is that it checks whether jQuery has already been enqueued by another plugin, hence avoiding double loading. However, for this to work, all plugins should use wp_enqueue_script() – which is not always the case.

2. Some WP users want to use javascript functionality in a theme, without it being a WP plugin. This is fine, of course, but again for reasons of good practice and to avoid double loading, use wp_enqueue_script to call your javascript library.

3. The DCG uses wp_enqueue_script(). So, as long as other plugins on your install do the same, there will be no double loading.

Hope this makes sense and that it is of use to other readers.

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

Most Users Ever Online: 28

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

sjpeaches: 12

speedyp: 12

CherylMcL: 10

littlemerry: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1297

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 978

Posts: 4293

Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi

Moderators:

Administrators: Ade (2490)