The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

New default avatar not being pushed to all profiles

4 posters

Page 2 of 2 Previous  1, 2

Go down

Solved New default avatar not being pushed to all profiles

Post by Bearmageddon January 2nd 2020, 5:55 pm

First topic message reminder :

Hi all,

I've just recently taken over administration of our phpbb3 forumotion site. Previously, our default avatars were linked to an image that no longer exists on that domain, so anyone without a custom avatar received a broken imagelink in its place. (it has been this way for at least a year)

I've since created a new default avatar from scratch, uploaded to imgur, pasted the direct imagelink in the 'Default Avatar' section, and it has worked with about half the members while the other half retain the old avatar for some reason. I have switched the Default Avatar between multiple different images and even removed it altogether but still the same accounts are stuck with the old, broken avatar. So far I've just been manually going to those profiles and checking the box at the bottom to delete said avatar, and then the new default avatar successfully takes its place. We do have nearly 3,000 members however so this isn't a very feasible solution.

Does anyone know what the problem here might be and/or how to solve it? Worst case, is there a way to administrate multiple users at once? Rather than opening each profile individually, scrolling down, checking the 'delete avatar' box and saving, rinse and repeat, is there a way to select numerous accounts at once and perform one administration action across all of them?


- Also a side question I thought of while typing this, unrelated but I didn't feel it needed its own post as it's probably common knowledge. When in a profile within the administration panel, the email address is partially censored, and while I swear I was able to see it uncensored previously, is there a way to make this readable for the sake of people who tell me "hey I forgot my login email"? We have longstanding (several years) members who return after a long break and don't remember which email they used. I noticed I can see the email of all our top posters and those who have recently signed up, but when I manually go to their page, it's again censored.
- Will create a new thread for this, apologies.

Thanks in advance!


Last edited by Bearmageddon on April 17th 2020, 9:34 pm; edited 3 times in total
Bearmageddon
Bearmageddon
Forumember

Posts : 39
Reputation : 1
Language : English

View user profile http://www.osrsadvice.com

Back to top Go down


Solved Re: New default avatar not being pushed to all profiles

Post by Bearmageddon April 16th 2020, 8:35 pm

APE wrote:Unlocked for member.

NOTE: our tech team can not find the problem or recreate it our side


I was using the javascript provided by another member up above to replace the affected image URL with the intended one, while placing a red border around the affected images that could only be seen by my Member ID.

Code:
document.addEventListener("DOMContentLoaded", ()=>{
document.querySelectorAll("[src='http://taylorswift.com/themes/master/img/default_avatar.jpg']").forEach(e=>
{e.setAttribute("src", "https://i.imgur.com/YYxUiq0.jpg");
if(_userdata["user_id"]===1526) e.style.border="4px solid red";
})
})


I've disabled it now if your techs would/could have another look. All affected profiles now appear as such while it is disabled, so it should be easier for them to spot now:

New default avatar not being pushed to all profiles - Page 2 14-34-10

Edit: I should also mention again, the avatars successfully propagated to the first several pages of members and all the newest members don't experience the problem. So the newest member will look fine. The first ever member on page 1 will look fine. All the members on page 76, for example, are affected as seen above.
Bearmageddon
Bearmageddon
Forumember

Posts : 39
Reputation : 1
Language : English

View user profile http://www.osrsadvice.com

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by skouliki April 16th 2020, 9:49 pm

The first image url in the code is invalid url
skouliki
skouliki
Manager
Manager

Female Posts : 12676
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by Bearmageddon April 16th 2020, 9:59 pm

skouliki wrote:The first image url in the code is invalid url

Yes that is correct. That is what the previous administrator had set as the default avatars, http://taylorswift.com/themes/master/img/default_avatar.jpg. That URL is invalid now so it broke all the avatars. I switched both the default avatar and the guest avatar to one I made myself, which can be found in the second URL of the code, Imgur specifically. The issue is that the changes have only affected a small portion of the members whereas the rest are still trying to link to the broken avatar.

That Javascript code was finding any URLs matching the broken one (taylorswift.com) and swapping them with the second, working, URL (Imgur). It was a temporary fix suggested by another member until the issue was fixed. I've since disabled it so that it's easier to see and recreate.
Bearmageddon
Bearmageddon
Forumember

Posts : 39
Reputation : 1
Language : English

View user profile http://www.osrsadvice.com

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by skouliki April 17th 2020, 9:40 am

i remember a case 1,2 years ago the member changed the default avatar to another and the switch affected half members
the forum had over 8000 member soo that was frustrating
the issue was fixed after the member synchronized the forum but this didn't work in your case
skouliki
skouliki
Manager
Manager

Female Posts : 12676
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by Ape April 17th 2020, 12:51 pm

Okay well our Tech team has closed the case as they can't get the problem them self.
would you like me to open a new ticket to our head office to look at this again ?

I'm only asking as the head office is right now still on lock down and every one is working form home and as you are the only forum with the problem right now it may not even get looked at for months.

If it was wide spread or more then one member reporting it then it would get looked at fast.

It is really strange how it is only doing some and not others.


New default avatar not being pushed to all profiles - Page 2 Left1212New default avatar not being pushed to all profiles - Page 2 Center11New default avatar not being pushed to all profiles - Page 2 Right112
New default avatar not being pushed to all profiles - Page 2 Ape_b110
New default avatar not being pushed to all profiles - Page 2 Keep_s10
New default avatar not being pushed to all profiles - Page 2 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17962
Reputation : 1913
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by Bearmageddon April 17th 2020, 8:39 pm

Hmm no that's alright, I'll keep my JavaScript active for the time being as it's not really a critical issue otherwise.

I appreciate all the help you guys have offered, I'll mark this solved to get it out of the way Smile
Bearmageddon
Bearmageddon
Forumember

Posts : 39
Reputation : 1
Language : English

View user profile http://www.osrsadvice.com

Back to top Go down

Solved Re: New default avatar not being pushed to all profiles

Post by skouliki April 17th 2020, 10:21 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 12676
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum