MyBBHacks.com Plugins for  MyBB

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Previous Image | Next Image
#1
HI,

Is it possible to have the labels for 'Previous Image | Next Image' to appear ABOVE a picture as well as below.
Sometimes the user has to scroll to see the links.

Also, not sure if its just my setup (although I dont tend to edit themes etc.), but there seems to be some white space between the links for Slideshow | UnApprove | Edit' etc and the 'Add Picture | Search'

Screenshot attached.
Can it be moved more in line?

   




Hope that makes sense.
Thanks
Reply
#2
We can copy the code above the picture as well as an option just requires an edit to ezgallery.php

Second that is the default how the links will appear since they are part of the picture itself. Then the main top links are the main gallery/navigation links.
Like what I do? Support me at https://www.patreon.com/vbgamer45/
Reply
#3
OK thanks.
Woudl you be able to show me where I can add the code so the links appear above as well.
Ive had a look through and not sure where I am looking.

Thanks
Reply
#4
Around Line 4729

Find
Code:
        // Show the title of the picture
        if ($gallerySettings['gallery_set_img_title'])
            echo '
            <tr class="thead">
                <td align="center">', $context['gallery_pic']['title'], '</td>
            </tr>';


Add after
Code:
        // Show the previous and next links
        if ($gallerySettings['gallery_set_img_prevnext'])
        {
            echo '
            <tr class="trow2">
            <td align="center"><b>';
            $showSpacer = false;
            if ($previousImage != $context['gallery_pic']['ID_PICTURE'])
            {
                $showSpacer = true;
                echo '<a href="' . $mybb->settings['bburl'] . '/ezgallery.php?sa=prev&id=', $context['gallery_pic']['ID_PICTURE'], '">', $lang->gallery_text_prev, '</a>';
            }    
            
            if ($nextImage != $context['gallery_pic']['ID_PICTURE'])
            {
                if ($showSpacer == true)
                    echo ' | ';
                echo '<a href="' . $mybb->settings['bburl'] . '/ezgallery.php?sa=next&id=', $context['gallery_pic']['ID_PICTURE'], '">', $lang->gallery_text_next, '</a>';
                
            }    
                echo '</b>
            </td>
            </tr>';
        }
Like what I do? Support me at https://www.patreon.com/vbgamer45/
Reply
#5
Sir,
You are an absolute star - much appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)