Recent topics appearance v.2
5 posters
Page 1 of 1
Recent topics appearance v.2
Hello.
A while back, Ange gave me a code to customize the Latest Topics appearance, the topic is archived here: https://help.forumotion.com/t136001-recent-topics-appearance
I have a problem though that I only noticed now with members, and many have reported it as well. Whenever someone changes his/her Avatar (using either external URL or forumotion's upload) the image appears broken, just like here:
Is there any method to fix the images? Because whenever someone changes his/her avatar they experience this.
I tried clearing my browser's catch but It didn't work.
Thanks in advance.
A while back, Ange gave me a code to customize the Latest Topics appearance, the topic is archived here: https://help.forumotion.com/t136001-recent-topics-appearance
I have a problem though that I only noticed now with members, and many have reported it as well. Whenever someone changes his/her Avatar (using either external URL or forumotion's upload) the image appears broken, just like here:
Is there any method to fix the images? Because whenever someone changes his/her avatar they experience this.
I tried clearing my browser's catch but It didn't work.
Thanks in advance.
Re: Recent topics appearance v.2
you will probably have to wait on ange for this sense she wrote the code she would know better then anyone
Re: Recent topics appearance v.2
Hello Anzo,Anzo wrote:Hello.
A while back, Ange gave me a code to customize the Latest Topics appearance, the topic is archived here: https://help.forumotion.com/t136001-recent-topics-appearance
I have a problem though that I only noticed now with members, and many have reported it as well. Whenever someone changes his/her Avatar (using either external URL or forumotion's upload) the image appears broken, just like here:
Is there any method to fix the images? Because whenever someone changes his/her avatar they experience this.
I tried clearing my browser's catch but It didn't work.
Thanks in advance.
The recent topic avatars are a little bit complicated. I have something similar to my forum also and when someone changes his/her avatar image the image at the recent topic widget stays the same for like 24hours and then it changes. Except if i clear the cookies completely with codes and staff. With that after my login to the forum and as soon as i view one of the post provided in the recent topic widget, the avatars appear correctly. Maybe you are facing the same thing but with the difference of the broken image.
Re: Recent topics appearance v.2
Hello Anzo,
Your avatars appear as :
Probably because you hide profiles from Guests. ^^
What type profile are you using : Advanced or Simple ?
Thanks
Your avatars appear as :
Probably because you hide profiles from Guests. ^^
What type profile are you using : Advanced or Simple ?
Thanks
Re: Recent topics appearance v.2
Avatars aren't hidden for guests though, I logged out to check and It's the same thing. Also, our profiles are the Advanced Type.
Re: Recent topics appearance v.2
Clear your browser's cache.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Recent topics appearance v.2
That's because they're cached for you.Anzo wrote:Avatars aren't hidden for guests though, I logged out to check and It's the same thing. Also, our profiles are the Advanced Type.
It could be a problem with where the images are hosted. What is the link of the broken images ?
Re: Recent topics appearance v.2
I tried both ways. Whether it's an external link or directly uploaded from the profiles it's the same issue. Also @SLGray I've cleared my browser's catch before I opened this topic, nothing changed.
Re: Recent topics appearance v.2
Try replace your script by :
and then clear your cache so you can see if there are any changes.
- Code:
$(function(){
if(!window.localStorage) return;
// Avatar por defecto
var default_avatar= 'http://2img.net/i/fa/invision/pp-blank-thumb.png';
// Tiempo de cache, aqui 24 h * 60 m * 60 s * 1000 ms entonces un día
var caching_time= 24*60*60*1000;
// Tiempo de cache de un error, ici 60 s * 1000 ms entonces un minuto
var caching_error= 60*1000;
var set_avatar= function(id) {
$('.mini_ava2.member'+id).html('<img src="'+get_avatar(id)+'" />');
};
var get_avatar= function(id) {
if(localStorage.getItem('t_ava'+id) < +new Date - caching_time || (localStorage.getItem('d_ava'+id)==default_avatar && localStorage.getItem('t_ava'+id) < +new Date - caching_error))
{
localStorage.setItem('d_ava'+id, default_avatar);
$.get('/u'+id, function (d){
localStorage.setItem('t_ava'+id,+new Date);
localStorage.setItem('d_ava'+id, $('#profile-advanced-right .module:first div img:first,.forumline td.row1.gensmall:first > img, .frm-set.profile-view.left dd img,dl.left-box.details:first dd img, .row1 b .gen:first img, .real_avatar img',d).first().attr('src')||default_avatar);
set_avatar(id);
});
}
return localStorage.getItem('d_ava'+id);
};
var to_replace= {};
$('.topicRow').each(function(){
to_replace[$(this).find('a[href^="/u"]').attr('href').substr(2)]= 1;
$(this).find('a[href^="/u"]').before('<span class="mini_ava2 member'+$(this).find('a[href^="/u"]').attr('href').substr(2)+'"></span>');
});
for(i in to_replace)
{
set_avatar(i);
};
});
and then clear your cache so you can see if there are any changes.
Re: Recent topics appearance v.2
No changes. It actually looks way different now even.
Now the Images are only located before the 2nd line not before the entire area as It used to be.
Now the Images are only located before the 2nd line not before the entire area as It used to be.
Re: Recent topics appearance v.2
Anzo wrote:No changes. It actually looks way different now even.
Now the Images are only located before the 2nd line not before the entire area as It used to be.
Ηello Anzo,
Forumotion experiences some problems with images. Now on my forum as well most of the images are displayed with the cracked icon also. Lets hope is not something important and it will be fixed soon!
Re: Recent topics appearance v.2
I don't think so! Lets hope its this and nothing serious has happened!
Re: Recent topics appearance v.2
I hope so.
I'll put back the old script, in case you check the forum @Ange
I'll put back the old script, in case you check the forum @Ange
Re: Recent topics appearance v.2
It's okay to put the old script back.
I noticed that some images are taking their time to load. Could be me though.
I noticed that some images are taking their time to load. Could be me though.
Similar topics
» Exclude recent posts from specific forum(s) from last/recent topics widget?
» Change Recent Topics widget to Recent Posts?
» Quirks with Prosilver green skin? Recent topics stalling , duplicating topics, or blank?
» Forum Private section Topics show in 'Recent Topics'
» Selecting Topics to include in Recent topics scroll
» Change Recent Topics widget to Recent Posts?
» Quirks with Prosilver green skin? Recent topics stalling , duplicating topics, or blank?
» Forum Private section Topics show in 'Recent Topics'
» Selecting Topics to include in Recent topics scroll
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum