Forum

 
You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Using Dynamic Content Gallery with Chris Pirillo's Social Media Theme

No Status Selected
UserPost

11:00 pm
November 27, 2008


fluiddynamic

Member

posts 11

1

Hi,

I would LOVE to the gallery in this theme, but I am getting the issue where by the images are just in a long list down the page.

I have checked that none of the plug-ins that I'm using on my site are conflicting

Any ideas?

Thanks!

Dean

7:42 am
November 28, 2008


Ade

Admin

posts 1140

2

Hi,

I'm not familiar with that theme. Is that "Wicketpixie"? Sounds like you have a javascript conflict, probably with something in the theme. Can you post a link and I'll take a look.

Ade.

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

3:47 pm
November 28, 2008


fluiddynamic

Member

posts 11

3

That's right…

My site is http://www.fluiddynamic.co.uk;

Thanks

6:55 pm
November 28, 2008


Ade

Admin

posts 1140

4

Dean,

Looking at the source of your homepage, I see that you are using the NextGen Smooth Gallery plugin. This loads the mootools framework and the same js file as my plugin – hence the conflict!

I am just about to release v2.2 of DCG which contains a new option which allows you to "turn-off" mootools for my plugin. This should avoid conflicts with other plugins which use mootools. Smile

But… This doesn't solve the problem of the same js file. Sadly, you will probably have to make a choice and go with one or other of the plugins.

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

10:17 pm
November 28, 2008


fluiddynamic

Member

posts 11

5

Sorry SGR, my bad… I left the site in the wrong state yesterday

If you take a look at my site now, you'll see how it was meant to look

Thanks again…

Dean

11:27 pm
November 28, 2008


fluiddynamic

Member

posts 11

6

Just to add as well, I have tried deactivating all other plugins on the site and I am getting the same problem…

Thanks!

4:38 pm
November 29, 2008


Ade

Admin

posts 1140

7

Ok, no problem. Smile

I have to pop out for a few hours, but I'll take a look later this evening (CET).

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

6:53 pm
November 29, 2008


fluiddynamic

Member

posts 11

8

No Problems… I think the issue could be solved by using an iframe, but I'm not sure how to do this.

Let me know if you need access to my site

Thanks!

9:22 pm
November 29, 2008


Ade

Admin

posts 1140

9

Dean,

I can't be entirely sure what is causing the conflict, but I suspect this bit of javascript in footer.php is causing the problem:

Find this in footer.php:

