[OzzModz] Avatar Gallery

[OzzModz] Avatar Gallery 2.0.2 Patch Level 4

No permission to download

Ozzy47

Well-known member
Ozzy47 submitted a new resource:

[OzzModz] Avatar Gallery - Provide a set of default avatars for users to pick from

Description :

  • This add-on allow you to offer your users a gallery of pre-selected avatars to use.
You need to find and upload your own avatars, this addon does not come with any default avatars.

Attribution:

Originally coded by ThemeHouse and released as open source.

View attachment 259875

View attachment 259876

View attachment 259877

Read more about this resource...
 
I was actually going to contact about making something similar after the current add-on is done :oops:.

EDIT: I set this up on my test install to see how this would work compared to the other one that is available, and this is much better for organizing and has way more options.

There are a few things I would like to see, such as ability to import directly from a directory. I have (or will have) a lot of custom avatars, and manually adding them can be very slow.

Possibly the ability to import/export as XML file so that avatar lists can be shared (one of my artist has shown interest in releasing large avatar packs).

The avatar selection could do with a re work, as it is not designed to support a large number of avatars (which is why I was looking at having a custom one made).

1636316671552.webp

This is a screenshot from my test board and these are only two categories; each category is a different set of avatars and each set of avatars can contain between 5 to 20 different variations. There are about 40+ sets in the game and a total of ~1000 different individual avatars total.

While I likely won't ever have that many, the UI for this is already getting close to being restrictive at the number shown above (it takes up the vertical height of a 1440p monitor).

For video game sites that are likely to have a lot of character-based avatars, or sport sites that can have a lot of different teams this limitation can be reached very quickly.
 
Last edited:
Ozzy47 updated [OzzModz] Avatar Gallery with a new update entry:

[OzzModz] Avatar Gallery for XenForo 2.1+ Update 2.0.1

2.0.1:
  • Avatar categories now collapsible
  • Category container now can be clipped with scrollbar
  • Added avatar data export
  • Added checkboxes in ACP avatar list for batch actions (delete/export)
  • Fixed incorrect relation condition column in AvatarCategory entity
  • Fix: display ungrouped avatars in ACP avatar list (are not deleted when deleting a category and were not displayed anywhere)

View attachment 261383

View attachment 261384

Read the rest of this update entry...
 
It would probably be better to make the avatar gallery scroll rather than the individual categories, as when you have more than one category open it will still have quite a bit of vertical scroll.

Here is with the avatar gallery scrolling:

1638720068429.webp

Only change would be applying the scroll and height style properties to .th-avatar-gallery rather than .th-avatar-gallery .inputChoices.

I can do it myself but figured I'd make the suggestion here as well.

I was also wondering if a dropdown with the categories (to filter out other categories), and a search bar to filter for specific avatars could be added? I'm willing to fund the functionality if needed.
 
I added search filter for admin pages, but I can't add it to public avatar selection page.
The public template cannot be used with XF built-in search filter since it is oriented to data tables.
It needs custom implementation. I'm bad with JS, so I can't take it. I may look into it at a later date.
 
I tried this out today with the current release of XF, but had trouble. It installed, and the usergroup had access, but in the user settings section it did not appear. It didnt show the gallery/added avatars, and also got rid of the browse button for a user to upload their own. Bug?
 
Mine threw up this error:
Code:
Line 80: Unknown tag extension encountered. - Template name: admin:th_avatar_gallery_list

And says this on the main page:
Code:
One or more add-ons currently have actions pending and may be in an inconsistent state. Because of this, some errors may be suppressed and unexpected behavior may occur. If this does not change shortly, please contact the add-on author for guidance.
 
Export doesn't work on my installation.

Schermata 2021-12-08 alle 15.09.30.png


This is the error in error.log

