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.
The forum of the forums
2 posters

    I want the avatar back to recent topic

    TheCrow
    TheCrow
    Manager
    Manager


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

    Solved I want the avatar back to recent topic

    Post by TheCrow October 28th 2014, 9:21 am

    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
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: I want the avatar back to recent topic

    Post by Ange Tuteur 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);
     Â   });
     Â });
    });
    TheCrow
    TheCrow
    Manager
    Manager


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

    Solved Re: I want the avatar back to recent topic

    Post by TheCrow October 28th 2014, 6:19 pm

    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!
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: I want the avatar back to recent topic

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

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

    Topic archived

    Have a nice day. Smile

      Current date/time is September 23rd 2024, 8:31 pm