Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

Community The Great Avatar Purge

DarkUnderlord

Professional Throne Sitter
Staff Member
Joined
Jun 18, 2002
Messages
28,547
Hm... I have zero experience with forum software, but could you perhaps look for references to "96" in xenforo code and replace it with a smaller value? It is ought to have something like "if X is less than 96, scale to 96" somewhere, does it not? Is it binary or in human-readable form like php or py?
Gosh mondblut, if only I was as smart as you and had thought of that. Honestly I just poked around the admin panel and scratched my head a few times looking for a "change the avatar size" option while farting and scratching my ass. It's not like I googled "how to change avatar size in XenForo" or anything either.




If you really want the nerdy answer...

Most of the avatar details seem (and I say seem, because with XenForo it's hard to tell sometimes) to be handled in forums\library\XenForo\Model\Avatar.php

That sets the hard-coded (bad XenForo, bad XenForo!) default sizes for avatars as:

Code:
protected static $_sizes = array(
		'l' => 192,
		'm' => 96,
		's' => 48
	);

These are the sizes of avatars used in your profile (l), next to your forum post (m) and the little icons you see (s). XenForo automatically scales avatars to these sizes whenever you choose one. All the gallery does is let you pick an avatar and then "uploads" it like a custom avatar would, generating the required images as it goes (which are saved as image files with file names that correspond to your user id).

Now yes, I can dick around with those sizes. But what size do I go for? 80? 70? Any avatars smaller will still get fucked - but more importantly - any avatars larger than that will also likely get fucked. But... I don't want XenForo to scale avatars at all. If the avatar is 10px by 10px I want it to be 10x10, if it's 90x90 I want it to be 90x90. Whatever size I pick, something gets screwed. It will either be too big, or too small.

Plus if I change these values, I need to remember to re-do it every-time I upgrade the forums (which is already becoming a long list of mods that need to be re-installed along with other tweaks).

Now remove the scaling means re-coding the entire routine - which is not happening. It would also fuck up the small images which we need. That's the major issue. Minor issue is that I'd then get to dick around in the style to get the avatars to "look right" for their new size as XenForo has some CSS that determines what gets cut-off where and such.

But finally... As you'd know if you followed the link above: You will need to re-upload your avatar so the new "m" size can be saved. Also, the three default avatars should have their medium size changed too.

That is, we would have to re-upload every single avatar in the entire gallery to the new size... which Crooked Bee is already doing using 96x96 as the guide.

So, we stick with 96px by 96px, save us a coding hassle every-time we upgrade (DU why's my avatar fucked did you just upgrade fix it fix it fix it. Fix it now!!) and be done with it.

edit: hm, page code states "192" for avatar width and height rather than 96, curious:

Code:
<a href="index.php?members/darkunderlord.5/" class="avatar Av5l" data-avatarhtml="true"><img src="data/avatars/l/0/5.jpg?1381609115" width="192" height="192" alt="DarkUnderlord" /></a>
Yep. That's because I've already messed with the template and forced XenForo to use the L sized image when displaying the avatar. That's why bigger avatars no longer get cut-off. You'd note that if anyone did upload an avatar that large though, it would over-flow into the message area of that user's posts...

For the record, this is the code as it appears in the template in XenForo's back-end:

Code:
<xen:avatar user="$user" size="l" img="true" />
 

mondblut

Arcane
Joined
Aug 10, 2005
Messages
22,703
Location
Ingrija
Now yes, I can dick around with those sizes. But what size do I go for? 80? 70? Any avatars smaller will still get fucked - but more importantly - any avatars larger than that will also likely get fucked.

I see. I was under impression that it only upscales smaller avatars and does not downscale larger ones (there are many which are over 96 vertically). If it does, my point is moot.
 

Lady_Error

█▓▒░ ░▒▓█
Patron
Joined
Oct 14, 2012
Messages
1,879,250
Here's some more stuff:

Stonekeep
http://www.filedropper.com/stonekeep

p8s3.jpg


Wizardry VII
http://www.filedropper.com/wizardry

21pr.jpg


Command & Conquer
http://www.filedropper.com/cc

v3xo.jpg
 

Stinger

Arcane
Joined
Aug 13, 2011
Messages
1,366
I'm fine with this, can we purge some of the ridiculously large emoticons too?
 

Achilles

Arcane
Joined
Sep 5, 2009
Messages
3,425
Ah, so that's why I got the Faceless achievement! Fine by me, my previous avatar is available in the gallery anyway :)
 

Irxy

Arcane
Joined
Nov 13, 2007
Messages
2,054
Location
Schism
Project: Eternity
Well, at least now they have gone through a screening process - both content-wise (only games) and image-quality-wise.
And why should anyone care if avatars are game related anyway?
Well, at least codex is not dedicated to sanitaryware or something.

p.s. the majority of gallery avatars are ugly though.
 

suejak

Arbiter
Patron
Village Idiot
Joined
Aug 16, 2012
Messages
1,394
At least there are three separate galleries of Mass Effect portraits.

Btw, the code for the gallery is college boy-level shitty. I can't even use it properly at my desktop resolution because half the box is off the screen :lol:
 

Crooked Bee

(no longer) a wide-wandering bee
Patron
Joined
Jan 27, 2010
Messages
15,048
Location
In quarantine
Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire MCA Serpent in the Staglands Dead State Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2 Shadorwun: Hong Kong Divinity: Original Sin 2 BattleTech Pillars of Eternity 2: Deadfire
Crooked Bee

since our Mighty Leader is unwilling to kill the bloody scaling, I took it upon myself to add 96-compliant transparent borders to the fan favorite Celtic Tales and Gold Box avatars. Please replace:

https://www.dropbox.com/s/0vf9zlrhz2o7dk9/CTavs96x96.rar
https://www.dropbox.com/s/urrrju8ezu0rqcq/GBavs96x96.rar

I've added transparent background to Celtic Tales avatars but with a different alignment, to ensure some uniformity with other avatars I've been adding transparent borders to.

As for the Gold Box avatars, they're 88x88 and thus scale up to 96x96 pretty well imo:

10454.png
vs
10455.png


10457.png
vs
10456.png


10452.png
vs
10453.png


So since xenforo's default av size is 96x96, I'm currently inclined to keep those at that size. I just need to upscale them with lanczos instead of xenforo's default blurry filter. I've already done that for the Buck Rogers galleries but not other Gold Box games yet.
 

Crooked Bee

(no longer) a wide-wandering bee
Patron
Joined
Jan 27, 2010
Messages
15,048
Location
In quarantine
Codex 2013 Codex 2014 PC RPG Website of the Year, 2015 Codex 2016 - The Age of Grimoire MCA Serpent in the Staglands Dead State Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Wasteland 2 Shadorwun: Hong Kong Divinity: Original Sin 2 BattleTech Pillars of Eternity 2: Deadfire
Lady Error

Added Wiz VII and Stonekeep. Dunno about C&C -- not because it isn't an RPG per se (I'm aware we have a lot of non-RPG avs in the gallery), but mostly because I don't feel like creating a C&C gallery for just 5 avatars that aren't even particularly great (unless you count the Stalin one, which I guess would be perfect for some GD posters).
 

Lady_Error

█▓▒░ ░▒▓█
Patron
Joined
Oct 14, 2012
Messages
1,879,250
Lady Error

Added Wiz VII and Stonekeep. Dunno about C&C -- not because it isn't an RPG per se (I'm aware we have a lot of non-RPG avs in the gallery), but mostly because I don't feel like creating a C&C gallery for just 5 avatars that aren't even particularly great (unless you count the Stalin one, which I guess would be perfect for some GD posters).

But it's Josh Holloway, and Kane! And Natasha Henstridge. In a famous game...
 

Alchemist

Arcane
Joined
Jun 3, 2013
Messages
1,439
Crooked Bee : Bard's Tale 1 avatars are ready here: https://dl.dropboxusercontent.com/u/20645938/BardsTale1Avatars.zip

Preview:
ZjVRt8X.png

(forum is stretching the preview - the actual icons are crisper)

These are mostly from the Amiga version though with a few I opted for the Atari version since they offered better contrast. Also some seem to only exist in the Atari version.
Bard's Tale II, III and Construction Set coming soon...
Thanks must go to Kroah's Bard's Tale Picture Viewer found here: http://bringerp.free.fr/RE/BardsTale/utility.php5
 

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom