Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Help from the Community > Removing GuildPortal handle from Tradeskills and Officers widgets?
admin2023 (New Admin) 3/20/2011 11:07 AM EST : Removing GuildPortal handle from Tradeskills and Offi...
admin2023
Posts: 23
Becoming Adept!

Thank you all for your help on the WoW roster - I see that the guild portal handle is also showing on the Tradeskills widget and on the Officers widget.  Can we script those to be removed, too?
TopBottom

Caticastha (New Admin) 3/22/2011 8:00 AM EST : RE: Removing GuildPortal handle from Tradeskills and ...

Caticastha
Posts: 6
Getting Started!

Sorry for the double post - it was a browser issue.  Could someone delete the extra?
TopBottom

Mottie (MVP) 3/22/2011 6:10 PM EST : RE: Removing GuildPortal handle from Tradeskills and ...
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi admin2023!

I really don't understand what you want. Both the tradeskill and officer widgets have the name listed (and the character listed in parenthesis I think). Not all of the names have characters associated with them, so I'm not sure what you want.
TopBottom

Caticastha (New Admin) 3/23/2011 8:19 AM EST : RE: Removing GuildPortal handle from Tradeskills and ...

Caticastha
Posts: 6
Getting Started!

I just want to see the character names, not the guild portal usernames.  Is that possible?
TopBottom

Mottie (MVP) 3/23/2011 10:27 AM EST : RE: Removing GuildPortal handle from Tradeskills and ...
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Caticastha!

Add the following code to a free form text/HTML widget on the same page as your Tradeskill widget
<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>
As for the officer widget, it looks like only the GP name is listed, so I think the best solution would be to make a custom officer widget - see this post.



TopBottom

Nireos (New Admin) 11/8/2013 6:44 PM EST : RE: Removing GuildPortal handle from Tradeskills and ...
Nireos
Posts: 24
Becoming Adept!

This doesn't work for me.  Did something change in the widget?
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%