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 > How do I NOT show notes on the roster?
shadèy (New Admin) 5/20/2010 4:47 AM EST : How do I NOT show notes on the roster?
shadèy
Posts: 697
Zomgawsh Poster

I've just started using the GPhelper addon, and have successfully imported my guild roster.
However my guild uses the notes section to store information we'd rather not have others outside of the guild privy to.
Is there way to not show the 'notes' when the roster is viewed on the guildportal site?

-thanks
TopBottom

Mottie (MVP) 5/20/2010 1:51 PM EST : RE: How do I NOT show notes on the WoW roster?
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi shadèy!

You could add the following script into your custom scripting area (Control Panel > Custom HTML & Script > Custom Javascript/JQuery > Document Ready Event tab). It will completely remove the notes from the page, but not if you use "view source"
// Remove WoW Auto Roster Notes
$('#tblAutoRoster tr').each(function(){
 $(this).find('td,th').eq(5).remove();
})
After adding the above code, check the "Enabled?" box and click [ Save ]

If the above code won't work out because you can still see the notes in the view source, then the easiest thing to do would be to put all the notes in as officer notes instead of guild notes. Or I could modify the addon to not add the notes at all (but I may not be able to always modify the addon).

To hide the DKP column, change the ".eq(5)" to ".eq(6)"
// Remove WoW Auto Roster DKP
$('#tblAutoRoster tr').each(function(){
 $(this).find('td,th').eq(6).remove();
})
Or both
// Remove WoW Auto Roster Notes & DKP
$('#tblAutoRoster tr').each(function(){
 $(this).find('td:gt(4),th:gt(4)').remove();
})
TopBottom

shadèy (New Admin) 5/21/2010 10:52 AM EST : RE: How do I NOT show notes on the WoW roster?
shadèy
Posts: 697
Zomgawsh Poster

thanks for the quick reply Mottie,
but the notes are still showing up, (dkp also shows up too, albeit 0 values as we don't track our dkp that way)

changing our notes to the officer notes isn't an option for us, as we keep even more info in the officer notes.

having that module enabled isn't a huge issue, it just would have been nice having he whole guild roster automatically in there.

thanks
shadèy
TopBottom

Mottie (MVP) 5/21/2010 11:19 AM EST : RE: How do I NOT show notes on the WoW roster?
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi shadèy!

Still not working eh? Would it be possible for me to join your site briefly just so I can see the roster and check what I need to target with the script - the roster you have on "Make It So" isn't a wow auto roster, so I'm guessing you have another page?
TopBottom

shadèy (New Admin) 5/21/2010 7:14 PM EST : RE: How do I NOT show notes on the WoW roster?
shadèy
Posts: 697
Zomgawsh Poster

i removed the widget for the gp addon on the site, will enable it again and leave it up for you
TopBottom

Mottie (MVP) 5/21/2010 9:06 PM EST : RE: How do I NOT show notes on the WoW roster?
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi shadèy!

I tried this script (below) and it worked perfectly. I'm not sure why it wasn't working for you.
// Remove WoW Auto Roster Notes & DKP
$('#tblAutoRoster tr').each(function(){
 $(this).find('td:gt(4),th:gt(4)').remove();
})
TopBottom

shadèy (New Admin) 5/21/2010 10:55 PM EST : RE: How do I NOT show notes on the WoW roster?
shadèy
Posts: 697
Zomgawsh Poster

have pm'd you on site.
if we come up with a solution / reason why it's not working for me, will post it here for future reference

-thanks for help so far
TopBottom

shadèy (New Admin) 5/22/2010 1:37 AM EST : RE: How do I NOT show notes on the WoW roster?
shadèy
Posts: 697
Zomgawsh Poster

problem was solved by mottie by placing the script in the Additional Functions tab, not in the Document Ready Event tab

-thanks heaps mottie!
TopBottom

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