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 : Pimp My Site! > Hiding the Blog icons
sadronmeldir (Guild Admin) 7/12/2008 7:15 PM EST : Hiding the Blog icons
sadronmeldir
Posts: 1298
Zomgawsh Poster

Hey all! Is there an easy way to hide the view blog icon? It's quite annoying since so few members use the blog in my guild.
TopBottom

Ciannon (Guild Admin) 7/12/2008 7:51 PM EST : RE: Hiding the Blog icons
Ciannon
Posts: 2000
Zomgawsh Poster

sadronmeldir said:
Hey all! Is there an easy way to hide the view blog icon? It's quite annoying since so few members use the blog in my guild.



I was actually going to post the same thing. It's driving me nuts. I have no idea how to do it though.

I think it's pretty redundant since you can click on their name and get to their blog that way. No since in having the blog icon there.


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Mottie (MVP) 7/12/2008 8:54 PM EST : RE: Hiding the Blog icons
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

I remember reading how to do this in another post somewhere, so I don't want to take credit for it... but just add the CSS below to your Custom StyleSheet. It gets rid of the Message icon as well.
.MessageAuthorInfoCell1 a {display: none;}
TopBottom

Ciannon (Guild Admin) 7/12/2008 9:15 PM EST : RE: Hiding the Blog icons
Ciannon
Posts: 2000
Zomgawsh Poster

Mottie said:
I remember reading how to do this in another post somewhere, so I don't want to take credit for it... but just add the CSS below to your Custom StyleSheet. It gets rid of the Message icon as well.
.MessageAuthorInfoCell1 a {display: none;}



That did not work for me, sir.


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Mottie (MVP) 7/13/2008 3:15 AM EST : RE: Hiding the Blog icons
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Hmmm, I tested it twice and it works fine for me.
TopBottom

sadronmeldir (Guild Admin) 7/13/2008 1:58 PM EST : RE: Hiding the Blog icons
sadronmeldir
Posts: 1298
Zomgawsh Poster

It worked partially. The forums are clean but the shout boxes and roster still have them. Any clue on those?

Thanks for your help so far, Mottie! Appreciated as always.
TopBottom

Ciannon (Guild Admin) 7/13/2008 2:14 PM EST : RE: Hiding the Blog icons
Ciannon
Posts: 2000
Zomgawsh Poster

sadronmeldir said:
It worked partially. The forums are clean but the shout boxes and roster still have them. Any clue on those?

Thanks for your help so far, Mottie! Appreciated as always.



That's what I was looking for, Mottie. My message box info are is scotch free anyways. So, I can't take away something that isn't there


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Mottie (MVP) 7/13/2008 5:14 PM EST : RE: Hiding the Blog icons
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

Ok, I don't know if this will work 100% since I don't have any news boxes on any of my sites and I'm too lazy to make one LOL. But I believe it will work. Paste the code below into your footer. Increase the number in red (time in milliseconds) if you have a long page load time (lots of images).
  • The CSS in green hides the message and blog icons in your shout box, remove this if you want to show the message icons.

  • The CSS in blue hides the message and blog icons in the forums. Remove this if you want to show the message icons.

  • The javascript hides the blog icons only on every page (news boxes, forums and shoutbox)

  • Change the image name (the entire URL is not required) in orange if you used a custom blog icon, it is currently set to the default blog icon of "BlogViewBubble.png"
Footer or Content Box (Free Form Text/HTML) at the bottom of the page
<style type="text/css">
#jqShoutCb a { display: none; }
.MessageAuthorInfoCell1 a {display: none;}
</style>
<script type="text/javascript">
function hideBlog() {
var x = document.getElementsByTagName("img");
var blogImg = "BlogViewBubble.png";
 try {
  for (j=0; j < x.length; j++) {
   if( x[j].src.match(blogImg) ) {
    x[j].style.display = "none";
   }
  }
 } catch (err) {}
}
setTimeout("hideBlog();", 1000);
</script>

Edit: You can combine the above script with the script to hide your admin "Edit" buttons. I've included it below for completeness sake 
<style type="text/css">
#jqShoutCb a { display: none; }
.MessageAuthorInfoCell1 a {display: none;}
</style>
<script type="text/javascript">
function hideEditButtons() {
// true = hide all edit buttons
// false = show all edit buttons
var hideButtons = true;

// Don't change anything below!
// *****************************
if (!hideButtons) return;
x = document.getElementsByTagName("input");
  try {
   for (j=0; j < x.length; j++) {
    if( x[j].value == "Edit" ) {
     x[j].style.display = "none";
    }
   }
  } catch (err) {}
}
function hideBlog() {
var x = document.getElementsByTagName("img");
var blogImg = "BlogViewBubble.png";
 try {
  for (j=0; j < x.length; j++) {
   if( x[j].src.match(blogImg) ) {
    x[j].style.display = "none";
   }
  }
 } catch (err) {}
}
setTimeout("hideBlog();", 1000);
setTimeout("hideEditButtons();", 1);
</script>

Edit (7/19/2008): Corrected my error where the timeout is actually in millisecond and not seconds. Increase the time to 1000 and it'll hide all your blog icons.
Edit (8/3/2008): Added comment how where to change the icon name if you are using a custom image. And, I got rid of the ".hide" class in the CSS and just put it into the javascript.
TopBottom

Ciannon (Guild Admin) 7/13/2008 6:21 PM EST : RE: Hiding the Blog icons
Ciannon
Posts: 2000
Zomgawsh Poster

Going to try this. I'll let you know if it works

That worked! and in the words of Celine Deion (I think)

Mottie.... Did you ever know that you my hero?


Epic quotes from Coils:

"lol out of money. I bought my system and forgot to factor in the cost of the game." - Coils 7/14/2008
"No money totaled my car. Cant play. Probly selling my computer. Adios." - Coils 8/25/2008


TopBottom

Mottie (MVP) 7/14/2008 3:26 AM EST : RE: Hiding the Blog icons
GuildPortal MVP
Mottie
Posts: 3884
Zomgawsh Poster

YAY I'm glad it worked! 
TopBottom

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