Code:
ErrorException: Template error: [E_USER_WARNING] Template admin:th_avatar_gallery_avatar_export is unknown src/XF/Template/Templater.php:689
Generato da: Il Custode 8 Dicembre 2021 alle 15:09
Analisi dello stack
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/nldddfrz/...', 689, Array)
#1 src/XF/Template/Templater.php(689): trigger_error('Template admin:...', 512)
#2 src/XF/Template/Templater.php(1618): XF\Template\Templater->getTemplateData('admin', 'th_avatar_galle...')
#3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('th_avatar_galle...', Array)
#4 src/XF/Mvc/Renderer/Json.php(86): XF\Template\Template->render()
#5 src/XF/Mvc/Renderer/Json.php(70): XF\Mvc\Renderer\Json->renderHtmlFallback('ThemeHouse\\Avat...', 'admin:th_avatar...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Avat...', 'admin:th_avatar...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#11 src/XF.php(517): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
Stato richiesta
array(4) {
  ["url"] => string(39) "/community/admin.php?th-avatar-gallery/"
  ["referrer"] => string(62) "https://www.xfitalia.it/community/admin.php?th-avatar-gallery/"
  ["_GET"] => array(1) {
    ["th-avatar-gallery/"] => string(0) ""
  }
  ["_POST"] => array(6) {
    ["_xfToken"] => string(8) "********"
    ["avatar_ids"] => array(110) {
      [0] => string(1) "8"
      [1] => string(1) "9"
      [2] => string(2) "10"
      [3] => string(2) "11"
      [4] => string(2) "12"
      [5] => string(2) "13"
      [6] => string(2) "14"
      [7] => string(2) "15"
      [8] => string(2) "16"
      [9] => string(2) "17"
      [10] => string(2) "18"
      [11] => string(2) "19"
      [12] => string(2) "20"
      [13] => string(2) "21"
      [14] => string(2) "22"
      [15] => string(2) "23"
      [16] => string(2) "24"
      [17] => string(2) "25"
      [18] => string(2) "26"
      [19] => string(2) "27"
      [20] => string(2) "28"
      [21] => string(2) "29"
      [22] => string(2) "30"
      [23] => string(2) "31"
      [24] => string(2) "32"
      [25] => string(2) "33"
      [26] => string(2) "34"
      [27] => string(2) "35"
      [28] => string(2) "36"
      [29] => string(2) "37"
      [30] => string(2) "38"
      [31] => string(2) "39"
      [32] => string(2) "40"
      [33] => string(2) "41"
      [34] => string(2) "42"
      [35] => string(2) "43"
      [36] => string(2) "44"
      [37] => string(2) "45"
      [38] => string(2) "46"
      [39] => string(2) "47"
      [40] => string(2) "48"
      [41] => string(2) "49"
      [42] => string(2) "50"
      [43] => string(2) "51"
      [44] => string(2) "52"
      [45] => string(2) "53"
      [46] => string(2) "54"
      [47] => string(2) "55"
      [48] => string(2) "56"
      [49] => string(2) "57"
      [50] => string(2) "58"
      [51] => string(2) "59"
      [52] => string(2) "60"
      [53] => string(2) "61"
      [54] => string(2) "62"
      [55] => string(2) "63"
      [56] => string(2) "64"
      [57] => string(2) "65"
      [58] => string(2) "66"
      [59] => string(2) "67"
      [60] => string(2) "68"
      [61] => string(2) "69"
      [62] => string(2) "70"
      [63] => string(2) "71"
      [64] => string(2) "72"
      [65] => string(2) "73"
      [66] => string(2) "74"
      [67] => string(2) "75"
      [68] => string(2) "76"
      [69] => string(2) "77"
      [70] => string(2) "78"
      [71] => string(2) "79"
      [72] => string(2) "80"
      [73] => string(2) "81"
      [74] => string(2) "82"
      [75] => string(2) "83"
      [76] => string(2) "84"
      [77] => string(2) "85"
      [78] => string(2) "86"
      [79] => string(2) "87"
      [80] => string(2) "88"
      [81] => string(2) "89"
      [82] => string(2) "90"
      [83] => string(2) "91"
      [84] => string(2) "92"
      [85] => string(2) "93"
      [86] => string(2) "94"
      [87] => string(2) "95"
      [88] => string(2) "96"
      [89] => string(2) "97"
      [90] => string(2) "98"
      [91] => string(2) "99"
      [92] => string(3) "100"
      [93] => string(3) "101"
      [94] => string(3) "102"
      [95] => string(3) "103"
      [96] => string(3) "104"
      [97] => string(3) "105"
      [98] => string(3) "106"
      [99] => string(3) "107"
      [100] => string(3) "108"
      [101] => string(3) "109"
      [102] => string(3) "110"
      [103] => string(3) "111"
      [104] => string(3) "112"
      [105] => string(3) "113"
      [106] => string(3) "114"
      [107] => string(3) "115"
      [108] => string(3) "116"
      [109] => string(3) "117"
    }
    ["action"] => string(6) "export"
    ["_xfRequestUri"] => string(39) "/community/admin.php?th-avatar-gallery/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
We’ll this was a TH addon, I just re-released it so it’s supported again.
Hello

I have loaded a set of avatars - and set permissions for all Registered members to access the gallery BUT

I do not get the option to "Pick From Gallery" as shown - please give me a clue as to what I am doing wrong

1639002818082.webp


1639002621951.png

1639002582160.png
 
Top Bottom