Coding-Spot

You are not connected. Please login or register

 
 
 

How to add "small avatar" on current topics?

Message (Page 1 of 1)

#1

weeknight

weeknight
 
Senior Member

Posted May 1st 2013, 1:20 pm

 
Hi all :D
I want to ask:)

how to add "small avatar" on current topics?

more details you can see this picture :D:
How to add  "small avatar" on current topics? HvXmJmv

I found "small avatar" in forum avacweb :):
very nice and more interesting
and I want to be like that, :D

Source:
http://www.avacweb.com/

My forum:
http://astajim.indonesianforum.net/

Please help me :D
thanks before ;)





#2

weeknight

weeknight
 
Senior Member

Posted May 3rd 2013, 2:06 pm

 
Bump..

Hi mr.mark :):

I found this code in avacweb
somebody give this code to me. this code its work :D
How to add  "small avatar" on current topics? CDuMNsh

Place in JS
Code:
        var CopyrightNotice = 'Copyright D World ©️ 2012 - 2013. All right reserved. Addons to add avatar user in last topics widget for forumotion by InFeRn0. Only works on phpBB3';
        $(function() {
        var x = $('#left')[0]; // Left widget;
        var y = $('#right')[0]; // Right widget;
        $(x).find('.module .inner a[href^="/t"]').each(function() {
        var link = $(this).next().next().attr('href');
        var title = $(this).next().next().text();
        $(this).prepend('<a href="'+link+'" title="'+title+'"></a>');
        $(this).children('a').load(link +'#profile-advanced-right .module:eq(0) img:eq(0)', function() {
        $(this).children('img').attr('class','tlistAv');
        });
        $(this).find('a[href^="/u"]').insertBefore($(this));
        });
        });
        var CopyrightNotice = 'Copyright D World ©️ 2012 - 2013. All right reserved. Addons to add avatar user in last topics widget for forumotion by InFeRn0. Only works on phpBB2';
        $(function() {
        $('.forumline:contains(Ultimele subiecte), .forumline:contains(Latest topics)').attr('id','left');
        var x = $('#left')[0]; // Left widget;
        $(x).find('.row1 span a[href^="/t"]').each(function() {
        var link = $(this).next().next().attr('href');
        var title = $(this).next().next().text();
        $(this).prepend('<a href="'+link+'" title="'+title+'"></a>');
        $(this).children('a').load(link +'#page-body .forumline .row1.gensmall img:eq(0)', function() {
        $(this).children('img').attr('class','tlistAv');
        });
        $(this).find('a[href^="/u"]').insertBefore($(this));
        });
        });

place in css
Code:
        .tlistAv {
        float: left;
        margin-right: 5px;
        width: 35px;
        height: 35px;
        border: 1px solid #CCC;
        padding: 1px;
        }

source:
http://www.avacweb.com/t1227-how-to-add-small-avatar-on-current-topics

tutorial from LG, maybe this:
http://www.avacweb.com/t129-user-avatar-variable?highlight=avatar

if I'm wrong about this, I apologize to you. :)

thanks :D:







#3

Mark

Mark
 
Administrator
Administrator

Posted May 3rd 2013, 4:56 pm

 
Thanks. I'll put this to archive section, this might be helpful to other people :):.

Since the problem is solved, i'll locked this and move to archive section. :D:
~ Locked and Moved



https://coding-spot.darkbb.com


#4

Sponsored content


 

Posted

 





Message (Page 1 of 1)

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

In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests

Users browsing this forum: None