Forums

[resolved] [Plugin: Slideshow Gallery] Thumbs are not displaying (6 posts)

  1. booyaka97
    Member
    Posted 1 year ago #

    Hello,
    thanks for this plugin which is really nice.
    However, I still have a problem concerning thumbs: they are not displayed because the plugin tries to load "picturename-thumb.jpg", and not "picturename-300x122.jpg", or "picturename-150x150.jpg",which are the names generated.

    How can I fix this? Does anyone had the same issue?
    Thanks for helping.

    http://wordpress.org/extend/plugins/slideshow-gallery/

  2. nosferatuscoffin
    Member
    Posted 1 year ago #

    What version of WP are you running? If you are running 2.9.x, you can just import the images using Add New Media, and using the new image editor, create the thumbs yourself. After that, just attach the images to a page, using the Attach link under Media.

    Then, in the page/post just add the code [slideshow $post_id=postnumber]
    where postnumber is number of the page/post you are adding the gallery to.

  3. booyaka97
    Member
    Posted 1 year ago #

    thank you for your help.
    Actually I can make the thumbs by myself but there is still some things I dont understand:
    - The thumnails generated by wordpress contain the dimensions inside the filename: filename-300x250.jpg, for example. But how can I tell the plugin to load this file, instead of the filename-thumb.jpg ?
    - Secondly, when I click on "attach" under the media section, the box doesn't list any existing page or post... I'm using WP 2.9.
    Thanks!

  4. nosferatuscoffin
    Member
    Posted 1 year ago #

    How are you generating the thumbs? Via Media or through the plugin's own Manage Slides item? They generate thumbs differently.

    Also, do you have an example URL that I could look at?

  5. booyaka97
    Member
    Posted 1 year ago #

    Hello,
    this is how I proceed:
    - I upload a new picture via "media" (by doing this, the image is uploaded, and 2 thumbs are generated; those thumbs are respectively named "name-150x150" and "name-300x207" + extension.)
    - then I copy the url of the saved file
    - I go to the plugin "manage slides" button
    - then I add a new slide by copying the url of the file I just uploaded.

    I'm still stuck here : I have enabled the "show thumbnails" option. The big pictures are showing, but not the thumbnails, because the thumbnails are looking for "name-thumbs.jpg" and not "name-150x150.jpg" !
    it's just a matter of name.

    You can check it here :
    http://www.kotesi.com/

  6. booyaka97
    Member
    Posted 1 year ago #

    Problem fixed:
    I have changed the code inside the gallery.php page (views/default).
    At line 30, change the whole code block until <?php endif ?> to:

    <?php $image = basename($slide -> image_url); ?>
    <?php if ($slide -> uselink == "Y" && !empty($slide -> link)) : ?>
    <a href="<?php echo $this -> Html -> image_url($image); ?>" title="<?php echo $slide -> title; ?>" class="thickbox"><img src="<?php echo $this -> Html -> image_url($this -> Html -> thumbname($image, "150x150")); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" /></a>
    <?php else : ?>
    <img style="height:75px;" src="<?php echo $this -> Html -> image_url($this -> Html -> thumbname($image, "150x150")); ?>" alt="<?php echo $this -> Html -> sanitize($slide -> title); ?>" />
    <?php endif; ?>

    In my case, the Media tool generates 150x150 thumbnails. Just check it under the option while importing the file and change the "150x150" option if needed.

Topic Closed

This topic has been closed to new replies.

About this Topic