Kirill Gromov Posted January 14, 2023 Posted January 14, 2023 Support topic for the app SeNioR- and Afrodude 2
Steph40 Posted March 4, 2023 Posted March 4, 2023 Hey there, Very good idea for an app, love it but uploaded avatar delete themself, it is weird.
Steph40 Posted March 4, 2023 Posted March 4, 2023 1 hour ago, Kirill Gromov said: Hello, how I can reproduce it? That is a good question, all I did is make two categories, upload 10 avatars in each yesterday and last night one was missing, today 5 are gone. Not sure what else to say sorry.
Kirill Gromov Posted March 6, 2023 Author Posted March 6, 2023 Thanks, I'm looking to find the cause of this problem, but I can't reproduce it yet. SeNioR- 1
Stuart Silvester Posted March 6, 2023 Posted March 6, 2023 1 hour ago, Kirill Gromov said: Thanks, I'm looking to find the cause of this problem, but I can't reproduce it yet. If you find the file name in `core_file_logs` there should be a backtrace showing where the deletion came from. However, it looks like it's because you're sharing the same image between all members that select it. The next time any member changes that image for another, the old one will be deleted. SeNioR- and Daniel F 1 1
opentype Posted March 6, 2023 Posted March 6, 2023 [ { "line": 604, "function": "delete", "class": "IPS\\File\\_FileSystem" }, { "line": 167, "function": "getValue", "class": "IPS\\Helpers\\Form\\_Upload" }, { "line": 147, "function": "setValue", "class": "IPS\\Helpers\\Form\\_FormAbstract" }, { "line": 176, "function": "__construct", "class": "IPS\\Helpers\\Form\\_FormAbstract" }, { "line": 40, "function": "__construct", "class": "IPS\\Helpers\\Form\\_Upload" }, { "line": 1385, "function": "__construct", "class": "IPS\\Helpers\\Form\\hook1565" }, { "line": 107, "function": "editPhoto", "class": "IPS\\core\\modules\\front\\members\\_profile" }, { "line": 81, "function": "execute", "class": "IPS\\Dispatcher\\_Controller" }, { "line": 24, "function": "execute", "class": "IPS\\core\\modules\\front\\members\\_profile" }, { "line": 153, "function": "execute", "class": "IPS\\core\\modules\\front\\members\\avatarhub_hook_profileController" }, { "line": 13, "function": "run", "class": "IPS\\_Dispatcher" } ]
Kirill Gromov Posted March 7, 2023 Author Posted March 7, 2023 A new version with the fix has been uploaded. Thanks everyone for the report. I had to override the behavior of removing the avatar from the form when a new image is uploaded through Uploads helper.
balazsp Posted March 17, 2023 Posted March 17, 2023 Hi @Kirill Gromov Is there (can there be) a direct URL link where the users can access the avatar hub (and not via an overlay)? I'd like to create a widget for those that have the default profile image set and a direct link would be more efficient than the instructions of 'go to your profile, click on the bottom left corner of your avatar and select avatar hub' . Thanks in advance!
Kirill Gromov Posted March 17, 2023 Author Posted March 17, 2023 Hello, @balazsp, you can use something like this: Create a new Pages block with html and add this: <a class='ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth' href='#' data-ipsDialog data-ipsDialog-url='/index.php?app=avatarhub&module=hub&controller=front&do=styleAvatar'>Select Avatar</a> Should work Edjazoli, balazsp and abobader 3
sonimik1 Posted April 9, 2023 Posted April 9, 2023 Would it be possible that it already comes with a default avatar pack?
Kirill Gromov Posted April 10, 2023 Author Posted April 10, 2023 10 hours ago, sonimik1 said: Would it be possible that it already comes with a default avatar pack? Hello. I don't think so because everyone's taste is different.
Recommended Posts