News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Gallery

Started by SMFHacks.com Team, September 16, 2006, 07:13:02 PM

Previous topic - Next topic

Sir Osis of Liver


$txt['gallery_text_returngallery'] = 'Return to Gallery';


It's in Gallery.english.php & Gallery.english-utf8.php, displays correctly.

Triggered by this in Gallery2.template.php -


    // Link back to the gallery index
    echo '<div align="center"><a href="', $scripturl, '?action=gallery">' . $txt['gallery_text_returngallery'] . '</a></div><br />';



Backtrace -


Type of error
General
Error message
8: Trying to access array offset on value of type null
File
/home/thekrash/domains/thekrashsite.com/public_html/clone/Themes/default/Gallery2.template.php
Line
1257
URL of page causing the error
https://www.thekrashsite.com/clone/index.php?action=gallery;sa=view;pic=1201
Backtrace information

    #0: smf_error_handler()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/clone/Themes/default/Gallery2.template.php on line 1257
    #1: template_view_picture()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/clone/Sources/Load.php on line 2778
    #2: loadSubTemplate()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/clone/Sources/Subs.php on line 4162
    #3: obExit()
    Called from /home/thekrash/domains/thekrashsite.com/public_html/clone/index.php on line 187

When in Emor, do as the Snamors.
                              - D. Lister

vbgamer45

If it's defined and also check thatyou don't have extra gallery.lagnague.php file in your custom themes langauge folder


Otherwise i would just compare with the latest version.  Or you can remove that line of code or hardcode language string.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

8.0.1
!Minor fix styling for SMF 2.0.x submit buttons now use class="button_submit"
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

So we finally got our forum transferred to the new host and upgraded to 2.1.4, and it all seem to be working great, pretty much.  I see only two issues:

1. I'm seeing repeated admin errors, from when I add or browse an image in the image gallery. See attached image below.

I searched for the error in this forum but didn't see anything related except to upgrade to the latest version but we already are at 2.1.4 and we installed the latest Gallery mod (v. 8.0.1).  How do we repair this issue in 2.1.4/8.0.1 ?

2. When I click on an image in a post (linked to the image gallery) the image doesn't re-display at full size.

In other words, in 2.0.17 the image displayed at about 50%, but if I clicked on an "in line" image, the image expanded to display a 1:1 pixel mapping.  Clicking again on the image made it go back to the smaller display size.

How do I get that click to display full size image feature back in 2.1?

vbgamer45

2. Can you explain more? That might an SMF setting.   So are you copying an image url to a post? Then clicking on it to show a larger image?
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

Quote from: vbgamer45 on October 11, 2024, 11:38:32 AM2. Can you explain more? That might an SMF setting.   So are you copying an image url to a post? Then clicking on it to show a larger image?

So it's two separate problems I think.

Now that we're in SMF 2.1.4, I'm seeing these "Undefined array key "show bbc"" errors in the admin errors. I'm just suspecting that they occur when I add an image to the image gallery because that what the error message show, i.e., "action=gallery;sa=add".

A second (separate) issue is that *all* the in-line images in the forum posts no longer expand to full size when clicked on.  They do slightly change size but just a tiny amount.

In 2.0.17 when one clicked on an image in a post it would re-display full size. And when clicked again the image would return to the original display size of ~50% size.

Just wondering how to get that click image behavior back?

vbgamer45

The first one show_bbc can add a fix update.

The second sounds either an SMF issue or a theme issue.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

vbgamer45

@probeman the show_bbc is an odd issue as well, shouldn't occur.
Do you have this code at line 41 on sources/gallery2.php

    // Load the main template file
    if (function_exists("set_tld_regex"))
    {
        $context['gallery21beta'] = true;
        $context['show_bbc'] = 1;
    }
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

#4348
Quote from: vbgamer45 on October 11, 2024, 12:35:55 PM@probeman the show_bbc is an odd issue as well, shouldn't occur.
Do you have this code at line 41 on sources/gallery2.php

    // Load the main template file
    if (function_exists("set_tld_regex"))
    {
        $context['gallery21beta'] = true;
        $context['show_bbc'] = 1;
    }

I think my tech may have installed an older version of the gallery mod.  Here is what is in that region of the gallery2.php file:

    $currentVersion = '5.5';

    // Load the main template file
    if (isset($modSettings['gallery_smfversion']) && $modSettings['gallery_smfversion'] == '2.1beta')
      loadtemplate('Gallery2.1');
    else
        loadtemplate('Gallery2');

    // Load the language files
    if (loadlanguage('Gallery') == false)
        loadLanguage('Gallery','english');

    // Setup Gallery Path and Url
    if (empty($modSettings['gallery_url']))
        $modSettings['gallery_url'] = $boardurl . '/gallery/';

    if (empty($modSettings['gallery_path']))
        $modSettings['gallery_path'] = $boarddir . '/gallery/';

    if (empty($modSettings['gallery_set_images_per_page']))
        $modSettings['gallery_set_images_per_page'] = 20;

    if (empty($modSettings['gallery_thumb_height']))
        $modSettings['gallery_thumb_height'] = 78;

    if (empty($modSettings['gallery_thumb_width']))
        $modSettings['gallery_thumb_width'] = 120;

Please use code tags when posting code. ~ Steve

vbgamer45

Yeah that's why. Install the latest version . If possible uninstall old version first then install latest.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

Quote from: vbgamer45 on October 11, 2024, 01:11:02 PMYeah that's why. Install the latest version . If possible uninstall old version first then install latest.

Cool, thanks.  Maybe that will fix the click on image behavior too?

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

Quote from: probeman on October 11, 2024, 01:14:38 PM
Quote from: vbgamer45 on October 11, 2024, 01:11:02 PMYeah that's why. Install the latest version . If possible uninstall old version first then install latest.

Cool, thanks.  Maybe that will fix the click on image behavior too?

The download is here?

https://custom.simplemachines.org/index.php?mod=473

vbgamer45

Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

Quote from: probeman on October 11, 2024, 01:20:56 PM
Quote from: probeman on October 11, 2024, 01:14:38 PM
Quote from: vbgamer45 on October 11, 2024, 01:11:02 PMYeah that's why. Install the latest version . If possible uninstall old version first then install latest.

Cool, thanks.  Maybe that will fix the click on image behavior too?

The download is here?

https://custom.simplemachines.org/index.php?mod=473
Quote from: vbgamer45 on October 11, 2024, 02:09:16 PMYes it is.

I'm waiting for my Tech to install v. 8.0.1 tomorrow (he doesn't work all weekend like me!), but in the meantime maybe you could offer some advice for us on this image re-sizing issue:

https://www.simplemachines.org/community/index.php?topic=589968.msg4181138#msg4181138

On our old host forum hosting the large images displayed at around 50% size in SMF v. 2.0.17, but when clicked on they re-displayed to full size with a scroll control along the bottom of the post if necessary.

I'm not seeing this behavior in our new forum (SMF 2.1.4) in the image that was posted in the post linked above.

Any idea why?

vbgamer45

I don't know first time I seen that.
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

probeman

Quote from: vbgamer45 on October 13, 2024, 12:52:07 PMI don't know first time I seen that.

Me too!    :D

Well, the tech will update Gallery Lite tomorrow from 5.5 to 8.0.1 and we'll see if that makes any difference.

BugginIn

Hello everyone...

Question/point me in the right place if possible...

Have a premium theme, mod works perfect, displays perfect except one spot... It has the "Add Comment" as white letters on the white background. See image gif attached.

Where in the default theme folder/gallery would I need to change to make it Orange on white background or even black on the white background?

Has anyone else seen this one outlier on a custom theme?



Thank you...

@rjen

It would be in the .css file, but without knowing what the theme is or having access to the actual site there is no way to tell what you need to change exactly.

Please share a link to your forum, and specify the theme
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Diego Andrés

I replied in a private topic with a fix for his theme.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: