Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : Tradeskill > Remove GP Handle
Mottie (SuperAdmin) 3/31/2011 11:49 AM EST : Remove GP Handle
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Remove GuildPortal Handle from Tradeskill List

GuildPortal admin site link to the original post

Code

Add the following code to a free form text/HTML widget on the same page as your Tradeskill widget. There is nothing to customize.
<script type="text/javascript">
$(document).ready(function(){
 // Remove GP name from Tradeskills widget
 $('.gpWidget-tradeskills').find('.NormGridRow, .AltGridRow').find('span:contains(as )').each(function(){
  var s = $(this).text(), n = s.replace(/(.+?)\(as (.+?)\)/g, '$2');
  $(this).html( $(this).html().replace(/\s\(as (.+?)\)/g, '') );
  $(this).find('a').text(n);
 });
});
</script>
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

 
 
Key 
New posts No new posts
New posts ( popular ) No new posts ( popular )
New posts ( sticky ) No new posts ( sticky )
New posts ( locked ) No new posts ( locked )
 
 
Who's Online 
There are   members online.
 
 
So-and-so has logged on!
%title%
%message%