Share
View previous topicGo downView next topic
avatar
Eby Disagnio
WebMaster
Numri i postimeve : 77
Join date : 2014-06-14
Age : 32
Location : USA
http://webmaster.albanianforum.net

Avatar ne Quick Reply

on Thu Jun 26, 2014 1:32 pm



Hapi i pare

Administration Panel → Modules → HTML & Javascript → Javascript codes management

Emertoje : Avatar ne Quick Reply
Vendose : In the topics

Code:
jQuery(document).ready(function() {
jQuery('#quick_reply').before('<div id="quick-avatar"></div> ');
});
jQuery(document).ready(function(){
  jQuery.get('/profile?mode=editprofile&page_profil=avatars', function(data) {
      link = jQuery('.frm dl dd img', data).attr('src');
      if(link){
        jQuery('#quick-avatar').html('<a href="/profile?mode=editprofile&page_profil=avatars"><img src="'+link+'" alt=""></a>');
      }else{
        jQuery('#quick-avatar').html('');
      }
  });
});



Hapi i dyte

Administration Panel → Display → CSS

Code:

#quick-avatar {
position: absolute;
 margin: 83px 81px;
}
#quick-avatar img {
width: 80px;
height: 80px;
padding: 1px;
border: 1px solid #D5D5D5;
background: white;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.1);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
}
#quick-avatar img:hover {
  border-color: #A1A1A1;
-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}
View previous topicBack to topView next topic
Permissions in this forum:
You cannot reply to topics in this forum