Coding-Spot

You are not connected. Please login or register

 
 

How to add "small avatar" on current topics?

Message (Page 1 of 1)


 
Senior Member

Posted on Wed May 01, 2013 6:20 am

 
Hi all :D
I want to ask:)

how to add "small avatar" on current topics?

more details you can see this picture :D:


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 ;)



View user profile



 
Senior Member

Posted on Fri May 03, 2013 7:06 am

 
Bump..

Hi mr.mark :):

I found this code in avacweb
somebody give this code to me. this code its work :D


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:





View user profile



 
Administrator
Administrator

Posted on Fri May 03, 2013 9:56 am

 
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



View user profile http://coding-spot.darkbb.com


#4

Sponsored content


 

Posted Today at 11:52 am

 





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