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

Plugin just shows black box.

open
UserPost

1:59 am
August 9, 2010


nfietzer

Guest

1

Post edited 1:59 am – August 9, 2010 by nfietzer


I am working on a new theme for my site and would like to use your plugin in the header however when installed all I am getting is a black box where the images should be loading. I am attaching the basic information about my site including screenshots and the source code.

I am using the latest wordpress release and DCG release. I look forward to a resolution.

Thank you,
Nate

Website screen shot – http://www.nathanfietzer.com/wp-content/uploads/ge…..ebsite.png

Plugin Options Page – http://www.nathanfietzer.com/wp-content/uploads/ge…..inpage.png

Source – http://www.nathanfietzer.com/wp-content/uploads/ge…..source.txt

8:59 pm
August 10, 2010


Ade

Admin

posts 2384

2

Hi,

It's not so easy to diagnose the problem without seeing the site live, but thanks for the screenshots – they do help.

First, your default images folder (see DCG Settings section 2.2) should be the URL to a folder, not to an image. The plugin expects default images to be in this folder and to be named x.jpg where x is the ID of the relevant category.

Second, have you tried deactivating your other plugins or switching the DCG to use jQuery instead of mootools. The most likely cause of your issue is a plugin conflict, specifically a javascript conflict.

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

2:46 am
August 12, 2010


nfietzer

Guest

3

Yeah, Not wanting to put the site live until I can fix the issue.

I have fixed my default images folder to direct itself to a folder not an image.

I have also switched DCG to JQuery and have deactivated all other plugins … still nothing. Actually when I switch to JQuery even the black box goes away and then I get an enlarged white area. See screenshot below.

Website screen shot – http://www.nathanfietzer.com/wp-content/uploads/ge…..jquery.png

Please advise.

Thanks,
Nate

6:48 pm
August 12, 2010


stvsimons

Guest

4

I can confirm the exact same symptoms – black box with moo selected, huge white box with jquery selected.
WP 2.9.2
Dynamic Gallery 3.2.3
The initial failure happens in the startGallery() – a JS error "element.getElements is not a function" at "element.getElements(options.elementSelector).each(function(el)" at
jd.gallery.js (line 147).

7:14 pm
August 12, 2010


stvsimons

Guest

5

Post edited 7:16 pm – August 12, 2010 by stvsimons


What you likely have happening is jQuery is conflicting with the mootools code. After loading jQuery add call to "jQuery.noConflict();":

<script type="text/javascript" src="path-you-r-using-to-jQuery"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

Now, that means any jQuery scripts you are using can no longer use the '$' shortcut, so if you've got jQuery scripts using the shortcut they'll break until the shortcut is replaced with the 'jQuery' – example: $(document).ready(… would have to be jQuery(document).ready(…

That seems to resolve the symptoms I was getting which exactly matched your description.

8:01 pm
August 12, 2010


Ade

Admin

posts 2384

6

stvsimons said:

What you likely have happening is jQuery is conflicting with the mootools code. After loading jQuery add call to "jQuery.noConflict();":

<script type="text/javascript" src="path-you-r-using-to-jQuery"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

Now, that means any jQuery scripts you are using can no longer use the '$' shortcut, so if you've got jQuery scripts using the shortcut they'll break until the shortcut is replaced with the 'jQuery' – example: $(document).ready(… would have to be jQuery(document).ready(…

That seems to resolve the symptoms I was getting which exactly matched your description.

Thanks for posting your fix! Smile

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

12:41 am
August 13, 2010


nfietzer

Guest

7

Ok, I am not much of a coder and you completely lost me. Where should I post the code?

<script type="text/javascript" src="path-you-r-using-to-jQuery"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

11:58 pm
August 14, 2010


nfietzer

Guest

8

FYI …

I put the

<script type="text/javascript">
jQuery.noConflict();
</script>

at the end of the dynamic-gallery.php file and it fixed all my issues.