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 : Voodoo Tech and Scripter's Den of Scriptniquity > Script to Hide "Role Being Filled"
Valdaglerion (Guild Admin) 10/29/2009 4:48 PM EST : Script to Hide "Role Being Filled"
Valdaglerion
Posts: 2473
Zomgawsh Poster

My guild members dislike the whole "Role Being Filled" option and column on the calendar when doing a sign-up.  Is it possible to use javascript to remove and hide this option?
TopBottom

Mottie (MVP) 10/29/2009 7:07 PM EST : RE: Script to Hide "Role Being Filled"
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Try this script... add it to a free form text/HTML box on your Calendar page. This just hides the information, if you ever plan on using the role feature, remove this script.

<script type="text/javascript">
$(document).ready(function(){
 $('select[id*="ddlCharacterRole"]').hide()
  .closest('table').find('td:contains("Role Being Filled")').html('');
 $('a[title*="sort by role"]').html('')
  .closest('table').find('tr.NormGridRow, tr.AltGridRow').find('td:eq(3)').html('');
})
</script>

Edit (3/6/2010): Updated to work again after some recent changes.
TopBottom

Valdaglerion (Guild Admin) 10/30/2009 12:40 PM EST : RE: Script to Hide "Role Being Filled"
Valdaglerion
Posts: 2473
Zomgawsh Poster

Thanks!
TopBottom

Ceradwen (Guild Admin) 11/15/2009 11:09 AM EST : RE: Script to Hide "Role Being Filled"
Ceradwen
Posts: 283
Fingers of Fury!

This is very helpful and am grateful for all of the in-depth information you have provided, Mottie.   I was able to make this code work along with showing the class and level by placing the code in a Free Form HTML box on the calendar page.  The only problem is, now I have a random content box that is required to  have a title. 

Is there a code to put in an individual content box to make just that one Free Form HTML box invisible?  Or, is there another place I should be sticking these codes to avoid this problem altogether?

Thanks in advance for any help!
Ceradwen ~ Minstrel ~ Healer by Song
TopBottom

Valdaglerion (Guild Admin) 11/15/2009 2:06 PM EST : RE: Script to Hide "Role Being Filled"
Valdaglerion
Posts: 2473
Zomgawsh Poster

Mottie's helped me with this one so I'll pass along the details.  To hide the box, add this code to your custom CSS:

    #box_some_box { display: none; }

The red part (#box_) is the base name for the content box, it doesn't change. The orange text is the content box title with spaces replace with an underscore "_".  So, if your box name is "Custom Code", the code to add would be:

    #box_Custom_Code { display: none; }

TopBottom

Mottie (MVP) 11/15/2009 5:24 PM EST : RE: Script to Hide "Role Being Filled"
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hey Valdaglerion & Ceradwen!

Actually that CSS that Valdaglerion provided will only work if you are using the custom box HTML from this post. If you haven't done this, I just posted an easier way (I think) to hide the code widget - check it out here.
TopBottom

Ceradwen (Guild Admin) 11/17/2009 7:39 AM EST : RE: Script to Hide "Role Being Filled"
Ceradwen
Posts: 283
Fingers of Fury!

Thank you, gentlemen for both of your efforts to help.  Unfortunately the "hide" code given in the other thread does not do what I was hoping it would.  I still see the an empty content box associated with my Free Form HTML for that page.  The title I gave it (because I had to),  "HTML" still shows.  I logged in on a "member" test account in case it was only showing since I am an admin, but that was not the case. 


Hiding the role and showing the classes is working great, though!


Ceradwen ~ Minstrel ~ Healer by Song
TopBottom

Mottie (MVP) 11/17/2009 9:52 AM EST : RE: Script to Hide "Role Being Filled"
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Ceradwen!

Can you share a link to your guild site... the script in the other post is meant for the standard HTML box code. If you've modified it, I should be able to tweak the code to work for your site.
TopBottom

Ceradwen (Guild Admin) 11/19/2009 3:00 AM EST : RE: Script to Hide "Role Being Filled"
Ceradwen
Posts: 283
Fingers of Fury!

Certainly and thanks for having a look at it.  Here is my kinship site, Oracles of the Golden Wood

My calendar page is set to members only, so I copied in the same code I have on the calendar page onto the home page in it's own free form html box.  It is in the center column, bottom of the page.  If you need to see the calendar page, feel free to apply as a member and I would be happy to give you member status.
Ceradwen ~ Minstrel ~ Healer by Song
TopBottom

Mottie (MVP) 11/19/2009 11:30 AM EST : RE: Script to Hide "Role Being Filled"
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hi Ceradwen!

Ok, it appears that your site is using a different content box custom HTML... but not too far off. I've updated the hide widget script so it should work for you now.
TopBottom

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