Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- var avatarProfile = '.psavatar'; /*Pon aquí la clase que contiene tu avatar en el perfil sencillo*/
- /*No edites a partir de aquí*/
- $('.tbt-user').each(function(){
- var avatar = $(this).parents('.tbtopic').find('.tbtavatar');
- var link = $(this).find('a[href^="/u"]').attr('href');
- $.get(link, function(data) {
- var useravatar = $(data).find(avatarProfile+' img');
- $(avatar).append(useravatar);
- });
- });
- $('.tbt-invi').each(function(){
- var avatar = $(this).parents('.tbtopic').find('.tbtavatar');
- $(avatar).append('<img src="LINK DE TU AVATAR POR DEFECTO"/>');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement