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.
Topic RSS
closed
11:32 am
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
7:16 pm
August 25, 2008
OfflineJill,
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.
12:23 pm
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
9:26 pm
August 25, 2008
OfflineJill,
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.
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)
Log In
Register
Home

Dynamic Content Gallery: Have you read the 
