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 > Limit LotRO Server Status List
Mottie (MVP) 6/9/2011 9:20 AM EST : Limit LotRO Server Status List
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Limit LotRO Server Status List

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
TopBottom

Gekko (New Admin) 6/23/2011 3:47 PM EST : RE: Limit LotRO Server Status List
Gekko
Posts: 841
Zomgawsh Poster

I amgetting the following error: The LOTRO server status widget is currently unavailable. It can be removed through the control panel.

I like this widget! Any idea how to get it to work?
TopBottom

Mottie (MVP) 6/23/2011 4:53 PM EST : RE: Limit LotRO Server Status List
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Hi SabrielofLorien!

Sorry I don't have control over the widget, just modifying the available information. You'll have to submit a support ticket with GuildPortal.
TopBottom

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