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
jQuery gallery doesn't work
Status: closed
December 25, 2010
12:05 pm
sculptedpixel
Guest

Hello. I am working on a template for a client who wants the DCG and I an RSS feed. The RSS feed conflicts because it is using jQuery, but when I switch the gallery to jQuery, I don't get anything. If I disable to RSS feed and use MooTools, everything works as expected.

They URL is sculptedtesting.info/wordpress

Any thoughts on why this might be happening would be hugely appreciated.

Thanks,
Eric

December 25, 2010
2:13 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Eric,

Make sure you have wp_footer(); in your footer template. The DCG's scripts hook to wp_footer.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 25, 2010
9:29 pm
sculptedpixel
Guest

Thanks for the reply!

I had added the footer tag after going through the forums and seeing a similar issue before posting this.. Still no go. I am not sure why it refuses to run in jQuery mode. I'm really at a loss.

December 25, 2010
9:54 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Are you sure you have added wp_footer? I can't see the scripts in your footer when viewing your Page source. Also, check your Load Scripts options in the DCG Settings Page – should be set to Home Page.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 25, 2010
10:11 pm
sculptedpixel
Guest

yeah here is my footer code:

<div id="footer">
<ul class="bottomnavlist">
<li class="bottomnavlist"><a href="<?php bloginfo('url');?>/">Home</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=2">About</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=14">Present</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=16">Urgent</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=18">Past</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=20">Get Involved</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=22">Contact</a></li>
<li class="bottomnavlist"><a href="index.php?page_id=24">Blog</a></li>
</ul>
<span style="margin-left:400px;font-family:Arial, Helvetica, sans-serif; font-size:9px; color:#FFF;">Copyright Bill Autopsy 2010</span>
<br />
<span style="margin-left:368px;font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#333; line-height:95%">Site Designed by NThreeQ Media, LLC</span>
<!– end #footer –></div>

<?php wp_footer(); ?>
</body>
</html>

It is also set to home page.

I am not sure why the scripts are not showing either when viewing source.

December 27, 2010
10:01 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Ok, I'm officially baffled now…

As a temporary test, add this to your theme's functions.php:

add_action('wp_footer', 'test_function');
function test_function() {
echo '<!– wp_footer is working –>';
}

Then check to see whether you can see the above HTML comment in your page source.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 28, 2010
2:29 am
sculptedpixel
Guest

Yeah it's really bizarre. I added the code and it is echoing out the information in the source.

I did however get it working with MooTools..so I am happy and up and running. I was calling

<?php wp_enqueue_script('jquery'); ?>

incorrectly and it was causing a conflict.

I upgraded to the newest version of wordpress recently and I noticed a bunch of things that went a little wonky..I wonder if that has anything to do with it.

Thanks for all your help! I do have it working now..just not in jQuery mode which is fine.

Thanks again,
Eric

December 28, 2010
7:09 pm
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline

Hi Eric,

Glad it's working now. Smile

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
December 29, 2010
11:53 pm
Jonass
Guest

"Thanks for all your help! I do have it working now..just not in jQuery mode which is fine"

Doesn't seem the problem that initiated this post is solved as you and (oddly) the poster himself imply at the end.

I came here also because my setting works in mootools mode but NOT when jquery mode is activated.
Actually I was glad I found an updated gallery just like feature content gallery, but with more options AND the jquery option. Too good to be true. It doesn't work with jquery for me, which is I think why most people end up here, after all.

It displays a small box with the right width but only about 12 pixels high and no image or stuck loader or black area.

AGAIN jQuery gallery doesn't work or rather DCG doesn't work with jquery or needs some strange setting haven't found yet.

Still looking for a solution…

December 30, 2010
12:13 am
sculptedpixel
Guest
10

Yeah I did not get it working in jQuery mode unfortunately. But since I found a working solution and it seemed that I was the only one having the issue, I figured it wasn't worth wasting Ade's time any further. I also figured it was somewhere in my own code since it works for other people.

If I come across a solution, I will post it.

December 30, 2010
12:19 am
Jonass
Guest
11

Back here. I had commented out the footer. The solution is in the footer as you suggested.

Now it works with jquery = displays the gallery. Need to test if js libraries based on main jquery work too.

December 30, 2010
12:51 am
Ade
Admin
Forum Posts: 2493
Member Since:
August 25, 2008
Offline
12

The DCG code is based on the assumption that the user's theme complies with WP theme development guidelines – ie the theme has wp_header and wp_footer hooks in the correct place. If either of these aren't in the theme, the plugin won't work. Simple as that.

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

Most Users Ever Online: 28

Currently Online:
10 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

speedyp: 12

sjpeaches: 12

CherylMcL: 10

gscorp: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1300

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 980

Posts: 4299

Newest Members: jochris26, eva-aa, Tushar, chargers3, jwhetstone, robert

Moderators:

Administrators: Ade (2493)