<script type="text/javascript">
        $(document).ready(function() {
          $('#subscribe').hide();
          $("#topbar-subscribe a").toggle(
            function () { $("#subscribe").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $("#subscribe").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
          $('#share').hide();
          $("#topbar-share a").toggle(
            function () { $("#share").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $("#share").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>

And replace it with this:

<script type="text/javascript">
        var $j = jQuery.noConflict();
        $j(document).ready(function() {
          $j('#subscribe').hide();
          $j("#topbar-subscribe a").toggle(
            function () { $j("#subscribe").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $j("#subscribe").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>
    <script type="text/javascript">
        var $j = jQuery.noConflict();
        $j(document).ready(function() {
          $j('#share').hide();
          $j("#topbar-share a").toggle(
            function () { $j("#share").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $j("#share").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>

Take a backup of footer.php before you begin! :-)

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

9:40 pm
November 29, 2008


fluiddynamic

Member

posts 11

10

Thanks SGR,

This did not work… but when I removed the following:

<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.js"></script>

<script type=”text/javascript”>

        var $j = jQuery.noConflict();

        $j(document).ready(function() {

          $j('#subscribe').hide();

          $j(”#topbar-subscribe a”).toggle(

            function () { $j(”#subscribe”).animate({ height: “show”, duration: 700, easing:”easeInQuad”}); 

            return false; 

          },

            function () { $j(”#subscribe”).animate({ height: “hide”, duration: 700, easing:”easeOutQuad”}); 

            return false; 

          });

        });

    </script>

    <script type=”text/javascript”>

        var $j = jQuery.noConflict();

        $j(document).ready(function() {

          $j('#share').hide();

          $j(”#topbar-share a”).toggle(

            function () { $j(”#share”).animate({ height: “show”, duration: 700, easing:”easeInQuad”}); 

            return false; 

          },

            function () { $j(”#share”).animate({ height: “hide”, duration: 700, easing:”easeOutQuad”}); 

            return false; 

          });

        });

    </script>

The plugin finally worked!

Any ideas?

10:02 pm
November 29, 2008


Ade

Admin

posts 1140

11

The good news is that we now what what is causing the conflict.

Try putting back the code I gave you but this time REMOVE the second occurence of:

var $j = jQuery.noConflict();

If that doesn't work, I have some more ideas…

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

10:40 pm
November 29, 2008


fluiddynamic

Member

posts 11

12

This is the code I have now:

<script type=”text/javascript”>

        var $j = jQuery.noConflict();

        $j(document).ready(function() {

          $j('#subscribe').hide();

          $j(”#topbar-subscribe a”).toggle(

            function () { $j(”#subscribe”).animate({ height: “show”, duration: 700, easing:”easeInQuad”}); 

            return false; 

          },

            function () { $j(”#subscribe”).animate({ height: “hide”, duration: 700, easing:”easeOutQuad”}); 

            return false; 

          });

        });

    </script>

    <script type=”text/javascript”>

        

        $j(document).ready(function() {

          $j('#share').hide();

          $j(”#topbar-share a”).toggle(

            function () { $j(”#share”).animate({ height: “show”, duration: 700, easing:”easeInQuad”}); 

            return false; 

          },

            function () { $j(”#share”).animate({ height: “hide”, duration: 700, easing:”easeOutQuad”}); 

            return false; 

          });

        });

    </script>

Still no dice…

10:54 pm
November 29, 2008


Ade

Admin

posts 1140

13

Try this instead:

<script type="text/javascript">
        jQuery.noConflict();
        jQuery(document).ready(function($){
          $('#subscribe').hide();
          $("#topbar-subscribe a").toggle(
            function () { $("#subscribe").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $("#subscribe").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>
    <script type="text/javascript">
        jQuery.noConflict();
        jQuery(document).ready(function($){
          $('#share').hide();
          $("#topbar-share a").toggle(
            function () { $("#share").animate({ height: "show", duration: 700, easing:"easeInQuad"});
            return false;
          },
            function () { $("#share").animate({ height: "hide", duration: 700, easing:"easeOutQuad"});
            return false;
          });
        });
    </script>

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

11:02 pm
November 29, 2008


fluiddynamic

Member

posts 11

14

Nope… sorry

11:31 pm
November 29, 2008


Ade

Admin

posts 1140

15

Well, I'm a bit stumped then. When you remove the script block completely the plugin works fine, so we've definitely found the source of the conflict.

The code I've been giving you is designed to prevent jQuery (used in your theme) conflicting with mootools (used in my plugin).  One last try…

Remove the two instances of this in the last code I gave you:

jQuery.noConflict();

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

12:25 am
November 30, 2008


fluiddynamic

Member

posts 11

16

Unfortunately that didn't work either… Would the new version of your plugin get round this, cos if so I am a willing beta tester!

Also, I'm not a big javascript/php person, so what does the footer code actually?

Thanks!

9:07 am
November 30, 2008


Ade

Admin

posts 1140

17

Dean,

I'm really baffled now. One of those solutions should have worked, but it's a complex WP theme and there could be something else going on which I haven't seen. Just to confirm – the plugin definitely works when you remove that code?

In answer to what does the footer script do, it seems to be part of the built-in plugins that the theme author has incorporated into his theme. Actually, I think it would be a good idea for you to contact him and refer him to this thread. I'm more of a PHP person than javascript – so I may have missed something that he can fix. Basically I would just tell him that you have this conflict which is caused by his footer script, and see what he says.

Sure, you're welcome to try out the new version. But from a javascript point of view it's no different from the current version and I think you'll have the same problem, unfortunately. If you're still interested I'll send you a copy via your registered email address.

Ade.

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

12:35 am
December 12, 2008


fluiddynamic

Member

posts 11

18

I forgot to say thanks for all your help!

7:53 pm
December 12, 2008


Ade

Admin

posts 1140

19

No problem! I'm just sorry we didn't manage to find a fix. Did you get any feedback from the theme author?

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

1:56 am
February 27, 2009


fluiddynamic

Member

posts 11

20

Hi SGR,

The theme creator is working on a new version of the theme; I'm waiting for his feedback

In the meantime Jonathan Schemoul has created a version of SmoothGallery that apparently has compatiblity with jQuery…Is there any chance you can incorporate this into your plugin?