Avatar Identicon by Iversia

Avatar Identicon by Iversia 1.2.2

No permission to download
Ahhh, thank you so much @Mouth! That gives me so much to work from in order to track it all down. Looks like it was an issue that got introduced when notices were made a little more robust. I'll see what I can do to fix it all up.
 
what does this do exactly? does it give a list for users to pick avy from ? that would be sick

@Iversia
An Identicon is a visual representation of a hash value, usually of an IP address, that serves to identify a user of a computer system as a form of avatar while protecting the users' privacy. This add-on gives identicon-type avatars to users that have not picked an avatar for themselves.
 
After installing the latest version of Chat by Siropu 1.22, my admin panel is flooded with errors related to the Identicon add-on.

Is there a way we can get these add-ons to play nice with each other? Sample error provided.

ErrorException: Undefined index: unique_key - library/Iversia/Identicon/Listener.php:48
Generated By: Gunhand4171, Today at 4:07 AM
Stack Trace
#0 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(48): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/star_army...', 48, Array)
#1 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(40): Iversia_Identicon_Listener::_getGravatarUrl(Array, 'l', 'robohash')
#2 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(33): Iversia_Identicon_Listener::_getDefaultAvatarUrl(Array, 'l')
#3 [internal function]: Iversia_Identicon_Listener::getAvatarUrl(Array, 'l')
#4 /home/stararmy/stararmy/roleplay-forum/library/XenForo/Template/Helper/Core.php(853): call_user_func_array(Array, Array)
#5 /home/stararmy/stararmy/roleplay-forum/library/Siropu/Chat/ViewPublic/Public.php(93): XenForo_Template_Helper_Core::callHelper('avatar', Array)
#6 /home/stararmy/stararmy/roleplay-forum/library/XenForo/ViewRenderer/Abstract.php(227): Siropu_Chat_ViewPublic_Public->renderJson()
#7 /home/stararmy/stararmy/roleplay-forum/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('Siropu_Chat_Vie...', 'Json', Array, 'siropu_chat_mes...')
#8 /home/star_army/stararmy/roleplay-forum/library/XenForo/FrontController.php(605): XenForo_ViewRenderer_Json->renderView('Siropu_Chat_Vie...', Array, 'siropu_chat_mes...', NULL)
#9 /home/star_army/stararmy/roleplay-forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#10 /home/stararmy/stararmy/roleplay-forum/index.php(13): XenForo_FrontController->run()
#11 {main}
Request State
array(3) {
["url"] => string(58) "https://stararmy.com/roleplay-forum/index.php?chat/refresh"
["_GET"] => array(1) {
["chat/refresh"] => string(0) ""
}
["_POST"] => array(15) {
["room_id"] => string(1) "0"
["user_rooms"] => array(1) {
[0] => string(1) "0"
}
["last_id"] => string(1) "0"
["activity_last_id"] => string(1) "0"
["activity_last_update"] => string(1) "0"
["inverse"] => string(1) "0"
["hide_bot"] => string(1) "0"
["no_users"] => string(1) "0"
["show_ignored"] => string(1) "0"
["all_pages"] => string(1) "1"
["embedded"] => string(1) "0"
["_xfRequestUri"] => string(25) "/roleplay-forum/index.php"
["_xfNoRedirect"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfResponseType"] => string(4) "json"
}
}
 
I'm still getting errors.

ErrorException: Undefined index: email - library/Iversia/Identicon/Listener.php:87

Symptoms: Occurs when a guest posts something in the (Siropu) chatroom, I think. Guest avatars are changing every post they make.

Code:
ErrorException: Undefined index: email - library/Iversia/Identicon/Listener.php:87
Generated By: Edto Xar'Sivaree, Thursday at 5:27 PM
Stack Trace

#0 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(87): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/star_army...', 87, Array)
#1 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(57): Iversia_Identicon_Listener::_getGravatarUrl(Array, 'l', 'robohash')
#2 /home/stararmy/stararmy/roleplay-forum/library/Iversia/Identicon/Listener.php(44): Iversia_Identicon_Listener::_getDefaultAvatarUrl(Array, 'l')
#3 [internal function]: Iversia_Identicon_Listener::getAvatarUrl(Array, 'l')
#4 /home/stararmy/stararmy/roleplay-forum/library/XenForo/Template/Helper/Core.php(853): call_user_func_array(Array, Array)
#5 /home/stararmy/stararmy/roleplay-forum/library/Siropu/Chat/ViewPublic/Public.php(128): XenForo_Template_Helper_Core::callHelper('avatar', Array)
#6 /home/stararmy/stararmy/roleplay-forum/library/XenForo/ViewRenderer/Abstract.php(227): Siropu_Chat_ViewPublic_Public->renderJson()
#7 /home/stararmy/stararmy/roleplay-forum/library/XenForo/ViewRenderer/Json.php(88): XenForo_ViewRenderer_Abstract->renderViewObject('Siropu_Chat_Vie...', 'Json', Array, 'siropu_chat_mes...')
#8 /home/stararmy/stararmy/roleplay-forum/library/XenForo/FrontController.php(605): XenForo_ViewRenderer_Json->renderView('Siropu_Chat_Vie...', Array, 'siropu_chat_mes...', NULL)
#9 /home/stararmy/stararmy/roleplay-forum/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Json), Array)
#10 /home/stararmy/stararmy/roleplay-forum/index.php(13): XenForo_FrontController->run()
#11 {main}

Request State

array(3) {
  ["url"] => string(58) "https://stararmy.com/roleplay-forum/index.php?chat/refresh"
  ["_GET"] => array(1) {
    ["chat/refresh"] => string(0) ""
  }
  ["_POST"] => array(16) {
    ["room_id"] => string(1) "0"
    ["user_rooms"] => array(1) {
      [0] => string(4) "6814"
    }
    ["last_id"] => string(4) "6814"
    ["activity_last_id"] => string(4) "6678"
    ["activity_last_update"] => string(10) "1455832030"
    ["users_last_update"] => string(10) "1455834449"
    ["inverse"] => string(1) "0"
    ["hide_bot"] => string(1) "1"
    ["no_users"] => string(1) "0"
    ["show_ignored"] => string(1) "0"
    ["all_pages"] => string(1) "0"
    ["loading"] => string(1) "0"
    ["_xfRequestUri"] => string(31) "/roleplay-forum/index.php?chat/"
    ["_xfNoRedirect"] => string(1) "1"
    ["_xfToken"] => string(8) "********"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Excellent Add-on! It is difficult to understand why this isn't a core feature of XF considering how many users simply do not upload Avatars and how confusing and unattractive it is for all those users to have the same default Avatar.

We just installed this Add-on on our XF 1.5 board and the installation went smoothly.

However, we noticed one important bug despite not having modified any settings and not having any Add-ons that could conflict with this one:

On the New Posts sidebar on the homepage, it is displaying the same avatar for two different threads (Thread A and B) from two different users (Users A and B). When we click each respective thread, the thread correctly displays the unique Identicon for that specific user. Thread A only contains posts from User A. Thread B only contains posts from User B. The Identicon that appears in the sidebar for each user is the same, and is not either of their actual unique Identicons. This bug is only appearing in the New Posts sidebar. If we click to see "Today's Posts", those same threads show the correct unique Identicon for each respective user in the search results.

To further help you debug this, we noticed that the hash for those same incorrect Identicons on the New Posts sidebar is "d41d8cd98f00b204e9800998ecf8427e" which corresponds to an md5("") (in other words, an md5 of nothing). So it seems that the correct variable isn't being pulled when hashing to create the Identicons on the New Posts sidebar.

Could you please fix this? This bug make the New Posts sidebar very confusing so we've had to uninstall this Add-on until this is fixed.

Thank you.
 
For those that are using Robohash and like to play around, the creator of the site released the source to his site on GitHub.

Robohash (original site in Python): https://github.com/e1ven/Robohash

There is also a conversion of it available in straight PHP & ImageMagick....

Robohash (fork, PHP): https://github.com/hush2/php-robohash

I've switched my site to use a local instance of the PHP fork to help page load times (the Robohash avatars are now cached & served locally instead of remotely).

If you install a local instance of Robohash for use with this add-on by Iversia, just modify the Listener.php and near the bottom change the remote Robohash URL to your local URL.
 
1. Last post avatars are all same
2. New posts avatar on sidebar are all same
3. Widget framework avatars are all same

How are p[eople using this on any active community?
 
Last edited:
1. Last post avatars are all same
2. New posts avatar on sidebar are all same
3. Widget framework avatars are all same

How are p[eople using this on any active community?
Hopefully they aren't. It says "Beta" in the title.

As stated in the add-on description, there are a lot of conflicts with other add-ons. Additionally, you would not want to even bother running this on a larger forum due to the increased number of HTTP requests.
 
Hopefully they aren't. It says "Beta" in the title.

As stated in the add-on description, there are a lot of conflicts with other add-ons. Additionally, you would not want to even bother running this on a larger forum due to the increased number of HTTP requests.
Not a large forum, but not a dead one either.
Thanks for the reply.
 
Would you consider making this a proper release with caching for a custom dev fee? You can then also release it on the forum maybe.
 
Top Bottom