The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

I want the avatar back to recent topic

View previous topic View next topic Go down

Solved I want the avatar back to recent topic

Post by Luffy on October 28th 2014, 9:21 am

Hello,

I am using these codes that Ange Tuteur gave me here : http://help.forumotion.com/t136274-replace-avatar-with-topic-image-to-recent-topic-widget#919554 and here: http://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:

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by Ange Tuteur on October 28th 2014, 4:26 pm

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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by Luffy on October 28th 2014, 6:19 pm

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






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Solved Re: I want the avatar back to recent topic

Post by Ange Tuteur on October 28th 2014, 6:20 pm

You're welcome

Topic archived

Have a nice day. Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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