• Welcome to Simple Machines Community Forum. Please login or sign up.
September 20, 2021, 09:46:19 AM

News:

Check out the SMF Function DB!


SMF Gallery

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

Previous topic - Next topic

vbgamer45

Yeah it was fixed in a later version. For existing ones would require an SQL query to find and replace. That change just fixes new ones going forward.
Community Suite for SMF - Take your forum to the next level built for 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

Mike66

Quote from: vbgamer45 on July 27, 2021, 11:30:39 AM
Yeah it was fixed in a later version. For existing ones would require an SQL query to find and replace. That change just fixes new ones going forward.

That's OK, thanks once again for your help.

Cheers
Mike

Mike66

August 26, 2021, 05:33:54 AM #4102 Last Edit: August 26, 2021, 05:45:18 AM by Mike66
I've got the 'title' displaying above thumbnails and 'by' displaying below thumbnails, does anybody know how/where I can change this so that they both display above thumbnails?

So I'm looking for the order to be set as:
Title
By
Thumbnail

PS: These are the only two items that I have ticked to display.

vbgamer45

For gallery pro it is in sources/subs-gallery2.php
Find the function ShowImageItem
Community Suite for SMF - Take your forum to the next level built for 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

Mike66

Quote from: vbgamer45 on August 26, 2021, 09:57:27 AMFor gallery pro it is in sources/subs-gallery2.php
Find the function ShowImageItem

Found it thanks, and I think I've now managed to set it up as I wanted.

Cheers
Mike

vbgamer45

Glad you were able to get modified to suit your needs!
Community Suite for SMF - Take your forum to the next level built for 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

Update!
7.0
+Top add picture button now detects if inside a category and will have that category preselected when adding a picture
!Fix undefined show_bbc in SMF 2.1
!Fixed who is viewing picture to handle ;pic too instead of just ;id=
!Raised memory limits when adding/editing pictures.
!Minor typo changes
Community Suite for SMF - Take your forum to the next level built for 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

Shambles

Hi, and thanks for the update. Can I update from v5.5.1 (on 2.0.18) by simply overwriting with the new scripts?

Fisch.666

Thanks for the update to version 7.0. Noticed that the files like "smfgallery.xml", "smfgallery2.xml" and "smfgallerybeta21.xml" still contains the following 6.1 related string:

$txt['smfgallery_version'] = '6.1 Lite';

vbgamer45

Quote from: Shambles on September 05, 2021, 08:29:42 AMHi, and thanks for the update. Can I update from v5.5.1 (on 2.0.18) by simply overwriting with the new scripts?
Yes you can.
Quote from: Fisch.666 on September 05, 2021, 09:01:43 AMThanks for the update to version 7.0. Noticed that the files like "smfgallery.xml", "smfgallery2.xml" and "smfgallerybeta21.xml" still contains the following 6.1 related string:

Noted. I don't think that string is actually used anywhere though!
$txt['smfgallery_version'] = '6.1 Lite';
Community Suite for SMF - Take your forum to the next level built for 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

Fisch.666

September 05, 2021, 09:16:47 AM #4110 Last Edit: September 05, 2021, 09:38:55 AM by Fisch.666
Looks like there is also another minor problem in the smfgallery2.xml editions on $sourcedir/Admin.php:

        'layout' => array(
            'title' => $txt['layout_controls'],       

This adds two tabs after the "$txt['layout_controls']," which are normally not there and (at least for me) are causing a problem with the "Simple Audio Video Embedder" modification doing an own edit in this part:

Basically the "Simple Audio Video Embedder" mod is also adding a few tabs which are also not there and if one mod is uninstalled but the other is kept there are often uninstall failures.

Shambles

All looks fine here, thanks.

I did notice that occasionally a spider reports




So, as before in Gallery2.php, I made the following change:

Code (find) Select
// Checked if they are allowed to view an unapproved picture.
if ($row['approved'] == 0 && $id_member != $row['id_member'])

Code (replace) Select
// Checked if they are allowed to view an unapproved picture.
if ((isset($row['approved']) && $row['approved'] == 0) && $id_member != $row['id_member'])

vbgamer45

7.0a released
SMF 2.0.x moved to hooks for edits to fix Fisch.666 issue. Requires uninstall of old version then install new.
Fixed array offset issue in 7.4 Thanks Shambles for the report.
Community Suite for SMF - Take your forum to the next level built for 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

Fisch.666

Thank you for this quick update. A short test showed that the uninstall of SMF Gallery and Simple Audio Video Embedder now works independent from each other and doesn't show any additional uninstall problems if one is kept  ;D 

Similar to the Simple Audio Video Embedder .xml install files there are still a few trailing / unnecessary tabs and/or spaces included in the .xml install files for SMF Gallery that doesn't look so important.

njtweb

Hello, I installed today and my photos are squeezed. Is there any way to set default settings so the image fits correctly on my site?

youthhockeyinfo.com/index.php?action=gallery;sa=view;pic=10
Photo sizes
Height: 1365 Width: 2048

vbgamer45

Not in the light version of the mod. In the pro version I have a medium sized optin and resizing based on aspect ratio
Community Suite for SMF - Take your forum to the next level built for 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

njtweb

Quote from: vbgamer45 on September 05, 2021, 06:16:27 PMNot in the light version of the mod. In the pro version I have a medium sized optin and resizing based on aspect ratio
Ok, I will buy it tomorrow.

njtweb

Installed, now the medium photo looks fine but when clicked it's all wacky

vbgamer45

Under gallery settings disable the highslide option or switch to another lightbox option in the dropdown menu
Community Suite for SMF - Take your forum to the next level built for 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

njtweb

Thank you, changed to lightbox and it works now. I put the copyright key into the copyright box and it's still there after saving.

Advertisement: