add fiend button in post profile

View previous topic View next topic Go down

add fiend button in post profile

Post by _Twisted_Mods_ on 2/25/2015, 2:26 am

avatar
_Twisted_Mods_
Founder
Founder

Posts : 101
Reputation : 2
Birthday : 1986-08-05
Join date : 2014-10-03
Age : 31
Location : USA

View user profile
[script=Your choice=in topics]
Code:
$(function(){
   if (document.getElementById('wrap')){
$('.post').each(function(){
     var userlink = $(this).find('.author a').text()
     $(this).find('.postprofile dd:last').prepend('<a class="profile-icon" href="/profile?friend=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add As Friend" alt="Add As Friend" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-add-user-icon.png" width="25" height="25"></a>');
     $(this).find('.postprofile dd:last').append('<a class="profile-icon" href="/profile?foe=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add To Foes" alt="Add To Foes" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-remove-user-icon.png" width="25" height="25"></a>');
   
});}//phpbb3
  
    else if ($('.bodylinewidth').length){
$('.post').each(function(){
     var userlink = $(this).find('.name').text()
     alert(userlink)
     $(this).next('tr').find('.messaging td').prepend('<a class="profile-icon" href="/profile?friend=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add As Friend" alt="Add As Friend" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-add-user-icon.png" width="25" height="25"></a>');
     $(this).next('tr').find('.messaging td').append('<a class="profile-icon" href="/profile?foe=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add To Foes" alt="Add To Foes" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-remove-user-icon.png" width="25" height="25"></a>');
   
});} //phpbb2
  
    else if ($('.pun').length){
$('.post').each(function(){
     var userlink = $(this).find('.user a[href^="/u"]').text()
     $(this).find('.user-contact').prepend('<a class="profile-icon" href="/profile?friend=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add As Friend" alt="Add As Friend" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-add-user-icon.png" width="20" height="20"></a>');
     $(this).find('.user-contact').append('<a class="profile-icon" href="/profile?foe=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add To Foes" alt="Add To Foes" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-remove-user-icon.png" width="20" height="20"></a>');
   
});}  //punbb
  
    else if (document.getElementById('ipbwrapper')){
$('.post').each(function(){
     var userlink = $(this).find('.author a').text()
     $(this).find('.postprofile dd:last').append('<a class="profile-icon" href="/profile?friend=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add As Friend" alt="Add As Friend" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-add-user-icon.png" width="25" height="25"></a>');
     $(this).find('.postprofile dd:last').append('<a class="profile-icon" href="/profile?foe=' + userlink + '&mode=editprofile&page_profil=friendsfoes"><img title="Add To Foes" alt="Add To Foes" src="http://icons.iconarchive.com/icons/oxygen-icons.org/oxygen/16/Actions-list-remove-user-icon.png" width="25" height="25"></a>');
   
});}; //invision
});

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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