SMFHacks.com

SMF Gallery Pro => Support => Topic started by: Monocero on April 18, 2021, 08:53:37 am

Title: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 18, 2021, 08:53:37 am
Hi,

Currently on the forum I am using the free version of this gallery. If I uninstall this free version SMF Gallery Lite and install the Pro version, will photos be displayed?

I installed SMF Gallery Pro 9.0beta2c, but in the gallery settings is such information:

Your Version: 9.0beta2 Latest Version: 8.0.8 Your gallery version is not up to date!
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 18, 2021, 09:19:03 am
Yes photos will be displayed.

Gallery version is ok since beta is higher than older version.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 18, 2021, 09:34:52 am
Ok so I uninstalled the Lite version and just installed this latest version. The gallery folder from the previous version remained on the FTP server and all the photos are there. And new directories have appeared, eg. catimgs, css, dropzone.

Why was there a message that PrettyUrls-Filters.php was skipped during the installation?

https://i.imgur.com/zMOAuQ5.png


Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 18, 2021, 10:36:33 am
If doesn't exist not needed.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 18, 2021, 12:03:22 pm
Okay. Can you explain to me what this function is for?

(https://i.imgur.com/IsvoVuT.png)
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 18, 2021, 12:30:14 pm
When a photo is uploaded it i will also create a new post in a forum board with a thumbnail of the photo.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 19, 2021, 02:19:48 am
I just turned on the Watermark feature, but old photos in my gallery are not showing a watermark. So this watermark will display when I upload a new photo?
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 19, 2021, 07:41:53 am
Yes, only new photos
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 19, 2021, 07:53:02 am
This watermark will be visible on the photo even if I turn off this feature?
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 19, 2021, 08:02:45 am
I believe so since it adds it to the photo
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 21, 2021, 12:44:08 pm
Date is displayed twice. It's a bug?

(https://i.imgur.com/mXvZhDc.png)

I see that there is no function to move photos from main gallery to user gallery. Very bad. :-\
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 21, 2021, 12:45:21 pm
Yes but minor.

You can move pictures from main to user gallery. When edit a picture there is a link to move it.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 21, 2021, 01:09:53 pm
Okay. Ever thought to implement the ability to massively move photos from the main gallery to the user gallery? This would make it easier to organize the photos quickly. There are a lot of photos uploaded in my main gallery and it is a tedious job to move each photo individually to the user's gallery.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 21, 2021, 01:22:08 pm
Haven't thought about adding that feature..

I would suggest disabling users from adding pictures to the main gallery with permissions.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 21, 2021, 03:12:35 pm
I sorted the gallery. I deleted the main gallery, now each user has a gallery.

Regarding this minor mistake. Each drop-down list in the settings has a double setting.

(https://i.imgur.com/FLOVTMQ.png)

And unfortunately, Polish diacritics are not displayed correctly in the user's gallery description.

(https://i.imgur.com/0cCWkmK.png)
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 21, 2021, 03:34:08 pm
You would need to convert the gallery tables character set via phpmyadmin to utf8
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 22, 2021, 01:21:33 am
The forum database has encoding utf8_general_ci but I noticed that some gallery tables have utf8 encoding and some have latin1_swedish_ci - why is that?

In smf_gallery_usercat > Operations > Collation > here I set utf8_general_ci and unfortunately the diacritics are still not displayed.

I have set all the gallery tables the same.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 22, 2021, 07:23:23 am
The gallery currently does not set tables at uft8 if enabled in SMF will make that change in a future update.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 22, 2021, 09:35:10 am
Added a fix to the user category edits for other characters sets download latest version at
https://www.smfhacks.com/index.php/topic,9539.msg41642.html#msg41642
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 22, 2021, 01:35:20 pm
Unfortunately, diacritics in my language are still not correctly displayed in the user's gallery (in the gallery name and description). I uploaded this revised version and it is the same. :-\ Again in phpmyadmin in each gallery table should I set utf8_general_ci?
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 22, 2021, 01:42:01 pm
You are using SMF 2.0.x right? Or 2.1.x?

Yes each table characters set should be UTF8 but in this case it is mainly gallery_user_cat table
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 22, 2021, 02:19:28 pm
You are using SMF 2.0.x right? Or 2.1.x?

SMF 2.0.18

Yes each table characters set should be UTF8 but in this case it is mainly gallery_user_cat table

I set all gallery tables to utf8_general_ci and still get a question mark instead of the diacritical mark.

I noticed that some gallery tables have Storage Engine: InnoDB and some tables have MyISAM. Does it matter?
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 22, 2021, 02:34:30 pm
You might have to change the column to utf8 as well since this table was converted to utf8
column's in gallery_user_cat would be title and description columns
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 22, 2021, 02:54:44 pm
I will have to change the collation in this column to utf8. And in each column of the gallery table where is latin1 I have to change to utf8? I mean:

smf_gallery_catperm
smf_gallery_comment
smf_gallery_creport

I noticed that some gallery columns have latin1 instead of utf8.

(https://i.imgur.com/qBQDMi2.png)

Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on April 22, 2021, 02:58:09 pm
title,description matter in that case. Basically any places you want those characters accepted.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on April 23, 2021, 05:19:47 am
I changed all gallery columns from latin1 to utf8.

Some time ago I changed the user numbers in the smf_gallery_usercat table in user_id_cat - I just wanted to sort the users, starting with me as number 1 and unfortunately the photos in my gallery did not display, user galleries didn't have photos either. So I re-entered the correct numbers, I undone my change. Out of curiosity, I would like to know if it is safe to change the order of users in this table at all?
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on May 03, 2021, 10:11:48 am
I translate this modification into my language and want to know which file I still need to translate? First I started translating the file Gallery.english-utf8.php

I noticed that there is content in these files to translate:

smfgallery2.0.x.xml
smfgallery.xml

There is this content in the Modifications.english.php file:

Code: [Select]
// Begin SMF Gallery Text Strings
$txt['smfgallery_menu'] = 'Gallery';
$txt['smfgallery_admin'] = 'Gallery Configuration';

$txt['gallery_ftp'] = 'Batch Add';
$txt['gallery_text_catpermlist2'] = 'Category Permissions';
$txt['gallery_filespace'] = 'Space Manager';
$txt['gallery_form_approveimages'] = 'Approve Images';
$txt['gallery_form_reportimages'] = 'Reported Images';
$txt['gallery_form_approvecomments'] = 'Approve Comments';
$txt['gallery_form_managecats'] = 'Manage Categories';
$txt['gallery_text_settings'] = 'Settings';
$txt['gallery_text_videosettings'] = 'Video/Audio Settings';
$txt['gallery_txt_moderationcenter'] = 'Moderation Center';
$txt['gallery_txt_imagemoderation'] = 'Image Moderation';
$txt['gallery_txt_commentmoderation'] = 'Comment Moderation';

$txt['gallery_menu_addpic'] = 'Add Picture';
$txt['gallery_menu_addvideo'] = 'Add Video/Audio';
$txt['gallery_menu_search'] = 'Search';
$txt['gallery_menu_stats'] = 'Stats';

//Permissions
$txt['permissiongroup_smfgallery'] = 'SMF Gallery';
$txt['permissiongroup_simple_smfgallery'] = 'Use SMF Gallery';

$txt['permissionname_smfgallery_view'] = 'View SMF Gallery';
$txt['permissionhelp_smfgallery_view'] = 'Allows the user to view the Gallery';
$txt['cannot_smfgallery_view'] = 'You are not allowed to view the Gallery';

$txt['permissionname_smfgallery_add'] = 'Add Picture';
$txt['permissionhelp_smfgallery_add'] = 'Allows the user to add a picture.';
$txt['cannot_smfgallery_add'] = 'You are not allowed to add a picture.';

$txt['permissionname_smfgallery_bulk'] = 'Bulk Uploads';
$txt['permissionhelp_smfgallery_bulk'] = 'Allows the user to use the bulk upload feature.';
$txt['cannot_smfgallery_bulk'] = 'You are not allowed to bulk upload.';

$txt['permissionname_smfgallery_edit'] = 'Edit own Picture';
$txt['permissionhelp_smfgallery_edit'] = 'Allows the user to edit their own picture.';
$txt['cannot_smfgallery_edit'] = 'You are not allowed to edit that picture.';

$txt['permissionname_smfgallery_delete'] = 'Delete own Picture';
$txt['permissionhelp_smfgallery_delete'] = 'Allows the user to delete their own picture.';
$txt['cannot_smfgallery_delete'] = 'You are not allowed to delete that picture.';

$txt['permissionname_smfgallery_ratepic'] = 'Rate Picture';
$txt['permissionhelp_smfgallery_ratepic'] = 'Allows the user to rate a picture.';
$txt['cannot_smfgallery_ratepic'] = 'You are not allowed to rate that picture.';

$txt['permissionname_smfgallery_editcomment'] = 'Edit own Comment';
$txt['permissionhelp_smfgallery_editcomment'] = 'Allows the user to edit their own comments.';
$txt['cannot_smfgallery_editcomment'] = 'You are not allowed to edit that comment.';

$txt['permissionname_smfgallery_comment'] = 'Leave Comments';
$txt['permissionhelp_smfgallery_comment'] = 'Allows the user to leave comments on a picture.';
$txt['cannot_smfgallery_comment'] = 'You are not allowed to leave comments.';

$txt['permissionname_smfgallery_report'] = 'Report Pictures/Comments';
$txt['permissionhelp_smfgallery_report'] = 'Allows the user to report pictures and comments.';
$txt['cannot_smfgallery_report'] = 'You are not allowed to report content.';

$txt['permissionname_smfgallery_autocomment'] = 'Auto Approve Comments';
$txt['permissionhelp_smfgallery_autocomment'] = 'Comments do not need to wait for approval.';

$txt['permissionname_smfgallery_autoapprove'] = 'Auto Approve Pictures';
$txt['permissionhelp_smfgallery_autoapprove'] = 'Pictures do not need to wait for approval.';

$txt['permissionname_smfgallery_usergallery'] = 'Personal Gallery';
$txt['permissionhelp_smfgallery_usergallery'] = 'Allows the user to have a personal gallery.';
$txt['cannot_smfgallery_usergallery'] = 'You are not allowed to have a gallery.';

$txt['permissionname_smfgallery_manage'] = 'Admin Gallery';
$txt['permissionhelp_smfgallery_manage'] = 'Allows the user to add/delete/edit all catagories. Delete Comments, Delete Pictures, Approve Pictures.';
$txt['cannot_smfgallery_manage'] = 'You are not allowed to manage gallery.';

//Permissions
$txt['permissiongroup_smfgalleryvideo'] = 'SMF Gallery Pro Video/Audio';

$txt['permissionname_smfgalleryvideo_add'] = 'Add Video/Audio';
$txt['permissionhelp_smfgalleryvideo_add'] = 'Allows the user to add a video/audio file';
$txt['cannot_smfgalleryvideo_add'] = 'You are not allowed to add a video/audio file.';

// END SMF Gallery Text Strings

I know that I need to translate these lines, but this content is in these two files. So, which file should I open for translation? I use SMF 2.0.18

smfgallery2.0.x.xml
smfgallery.xml
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on May 03, 2021, 09:33:59 pm
You would use smfgallery2.0.x.xml
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on May 04, 2021, 01:49:45 am
Thank you for the information.

I know that I need to translate the lines between "Begin SMF Gallery Text Strings/END SMF Gallery Text Strings" and this line for Who.MyLanguage.php file. Yes?

Code: [Select]
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
Code: [Select]
<file name="$languagedir/Who.english.php">
 <operation error="ignore">
 <search position="end"></search>
 <add><![CDATA[
// Begin SMF Gallery
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
// END SMF Gallery Strings
]]></add>
 </operation>
</file>

https://www.smfhacks.com/smfgallery/help/
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on May 04, 2021, 07:17:44 am
Yes for Who.language file
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on October 01, 2021, 03:58:37 am
SMFHacks,

Can you explain to me what these functions are for?

Enable multiple folders for picture storage

Enable favorite gallery items

Redirect to category by default instead of myimages
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on October 01, 2021, 08:37:17 am
Enable multiple folders for picture storage
-Instead of all files stored in one directory in the gallery folder. The system makes a new folder for every 1000 pictures in the gallery folder and places the images in there.

Enable favorite gallery items
-It is like a bookmark system, adds a link to favorite images and you have a tab that shows all your favories

Redirect to category by default instead of myimages
-when uploading a pictures. By default after upload it goes to the myimages section. If enabled this setting makes you go back to the category you uploaded to instead of myimages.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: Monocero on October 11, 2021, 01:39:28 am
Thanks for the explanation.

Quote
Redirect to category by default instead of myimages

-when uploading a pictures. By default after upload it goes to the myimages section. If enabled this setting makes you go back to the category you uploaded to instead of myimages.

I understand when this setting is disabled and on the bar I choose Add photo, then after uploading the photo I am automatically redirected to MyImages. However, if I go to the main Gallery and click Add a photo and send this photo, after uploading this photo I am still in the main gallery, I will not be redirected to MyImages.
Title: Re: From SMF Gallery Lite to SMF Gallery Pro
Post by: SMFHacks on October 11, 2021, 08:00:29 am
If the setting is checked you would stay in the category that you were uploading to and not go to myimages