I want the avatar back to recent topic
2 posters
Page 1 of 1
I want the avatar back to recent topic
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 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:
Re: I want the avatar back to recent topic
Hello MrMind,
Try replacing your script for loading the images by :
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);
});
});
});
Re: I want the avatar back to recent topic
Works like a charm! Thanks!
This is solved!
Have a wonderful evening!
This is solved!
Have a wonderful evening!
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!
Similar topics
» Replace avatar with topic image to recent topic widget
» Recent topic avatar
» Avatar problem in recent topic
» How can I add avatar in Recent Topics Widget?
» Avatar in recent topics widget phpbb3
» Recent topic avatar
» Avatar problem in recent topic
» How can I add avatar in Recent Topics Widget?
» Avatar in recent topics widget phpbb3
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum