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
Clash of plugins
Status: closed
December 11, 2010
11:32 am
babrees
Guest

Hi

Thanks for a great script.

I had a clash between phpZon and DCG plugins (DCG stopped working while phpZon was active). I found the answer on their forum, which I repeat the gist of here…

The problem was with a jquery clash. In WordPress, for both theme and plugin development, there is a function calld wp_enque_script . The purpose of this function is to add external javascripts to a "que" in WordPress and then WordPress will ensure that there are not more than two instances in the header of the site.

Many themes do not use this though, they manually the javascripts and css needed for the theme by hard coding them into the theme's header.php file.

phpZon Pro uses the wp_enque_script method to add the necessary javascript files. However, if another theme or plugin does not follow this rule, then WordPress will have no way to limit the scripts to one instance and thus, very possible for a clash.

They have produced a fix for this by commenting out a line of code, but, which this is all beyond my understanding, I wondered if wp_enque_script will be catered for in the next version of DCG?

Cheers
Jill

December 11, 2010
7:16 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Jill,

The DCG uses wp_enqueue_script to load jQuery. Show me your site with both plugins activated (DCG unmodified) and I'll see what is going on.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 12, 2010
12:23 pm
babrees
Guest

I didn't want to break it again on a live site, so I have set it up on a test site here: http://www.123club.co.uk/blog/

The real site is http://www.babrees.co.uk/

This is the thread on the other plugin that describes the problem – http://www.phpbay.com/forums/showthread.php?t=5042 see post #7 Also, the very last post is somebody else who had the problem with DCG, which was also solved by that thread

DCG was not modified, I modified the english.php of phpZon plugin, as described in the above post. My real site shows that file modified. The test site is unmodified.

I couldn't see a way of contact you to send log in details if you needed them.

TIA

December 14, 2010
1:21 pm
babrees
Guest

Hi Ade

Just wondered if you had had a chance to look at this yet

Cheers
Jill

December 14, 2010
9:26 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Jill,

I took a look at your test site and you are using DCG with mootools. This will clash with jQuery loaded by other plugins and has nothing to do with wp_enqueue_script – it's just a clash between different javascript frameworks. Switch the DCG to use jQuery and all should be fine.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 16, 2010
7:53 pm
babrees
Guest

PERFECT! Thanks Ade! TBH I don't know about mootools and javascript so had just left it at the default!

Cheers for that
Jill

December 17, 2010
1:56 am
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Great! Glad it's fixed. 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
12 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)