About this topic

  • Posted by clichem 2 years ago. There are 9 posts. The latest reply is from byron.
  • This topic is resolved
  1. Hi everyone and Byron,

    uploading from the post doesn't work. I've deleted and reinstalled the plugin many times.

    Link to the page of the problem
    <b>Will be prompted for user/password as it is in a dev mode.</b> xxxx

    The thickbox popup appears when I click on the "Add photos" link but when I browse for the image and I click "submit" it seems like it's loading something but all of a sudden the thickbox popup disappears without the "image will be moderated" message.

    Then in the admin, under "Photo Manager", no images are shown, as obviously it didn't work.

    I modified CHMODs:
    /uploads/ 777
    /uploads/bwbps/ 777
    /uploads/bwbps/docs/ 777
    /uploads/bwbps/thumbs/ 777

    My host is Media Temple.
    Latest version of WP (2.9.2) and your plugin (0.5.07)

    I did configure everything to be open (Anybody/Active)
    I did uncheck the using default Media library

    Byron if it can help I can provide a user/pass to my WP admin so you could check things out. I could reach you by email for that.

    Thanks for helping out (your plugin seems great by the way - wish I could make it work on my site!!) :)

    Maxime

  2. Hi Maxime,

    The problem is that the theme is loading jQuery improperly. It should be using wp_enqueue_script to load it to avoid duplicate loads which break other plugins.

    If you do a view source on your page, you can do a search and see the offending line:
    <script type="text/javascript" src="http://festivaldestravailleurs.ca.s46092.gridserver.com/wp-content/themes/rttheme6/js/jquery-1.3.2.min.js"></script>

    Here's a little article that discusses the problem and solution: http://www.whypad.com/posts/wordpress-add-scripts-to-the-pages-you-want/749/

    It is the most common problem I see with people using PhotoSmash.

    Hope that helps,
    Byron

  3. Hi Byron, thanks a lot for your answer!

    I understand what you mean concerning the conflicts, however the trick to resolve it seems to be past my skills level (I read both Whypad and Codex articles). Example, if I understood correctly, what values do I need to change in this code (taken from your whypad page) for the PhotoSmash specific plugin to work :

    <?php
    add_action('wp_print_scripts', 'enqueueMyScripts');
    
    function enqueueMyScripts(){
      //To load for any page/post that's not Admin
       if( !is_admin() ){
            wp_enqueue_script( 'myscript', get_bloginfo('template_url') . '/js/myscript.js');
       }
    }
    ?>

    Thanks for your time and sorry you have to help an intermediate skills guy!! I really appreciate that you are taking time with this!

    Maxime

  4. Hi there, everyone and Byron,

    just to let you know that I haven't had the time to try again concerning this issue. I see I haven't got any reply to my last post so I assume it must be real easy.

    Will try stuff soon and keep you guys posted.

  5. Hi Maxime,

    Sorry for the delayed response. It might take a little bit of digging around. I'll be glad to take a look at the code and fix if I can. You can email me through the contact: http://smashly.net/contact/

    Cheers,
    Byron

  6. Hey Clickhem, try going to your header.php, make a backup of it (copy and pasting it on a notepad is okay), and find that: <script type="text/javascript" src="http://festivaldestravailleurs.ca.s46092.gridserver.com/wp-content/themes/rttheme6/js/jquery-1.3.2.min.js"></script>

    now add on the beginning /* that and on the end */ that, it will look like that:

    /*<script type="text/javascript" src="http://festivaldestravailleurs.ca.s46092.gridserver.com/wp-content/themes/rttheme6/js/jquery-1.3.2.min.js"></script>*/

    save it and check if Photosmash is working. Now what ever is the answer, change back the changes that you just did, save it and let me know the answer, if it worked or not...

  7. Hey jonh, thanks for replying!

    I've tried commenting the template's jquery line with /* and */ but that didn't work, I had to use the standard <!-- --> html commenting brackets.

    When I used the standard commenting brackets 2 things happened:
    1) The template's jQuery cycle thing stopped working on the homepage.
    2) Photosmash's link to add photos led to a 404 error.

    Maybe I did something wrong? Anyway thanks for helping.

    Maxime

  8. Hey Byron,

    thanks for this help, so appreciated.

    I said I would try stuff but the more I look at the bit of code to add the more I don't understand how to use it. I think I will contact you directly, like you suggested, for direct coding, if of course you can.

    Big thanks,
    Maxime

  9. That works for me.
    Cheers,
    Byron

RSS feed for this topic