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.

I want the avatar back to recent topic

2 posters

Go down

Solved I want the avatar back to recent topic

Post by TheCrow October 28th 2014, 10:21

Hello,

I am using these codes that Ange Tuteur gave me here : https://help.forumotion.com/t136274-replace-avatar-with-topic-image-to-recent-topic-widget#919554 and here: https://help.forumotion.com/t136359-recent-topic-top-of-categories#919804
but i want the recent topic system to stay the same and the avatar just to replace the images that are now there.
I don't want the style to change.
Look how they are now:
I want the avatar back to recent topic S9GJKzm
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by Ange Tuteur October 28th 2014, 17:26

Hello MrMind,

Try replacing your script for loading the images by :
Code:
$(function() {
  var cacheTime = 1*60*1000; // mm * ss * ms

  if (!document.getElementById('recentTopics')) return;
  if (localStorage.recentExp > +new Date - cacheTime) return $('#recentTopics').html(localStorage.recentHTML);
  $('#recentTopics a.bottooom').each(function() {
    $(this).before('<span class="prevImg"></span>');
    $(this).prev().load($(this).next().next().attr('href') + ' #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', function() {
      setTimeout(function() {
        if (window.localStorage) {
          localStorage.recentHTML = $('#recentTopics').html();
          localStorage.recentExp = +new Date;
        }
      },1000);
    });
  });
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by TheCrow October 28th 2014, 19:19

Works like a charm! Thanks! Smile
This is solved!
Have a wonderful evening!


I want the avatar back to recent topic Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by Ange Tuteur October 28th 2014, 19:20

You're welcome I want the avatar back to recent topic 1852325475

Topic archived

Have a nice day. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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