SMFHacks.com
SMF Gallery Pro => Support => Topic started 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!
-
Yes photos will be displayed.
Gallery version is ok since beta is higher than older version.
-
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
-
If doesn't exist not needed.
-
Okay. Can you explain to me what this function is for?
(https://i.imgur.com/IsvoVuT.png)
-
When a photo is uploaded it i will also create a new post in a forum board with a thumbnail of the photo.
-
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?
-
Yes, only new photos
-
This watermark will be visible on the photo even if I turn off this feature?
-
I believe so since it adds it to the photo
-
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. :-\
-
Yes but minor.
You can move pictures from main to user gallery. When edit a picture there is a link to move it.
-
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.
-
Haven't thought about adding that feature..
I would suggest disabling users from adding pictures to the main gallery with permissions.
-
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)
-
You would need to convert the gallery tables character set via phpmyadmin to utf8
-
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.
-
The gallery currently does not set tables at uft8 if enabled in SMF will make that change in a future update.
-
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
-
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?
-
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
-
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?
-
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
-
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,description matter in that case. Basically any places you want those characters accepted.
-
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?
-
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:
// 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
-
You would use smfgallery2.0.x.xml
-
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?
$txt['whoall_gallery'] = 'In the <a href="' . $scripturl . '?action=gallery">Gallery</a>';
<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/
-
Yes for Who.language file
-
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
-
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.
-
Thanks for the explanation.
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.
-
If the setting is checked you would stay in the category that you were uploading to and not go to myimages