what is this tipsy avatar thing? its something that is trying to overwrite avatars and messing them up…
Support Forum
exactly my point… look at an avatar on your site… inspect it…
something is adding a whole bunch of html for tipsy avatar.. I have no clue what it is… for example, one of ‘our avatars’:
<img width="150" height="150" alt="Avatar de bliz" src="http://www.warlegend.net/wp-content/uploads/avatars/366/308b6b9348da2fc5211cad3e205dea8a-bpthumb.jpg" original-title=" <div> <img src="http://www.warlegend.net/wp-content/uploads/avatars/366/308b6b9348da2fc5211cad3e205dea8a-bpfull.jpg"> </div> <div class='tipsy-content'> <div> <h3> <a href="http://www.warlegend.net/members/bliz/">bliz</a> </problem-with-post-edit-button3> <div><strong>Actif il y a 3 jours 3 heures</strong></div> @bliz </div> <div><strong>Dernière Maj</strong><br></div> <a href="http://www.warlegend.net/members/bliz/">Voir le profil</a> </div> <div> ">
that is messing with our avatar… this tipsy avatar and content… and it opens a popup too….
this is buddypress hovercard plugin
this is normal behaviour,
but i tried to delete it and no change
i asked the dev of this plugin how to disable the hovercards on the forum, and it did not help either lol …
i had a dev friend checking a bit more into (while not knowing anything about the issue)
he’s asking why the priority of avatar is different for admins and non admins ?
I changed a bit the avatars priorities, and now my others members are small icons, while admins are 150pix
he was able to fix the issue, and had everyone showing 150pix HQ by disabling the avatar priority switch while doing only switch cases 0 and 2 (commenting the rest)
avatar priority for admin : 0 and 2 only
avatar priority for other users : all
but it imply changing the code of simplepress, cannot use it, won’t work in next update
how can we make it so the behaviour is the same for every user ?
priority of avatars is NOT (at least not intentionally) different for admins or users… they apply to all equally… I would like to understand more what he means and what he changed…
a long time ago, I asked about your avatar priority in regards to wp avatars… long thread, have not looked back… maybe post a screenshot of your avatars admin panel would help…
/wp-contentpluginssimple-pressforumcontentsp-common-view-functions.php:548
foreach ($spAvatars[‘sfavatarpriority’] as $priority) {
commented all switch cases except 0 and 2
case 0: # Gravatars
case 2: # Uploaded avatars
doing that made all avatar 150pix and HQ
no idea why, this is really bandaid, would be better to solve another way
Maybe i understand the trick a bit more now: i think i was wrong, it has nothing to do with admins
If the priorities are the same for everyone, it means that step 2 of the switch (file /wp-contentpluginssimple-pressforumcontentsp-common-view-functions.phpn line 549) is skip for everyone (which is the highest priority) and then fall back to step 0 which is gravatars
since I have one, i don’t have the bug, it does not continue, succefully executing code “break 2;”
however, it continues further to other steps for non gravatars users
Which feels wrongs, we all have uploaded avatars… it should not continue further case 2 !
I admit i did not research further this point… maybe there is something wrong with our configuration, but it seems that on my forums only people with gravatars got HQ avatars
but in the current system, i cannot have 150pix avatar in HQ, even with the hovercards disabled, so it’s not the culprit i’m afraid
would still like to see a screenshot of you sp admin profile avatar panel…
if it cannot find uploaded avatars, perhaps there is a permission issue on the server not making them web accessible… on forum – integration – storage locations, does the avatar storage show valid?
http://dhainne.free.fr/sp-permission.jpg
you have access to my site if you want to check more
(i’m the same annoying guy with the members not automatically going into the member group;p)
yes, I know… but as I said there, might be day or two before I can get in… but we do have to run the forums, so a screenshot would get viewed quicker… ![]()
and that is not the avatar one…
sorry
here’s the correct screenshot
http://dhainne.free.fr/sp-avatar.jpg
update : oh just now my dev friend also found another way to fix it on our side, here’s his message :
================
Some news on what I found !
If you inspect theses lines of code, you can find something quite interesting : https://dryft.org/simple-press.png
This is not really a fix because it feels wrong. It looks like “empty($userAvatar[‘uploaded’])” is broken somehow and badly evaluate.
So that every user with a real uploaded avatar is evaluated as if it doesn’t. Fortunately, inverting the condition make it works… but “wrongly” work.
It there something in our configuration or plugins that could make this variable to be badly written somehow ?
=================
we will use this to fix things, we have hq 150pix avatars now, can you add this in your code or will this break something else of others users ?
a couple things…
first, I can guarantee you we will not be making such a code change… its just wrong… that code, with your mod, asks, do we have an uploaded avatar, no, then use it… wrong…
keep in mind, uploaded avatar means: an avatar uploaded through simple press… it will NOT consider an avatar uploaded through wp, bp or any other plugin… it just asks did you upload an sp avatar…
with the bp integration, the avatar will end up being a default one next because you only have two priorities (assuming google translate is working)… uploaded or default… so the user will get a default… but then, at the end of the avatar routine,via a filter, it will get replaced with the user’s BP avatar…
just to be sure, are you running bp integration plugin v0.98?
the real question still remains as to why we are getting the thumb vs full from bp…
can you revert that code change so I can look into this? eh, you are gone… I will do it via ftp so I can test…
Okay, I have completely misunderstood what you were saying the issue was… looking back through the thread, think there was a terminology issue…
you ARE getting the fullsize BP image and NOT a thumbnail… That part is working great…
but what you are getting is a size constrained avatar… in other words, you are getting the full sized BP avatar, but the image tag has a width=’50’ attribute on it… so its making it appear as a thumbnail, but its really not…
the reason for this is because of the default sp avatars you are using… The default sp avatar is 50px by 50px… so based on your avatar priorities, since no one has an sp uploaded avatar, you will always get the sp default avatar… you have set the max profile avatar size to 150px… not, that is a max… so users can upload something smaller – and the defaults are smaller as you have them on your server (they are just what we delivered)… so when the sp avatar is determined, if the avatar that will be used (keep in mind, the bp plugin has not acted on the hook yet to replace) is smaller than the max width, the avatar gets a width attribute of its width… This is to keep the avatar image from getting enlarged and looking poor… of course, if the avatar width is larger than the max, if will limit it…
I did comment out that line of code for you so it works… you will see it as:
// if ($avdata[0] < $avatarData->size) $avatarData->size = $avdata[0];
I will open a discussion on our end too… perhaps there is no reason for us to put a fixed width in there… if the avatar size is less than the max, we might could be able to leave off the width parameter (though there are other benefits to always having a width on imgs)…
a more permanent fix (until if and when we change something) for you would be to simply resize the sp default avatars (there are 3 of them) to be 150x150px… would solve it for you too…
great answer thanks
I’m open for any easy solution
How can I change default wp size easily, is it a settings in wp, or in the theme ?
I can probably do the change yes, i’ll look into it
Our avatars were all loaded by buddypress, in a 150pix size, we do not really use wp avatars, in the forum avatar panel, i tried all priorities order but all had the low quality effects in the end.
quality was fine, just the size wasnt…
in wp-content/sp-resources/forum-avatars (or where ever your sp avatars are stored), there will be three that come with sp… admin, user and guest… just resize them to be 150px by 150px…
your issue should go away…
we dont have a way to force a specific size – just a max size… you could of course filter the avatar before its output and make it whatever size you wanted…