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
DCG Admin Issues That Could (Will) Negatively Effect Other Plugins Using jQuery.
September 28, 2010
5:32 pm
Unfair
Guest

I discovered something that may cause many problems with many other users and plugins and wanted to alert you to it before other major support concerns pop up.

In your latest Version 3.3.2 , file dfcg-admin-core.php line# 214 to 223 you are loading javascript files:

wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-tabs');

The problem is , these files are loaded without any condition so its always loaded on all of the admin pages. This is causing issues with any other plugin using tabs, etc. This should only be loaded on the DCG admin page.

To resolve, a simple conditional tag should be added as seen below:

// Load all the jQuery stuff we need for back end (Only For Dynamic Content Gallery Admin)

if($_REQUEST["page"]=="dynamic_content_gallery")
{
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-tabs');
}

For anybody having issues with other plugin admins breaking on their site while using DCG, the above fix will get things back to normal until the next version release. Smile

September 29, 2010
9:36 am
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Hi,

Thanks for pointing that out.

Theoretically, if jquery, ui etc are loaded using wp_enqueue_script there won't be conflicts – that's the whole point of the function. However, you're right – if another plugin loads these elements from exteral sources, there will be conflicts. I'll fix this in the next release.

Cheers. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
October 27, 2010
5:13 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Fixed in v3.3.3. Smile

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

Most Users Ever Online: 28

Currently Online: nloronacele
14 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)