WordPress.org

Forums

Eazyest Gallery
[resolved] Attachment click settings being ignored (10 posts)

  1. echoca
    Member
    Posted 2 years ago #

    Thank you like the plugin thus far.

    If I set the action to show next image it shows the full image (worked before rc7) also when set to do nothing it links to the full image.

    Also I am getting extra title text above the image and the attachment page shows the large image plus a thumbnail (medium really but) above the description text?

    I am using the 2012 templates but they are modified slightly form my Genesis theme. What I see is..

    h1 title
    next prev links
    breadcrumb
    title text again (plain text)
    large image
    caption
    medium sized image (the same image)
    description text
    exif (if on)
    post meta

    This is ok but if I have a portrait image the extra title and caption sit on top of each other as the image is centered.

    I have no idea why the_content is showing me the extra smaller image.
    Maybe its my theme but I can't see how.

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

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    This is a known issue. The templates have been fixed in trunk.

  3. echoca
    Member
    Posted 2 years ago #

    Sorry I thought I read through most posts here.

    Seems the same with this version 0.1.0-RC-8-241?

  4. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    You have to copy the new eazyest-image.php and change that to fit your theme.

  5. echoca
    Member
    Posted 2 years ago #

    I did changed everything in all templates to be sure (functions too). I keep digging around...

  6. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    I'll test it on my server BBL

  7. echoca
    Member
    Posted 2 years ago #

    If the setting is theme default the next prev links work (clicking the image). But if set to do nothing it links to full image.

    I got rid of the extra image in the_content(); doing this.

    <?php $content = get_the_content();
           $postOutput = preg_replace('/<img[^>]+./','', $content);
           echo $postOutput;
         //the_content(); ?>

    But I can not find where the text above the image (on attachment page) is coming from. It is the title text and is output in the html like this.

    <div class="entry-attachment">
    <div class="attachment">
    TITLE TEXT HERE??
    <a rel="attachment" title="" href=".../gallery/fall/imgp0183/">

    ...etc

    How can I stop that text output?

  8. echoca
    Member
    Posted 2 years ago #

    So I changed ' . the_title_attribute() . ' to this ' .the_title_attribute('echo=0') . ' from the below and that got rid of the extra text. Also FYI this bit did not output the title to the html href. But now it does.

    $next_link = ezg_add_popup( '<a href="' . $next_attachment_url . '" title="' . the_title_attribute() . '" rel="attachment">', $post->ID ) . wp_get_attachment_image( $post->ID, $attachment_size ) . '</a>';

    What does ezg_add_popup do? I do not get any popup or info? Is it just the link function.

  9. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    The ezg_add_popup processes the link and adds popup markup if needed.

  10. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 2 years ago #

    Changed the code, thank you for looking into this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Eazyest Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.