Sign Up! Login: Password: New User? Forgot? Support
Code 
 
 
Forums 
Forums : LotRO > LOTRO Status Question
Merenwench (Member) 6/8/2011 11:14 PM EST : LOTRO Status Question
Merenwench
Posts: 2772

0
Like

0
Dislike

Mottie..now that even Guildportal has a LOTRO status widget, would it be possible to have JUST the server our guild plays on instead of the long, long list of all the servers? Thanks

TopBottom

Mottie (SuperAdmin) 6/9/2011 9:14 AM EST : Limit LotRO Server Status List
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

Hi Merenwench! Try this:

Limit LotRO Server Status List

GuildPortal admin site link to the original post

Use this script to only show the servers you want:

Code
<style>
.server-status {
  background: center center no-repeat;
  width: 12px;
  height: 12px;
  text-indent: -999em;
  overflow: hidden;
}
.server-up { background-image: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/uparrow.png); }
.server-down { background-image: url(http://i201.photobucket.com/albums/aa236/Mottie1/testsite/icons/downarrow.png); }
</style>
<script>
$(function(){
 var serversToShow = [
  'Firefoot',
  'Sirannon'
 ]

 // ***************************
 // Don't change anything below
 // ***************************

 ,ss = $('.gpWidget-lotross');
 if (ss.length){
  ss.find('li').hide()
    .find('div:contains(UP)').addClass('server-status server-up').end()
    .find('div:contains(DOWN)').addClass('server-status server-down');
  $.each(serversToShow, function(i,s){
    ss.find('li:contains(' + s + ')').show();
  });
 }
});
</script>
Customizing
  • CSS for the server status icon can be changed by replacing the URL in orange with the URL to your image. Then adjust the icon size in red to match your image.
  • Add the server statuses to show into the serversToShow variable.
  • Each server name in the list can be a partial name but capitalization is important.
  • To match "[FR] Sirannon" you only need to have "Sirannon" in the serversToShow variable, or even just "Sir" since no other server name has those letters.
  • If you add "ir" to the serversToShow variable, it will match "[DE] Gwaihir", "[FR] Sirannon", "Elendilmir" and "Firefoot".
  • Make sure each server in the serversToShow variable is separated by commas, but the last server in the list cannot be followed by a comma (no comma after "Sirannon" in the example above) otherwise IE will break.
Edit (6/10/2011): Added server status text replacement with an icon
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

Merenwench (Member) 6/9/2011 11:08 PM EST : RE: Limit LotRO Server Status List
Merenwench
Posts: 2772

0
Like

0
Dislike

Excellent! You are so very clever sir!! What about...changing the 'UP' to a green arrow icon, etc. ? LoL

TopBottom

Mottie (SuperAdmin) 6/10/2011 9:04 AM EST : RE: Limit LotRO Server Status List
ACK!
Mottie
Posts: 3884

0
Like

0
Dislike

You're trying to kill me, I knew it!!

LOL, ... I've updated the post. Enjoy!

Oh, and since none of the servers were down, I was only guessing that "DOWN" is what will be in the list. So if you find out that isn't right, please message me and I'll fix it.
Characters: Mottie Motty Mortie Ooshiny Mot Fudgems
TopBottom

-Merenwen- (Applicant) 6/10/2011 7:20 PM EST : RE: Limit LotRO Server Status List
-Merenwen-
Posts: 113

0
Like

0
Dislike

You are the bestest, wisiest, cleverest person ever!! Seriously, thanks so much!!!
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%