26 coaches online • Server time: 02:50
Forum Chat
Log in
Recent Forum Topics goto Post Secret League Old Wo...goto Post Creating a custom to...goto Post ramchop takes on the...
SearchSearch 
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic
SeraphimRed



Joined: Feb 01, 2004

Post   Posted: Jul 30, 2008 - 16:31 Reply with quote Back to top

Spectator Links (Group Edition): greasemonkey script

Based on the FUMMBL Spectator Links greasemonkey script, the Group Edition includes all of the features of the original script and extends its functionality so that you never miss an important group/tournament game again!

Born out of necessity after missing an important Group game whilst online, this script places any group/tournament games you express an interest in at the top of most FUMBBL pages.

Image


Not only does it allow you to be notified of group/tournament games but it also a good way of keeping track of scores as you browse FUMBBL, great for when there are several Major Games in motion.

Requirements:

- Firefox
- Greasemonkey (firefox addon): https://addons.mozilla.org/en-US/firefox/addon/748
- The script: http://userscripts.org/scripts/show/30834


Notes
To configure the script for your groups

To edit the script in FireFox do the following:

From the “Tools” menu, expand “Greasemonkey” sub menu and select “Manage User Scripts”
The Manage User Scripts dialog should now be visible.
Select FUMBBL Spectator Links (Group Edition) and click edit.
After opening the script, locate g_groupWatch near the top of the file and add your group IDs to the array as indicated.
Save and close the script.
e.g. *
Code:

var g_groupWatch = new Array();
g_groupWatch[0] = 4262; //OBBA
g_groupWatch[1] = 4596; //LOTR
g_groupWatch[2] = 5015; //STAR WARS
g_groupWatch[3] = 3449; //WIL

*these are the default vales

Already Running FUMBBL Spectator Links?
If you are already running the original url=http://fumbbl.com/index.php?name=PNphpBB2&file=viewtopic&t=13736]FUMBBL Spectator Links[/url] then it is advisable to disable this as the Group Edition includes all features of v1.21 of this script (Latest version at this time). Not disabling it will essentially run the inherited scripting features twice.

To disable the script in FireFox do the following:

From the “Tools” menu, expand “Greasemonkey” sub menu and select “Manage User Scripts”
The Manage User Scripts dialog should now be visible.
Select FUMBBL Spectator Links and uncheck the Enabled checkbox located in the bottom left corner.

_________________

Enhance YOUR FUMBBL


Image


Last edited by SeraphimRed on Jul 31, 2008 - 09:32; edited 1 time in total
PhrollikK



Joined: Nov 04, 2006

Post   Posted: Jul 30, 2008 - 16:54 Reply with quote Back to top

Yes Sera, you dunnit once again! Does this mod only show ongoing games?

_________________
Visit my MiniCity
Mega Punk!
Malicious Rex, Daemon Adoptable
SeraphimRed



Joined: Feb 01, 2004

Post   Posted: Jul 30, 2008 - 17:00 Reply with quote Back to top

Yes, it uses the same process as the original script which largely remains unchanged, basically using the data from the Games page mate.

Thanks. Wink

_________________

Enhance YOUR FUMBBL


Image
Chewie



Joined: Dec 13, 2006

Post   Posted: Jul 31, 2008 - 00:53 Reply with quote Back to top

The whole scripts work fine - good work Sera. Smile

However, now that i've downloaded Firefox, i'm getting the Splash Error when i attempt to open the client.

The client opens normally in IE7, and stand-alone and i haven't moved or changed the directory.

Any ideas on a fix?
SeraphimRed



Joined: Feb 01, 2004

Post   Posted: Jul 31, 2008 - 01:04 Reply with quote Back to top

Firefox worked fine with the weblaunch for me mate... have a look tomorrow when you're online.

_________________

Enhance YOUR FUMBBL


Image
hotspurstu



Joined: Feb 14, 2007

Post   Posted: Aug 03, 2008 - 18:23 Reply with quote Back to top

Cheers Sera. This is mighty handy IMHO.

You the man! Smile

_________________
"When I die, I want to go peacefully in my sleep, like my Grandfather did. -- not screaming, like the passengers in his car"
Greedy



Joined: Jan 31, 2004

Post   Posted: Aug 24, 2008 - 21:34
FUMBBL Staff
Reply with quote Back to top

Tips from the Teacher:

If you want to add groups with low numbers, ie. good old real groups like Svenska Ligan nr 261, you need to add it as: 0261 as the script want the numbers for the groups as four digits.

See example below:

var g_groupWatch = new Array();
g_groupWatch[0] = 0261; //SL

EDIT: my soultion didn't work Sad any one has an idea how to fix this problem?

enjoy and thanks for the script Serra

_________________
Why let others have what you can take?
SeraphimRed



Joined: Feb 01, 2004

Post   Posted: Aug 24, 2008 - 23:02 Reply with quote Back to top

Leading zeros will be removed if the array is used as a numeric value.

Though I can't test this correctly due to there being no games on Gamefinder that match your criteria, I imagine that casting the array explicitly as a string will fix this issue:

Code:

var g_groupWatch = new Array();
g_groupWatch[0] = "0261"; //SL - note the quotes


Let me know if that works please mate - and cheers for raising the issue... who'd have thought that leagues this old would still be around today!
Yah for Leagues. Wink

_________________

Enhance YOUR FUMBBL


Image
Greedy



Joined: Jan 31, 2004

Post   Posted: Aug 24, 2008 - 23:18
FUMBBL Staff
Reply with quote Back to top

The new saeson starts from now, so there will hopefully soon be games to test this on through out the weeks now.

Thanks for the suggestion Serra, I'll try it out and play around with it myself more tomorrow.

/G

_________________
Why let others have what you can take?
Greedy



Joined: Jan 31, 2004

Post   Posted: Aug 25, 2008 - 18:45
FUMBBL Staff
Reply with quote Back to top

Dear Serra,

After playing around with your quotation solution today it seems it doesn't solve the error.
I tried "0664" ( anice old spanish group that had some games going on) and also " 664".

Neither of those two worked to display the match for me.

Any other suggestions?

EDIT: Using "664" made everything work!
Dr Serra can now close this support ticket.

/G

_________________
Why let others have what you can take?


Last edited by Greedy on Aug 25, 2008 - 18:47; edited 1 time in total
Askrum



Joined: Jan 13, 2005

Post   Posted: Aug 25, 2008 - 18:45 Reply with quote Back to top

If you remove the zero, it works! Thanks mates!

var g_groupWatch = new Array();
g_groupWatch[0] = "261"; //SL
Nighteye



Joined: Apr 19, 2004

Post   Posted: Aug 25, 2008 - 21:26 Reply with quote Back to top

Im having an issue with this script. The game shows up between the main fumbbl menu and the submenu (and now between the latest forum posts and "did you knows")

Looks pretty odd, and not something im willing to keep up with really. any idea for a fix?
Greedy



Joined: Jan 31, 2004

Post   Posted: Aug 25, 2008 - 21:32
FUMBBL Staff
Reply with quote Back to top

the file for the script have something about this regarding what format you have your fumbbl set to, v1 v3 and so on. try to edit the script and see what you can do with that. It's not that far from the top

var show_group_games = true; //show group games included in the group id array g_groupWatch
var display_group_games_in_table_number = 2; // determines where to display the game. May wish to change this to 3 if you are using v1 or v3 themes

that part.

/G

_________________
Why let others have what you can take?
Nighteye



Joined: Apr 19, 2004

Post   Posted: Aug 26, 2008 - 00:12 Reply with quote Back to top

Greedy wrote:
the file for the script have something about this regarding what format you have your fumbbl set to, v1 v3 and so on. try to edit the script and see what you can do with that. It's not that far from the top

var show_group_games = true; //show group games included in the group id array g_groupWatch
var display_group_games_in_table_number = 2; // determines where to display the game. May wish to change this to 3 if you are using v1 or v3 themes

that part.

/G


Excellent, thank you very much. I am indeed using a different them than Seraph
Frankenstein



Joined: Aug 02, 2003

Post   Posted: Aug 26, 2008 - 01:22 Reply with quote Back to top

That's just awesome. Thanx, Sera! Smile
Display posts from previous:     
 Jump to:   
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Log in to check your private messages View next topic