Jump to content

Avatar Hub

Featured Replies

  • 1 month later...

Hey there,

Very good idea for an app, love it but uploaded avatar delete themself, it is weird.

  • Author

Hello, how I can reproduce it?

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.

  • Author

Thanks, I'm looking to find the cause of this problem, but I can't reproduce it yet.

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.

[
    {
        "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"
    }
]

 

  • Author

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.

  • 2 weeks later...

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!

  • Author

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

Thank you!

  • 4 weeks later...

Would it be possible that it already comes with a default avatar pack?

  • Author
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.

Recently Browsing 0

  • No registered users viewing this page.