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 : Service Announcements > GP Update: Three New Widgets Go Live!
Aaron Lewis (Blue Collar) 4/16/2010 6:48 PM EST : GP Update: Three New Widgets Go Live!
GuildPortal Dev
Aaron Lewis
Posts: 1979
Zomgawsh Poster

That's right, the feature list just had triplets!
  1. Member of the Month. With this widget placed on any of your site's pages, members can vote on other members that they feel deserve being called the member of the month (or called out, depending on your guild's particular type of humor). It also allows people to see who's getting the votes for the current month, but doesn't show them from whom the votes are coming. That would lead to harassment, bullying, and eventually, blood in the streets.
  2. Random Member. Operates a bit like the Member of the Month, only completely different. There's no voting involved. The person displayed is completely arbitrary. Computer-selected. It does allow the entry of a short bio that is specifically between your members and your site, and it's displayed along with them.
  3. External Voice Server. Alright, not really a feature so much as a patch to help with the confusion that resulted from us offering Ventrilo server hosting. If you have your Ventrilo (or other) voice server hosted by someone else, you'll probably want to use this widget to paste in any "Server Status" scripts they provide you, to display who's currently logged in and all that. It also gets around that problem you used to have with scripts being too long, by replacing the old way they were stored with a bigger field in the database.

To add any of these widgets to a page on your site, head to the Control Panel, click Pages and Content (Widgets), pick a page, and then click the Add Widget tab.
Aaron Lewis, GuildPortal.com
TopBottom

Everdark (MVP) 4/16/2010 9:36 PM EST : RE: GP Update: Three New Widgets Go Live!
GuildPortal MVP
Everdark
Posts: 3952
Zomgawsh Poster

Thanks for the Voice Widget! I have been using a Free Form box with my TSViewer code, although the rest of the page has to wait to be rendered until the TS script finishes, so I was hoping this would help speed things up somehow.

Unfortunately it doesn't seem to like TSViewer for some reason as the color scheme gets messed up and the rest of the page following it fails to render. I've tried it with IE 8 and Firefox 3.6.3. I'm currently testing the new widget on my Voting page for the time being so you can see what it's doing.

I put a ticket in for it.

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

Murazorz (New Admin) 4/17/2010 9:03 PM EST : RE: GP Update: Three New Widgets Go Live!
Murazorz
Posts: 852
Zomgawsh Poster

It seems you forgot to include the the closing tag for the scripttag.

As for the rendering problem, that's sadly the nature of browsers and javascript, the browser rendering halts while javascript is parsed (which it is as soon as it is encountered in the source). This is the reason why javascript should _always_ be located at the bottom of the html files.

You could probably fix your case by wrapping your script in an iframe.
TopBottom

Everdark (MVP) 4/17/2010 11:22 PM EST : RE: GP Update: Three New Widgets Go Live!
GuildPortal MVP
Everdark
Posts: 3952
Zomgawsh Poster

Odd, when I originally did the test widget I saw it cut my code in half. Repasted it and re-checked and it was fine. I went back again after reading your post to find the script cut off again.

Thanks for the explanation and suggestion. I went back to TSViewer and they had an A-synchronous load option. With your explanation, it appears that it will load the script at the bottom (Footer) and have the box point to it. The page loads fast now with my second test widget so far. Gonna cut out the color code from my working scripts and replace them with this using the Free Form widget.

Thanks, Murazorz!  

(Btw, I found that font I was looking for.)

"The person who says it cannot be done should not interrupt the person doing it." 

 
Everdark (T), Evadarr, Nevinn (AC), Soninn, Croninn, Zakarr, Avirded (SC)
TopBottom

Murazorz (New Admin) 4/19/2010 8:19 PM EST : RE: GP Update: Three New Widgets Go Live!
Murazorz
Posts: 852
Zomgawsh Poster

Good that it worked for you and you found the font.

Yeah, there are some tricks to make javascript load asynchronously, and they make a very measurable difference on javascript-heavy pages. And still some of the big sites don't use it... Since more and more of the functionality lies in javascript this becomes very important, and sadly the impact of javascript is poorly understood, and it's not only the parsing and execution time that matters, net round-trips and wait times make a big difference as well, since the browser is blocking during the whole retrieval/parsing. One good side effect of refactoring your code to take all this into account is that it ends up a lot better, faster and less buggy than before.

I would really like it if GP could start loading the javascript asynchronously, it would make the site a lot snappier.

There are actually quite a lot of info about this on the web. One of the "experts" on the area is Steve Souders, he writes quite a lot and most of it is available online http://stevesouders.com/
TopBottom

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