WordPress.org

Ready to get started?Download WordPress

Forums

WP Slimstat
[resolved] Trouble with image plugins Fancybox, Colorbox, etc (14 posts)

  1. Zeb
    Member
    Posted 3 years ago #

    Hi, I really like your plugin but I've lost other features by using this. Is there any possibility for you to describe little more about solving script issues with Fancybox, Colorbox, etc. I don't understand how to implement your suggested changes in my theme though there are hundreds of links using image features.

    Of course, there must be an easy way which I haven't figured out yet. Please describe more regarding this issue.

  2. camu
    Member
    Plugin Author

    Posted 3 years ago #

    Reading the FAQ may definitely help :)

    http://wordpress.org/extend/plugins/wp-slimstat/faq/

    Cheers
    Camu

  3. Zeb
    Member
    Posted 3 years ago #

    Unfortunately, not. That's still a big question for me!
    I don't have a clue where to change that. Does that mean I have to get in to each post and page to modify all links or this is to be done in your plugin? Would you please describe a practical case in an example?

    Is it possible to solve this issue in a fix, to be solved by the plugin automatically there the user can specify if another conflicting plugin is present or not?

    Thanks

  4. camu
    Member
    Plugin Author

    Posted 3 years ago #

    Zeb,

    as I wrote in the FAQs, Javascript unfortunately doesn't allow me to detect if another plugin is 'managing' a link, and thus treat it differently. If this is a problem, you may want to disable Javascript tracking in the options. You will lose the ability to collect information about screen resolutions and other browser-related data.

    Camu

  5. Zeb
    Member
    Posted 3 years ago #

    Thanks for your fast reply :)
    Can this issue be solved if there is an option provided in the plugins admin panel that allows the admin to select through a checkbox if there is a conflicting plugin, and if there is, allow the plugin handled the links in another way?

  6. camu
    Member
    Plugin Author

    Posted 3 years ago #

    Zeb,

    that's not possible, because not ALL the links in your site are handled by Colorbox, FancyBox, etc. Having such an option would confuse WP SlimStat, which would treat ALL the links as if they were associated to Colorbox. Unless these links are already 'marked' someway (with a class, a rel=something, etc). In this latter case, you may use a SQL query to add the 'noslimstat' code to all of them automatically.

    Camu

  7. Zeb
    Member
    Posted 3 years ago #

    Okay,
    It seems that it's getting complicated though I'm not so much familiar with SQL queries. Of course, I know that there is an input for queries but do not have any idea what to write there.

    Another question remains also considering future images and if I have to do that often.
    hmmm...! Wondering what can I do?

  8. camu
    Member
    Plugin Author

    Posted 3 years ago #

    From now on, just add the code to your links as per FAQ's directions.

    class='noslimstat'

    Camu

  9. Zeb
    Member
    Posted 3 years ago #

    Sorry if I ask this stupid question.
    If any user sets up a gallery with several images, do you mean that I have to get into the gallery, find each image or group of images and add class='noslimstat' to that post/page? Or, maybe, there is somewhere in the template or wp files I shoud do that.

    Thanks for your help!

  10. Zeb
    Member
    Posted 3 years ago #

    By the way, I've just got an idea.

    We know that each image is a file type, indicated by .jpg .png etc. Even if there is a link, the file type is indicated in the end of the link by .jpg .png etc.

    Is there any chance that the plugin could recognize these file types and correct the problem through class='noslimstat' , exclude them or any other way? Or maybe by filtering some addresses like youtube.com, etc.?

  11. camu
    Member
    Plugin Author

    Posted 3 years ago #

    No, that would not work, because .jpg & co is not the only thing you can handle with ColorBox, Lightbox etc. You can include swf, html pages, and a bunch of other media types.

  12. Zeb
    Member
    Posted 3 years ago #

    That was unfortunate!

    By the way, you talked about

    In this latter case, you may use a SQL query to add the 'noslimstat' code to all of them automatically.

    Do you have any suggestion what should I write in the SQL query to make that work? and, do I need to do that often regularly?

    I appreciate your feedback.

  13. camu
    Member
    Plugin Author

    Posted 3 years ago #

    Zeb,

    the SQL query depends on the library you're using (colorbox, lightbox, etc) and how it treats or recognizes the links you want to associate to it. You will need to do a search and replace

    http://www.mediacollege.com/computer/database/mysql/find-replace.html

    to add the class="noslimstat" to those links.

    Camu

  14. Zeb
    Member
    Posted 3 years ago #

    Thanks Camu,

    I appreciate your reply. I'll try that.

    Thanks again

    Zeb

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic