WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: File Gallery] Simple template not work.. (15 posts)

  1. dados
    Member
    Posted 3 years ago #

    Hi,

    I try to use same template like is on this example site http://skyphe.org/code/wordpress/file-gallery/file-gallery-examples/#comment-21672 "Simple template" and I can not get to this work.. I do it all I need, link class to thickbox, template is simple, my code is [gallery link="file" linkclass="thickbox" orderby="rand" template="simple"] and its not work.. Can you please tell me why? Did I need to install some other plugin also.. I have only your plugin, File Gallery, installed?

  2. dados
    Member
    Posted 3 years ago #

    I forget to tell I use wordpress 3.1.2

  3. Aesqe
    Member
    Posted 3 years ago #

    hi dados :)

    when you say "it doesn't work", what do you exactly mean?

    does the gallery show up and the images won't open in thickbox, or does the gallery not show up at all?

  4. dados
    Member
    Posted 3 years ago #

    Its show images but its not want to show this big one, and when I click on small images, its need to show on position where is big image but I get the link to image.. And nothing else.. I want to gallery like is your "simple template" with same effect..

  5. richgilberto
    Member
    Posted 3 years ago #

    I have the same issue. Rather than using the "Simple" template it seems to be just loading the standard wordpress gallery template. I'm using WordPress 3.2 Beta 2 with Twenty Eleven theme.

  6. dados
    Member
    Posted 3 years ago #

    Any idea why is this happen?

  7. Inextricable
    Member
    Posted 2 years ago #

    Same here. Will keep searching the forum for answers.

  8. Aesqe
    Member
    Posted 2 years ago #

    @everyone - this sounds like the javascript part of the simple template isn't loading for some reason.

    Could anyone please post a link to an online version of a non-working example?

    Thanks!

  9. Inextricable
    Member
    Posted 2 years ago #

    I got it to work by deactivating it and reactivating it. (the plugin) ... I think I posted that solution that worked for me in some other thread.

  10. Aesqe
    Member
    Posted 2 years ago #

    Anyone experiencing trouble with the Simple template, please download File Gallery 1.7-RC12 from here and tell me if it works alright now.

    Thanks! :)

  11. electrolund
    Member
    Posted 2 years ago #

    Aesqe, I too am in this list. :) I'm working on debugging it now.

    Disabling and re-enabling FG didn't help for me. Curiously, switching to the Twenty Eleven theme didn't help either. For what it's worth, I don't have Thickbox plugin installed. But I believe WordPress core has thickbox included now, correct? Regardless, the javascript should be loading on its own.

    I double-checked that the js file is in the FG Simple directory.

    Here is a sample FG page, where a Simple implementation exists:
    http://wp.me/p1uh1E-Sn

  12. electrolund
    Member
    Posted 2 years ago #

    Aesqe, I have some more information for you. I disabled all plugins except for FG. I switched to Twenty Ten theme. The Simple gallery still isn't loading the template.

    My error console reports the following two warnings:

    Warning: Use of getAttributeNode() is deprecated. Use getAttribute() instead.
    Source File: http://www.electrolund.com/2012/03/test-post-for-gallery-stuff/
    Warning: Use of attributes' specified attribute is deprecated. It always returns true.
    Source File: http://www.electrolund.com/2012/03/test-post-for-gallery-stuff/
  13. electrolund
    Member
    Posted 2 years ago #

    I have an update on this. I checked my outputted source and saw that the jquery file (gallery.js) was being loaded. I tried disabling plugins, changing themes.

    Then I got serious. I put File Gallery on a local install of WordPress, used the stock Twenty Ten theme, zero plugins (except File Galley of course). The latest release of the plugin's Simple template was not loading the jquery file correctly I guess, because Default theme was still being used.

    According to the documentation here, the Simple theme was available starting with version 1.6.4. So I downloaded every version of the plugin since 1.6.4.

    I next replaced my Simple template folder with the deprecated versions from the top down to 1.6.4.

    Only 1.6.4 shows the Simple template correctly. Most others show the Default template, except for version 1.6.5.4, which shows a partial Simple.

    I don't know if this methodology is really sound or not, since the core of my File Gallery plugin is still at 1.7.4.1. Nevertheless, 1.6.4 Simple works as advertised!

    Aesqe, any ideas why that is?

  14. Aesqe
    Member
    Posted 2 years ago #

    @electrolund: if your gallery output looks like the "default" template and it's supposed to look like the "simple" template, then it's one or both of these things:

    1.) javascript error or conflict with something else included on your page
    2.) no linkclass attribute in gallery shortcode *

    * I'll remove that check in next version as it seems to confuse a lot of people :)

  15. electrolund
    Member
    Posted 2 years ago #

    Ah, yes, it was indeed #2 that was my problem. It wasn't directly obvious to me that the linkclass was a requirement for the Simple template to load.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic