View previous topic :: View next topic |
Author |
Message |
tphon

Joined: 02 Nov 07 Posts: 219
Location: Wirral, England
|
Posted: Sun Dec 02, 2007 5:46 pm Post subject: Moves waiting |
|
|
With discussions ongoing about what would be a useful enhancement, I would like to suggest that a really helpful extra would be to show the number of moves awaiting action in the header next to the "Your Games" link. This would be similar to the new posts link.
In addition to being easier for players it may also help reduce the burden on the site as players would not need to refresh the your games page so often as they would know if there was anything to do from any page of the site.
I appreciate all that has been said about time constraints and would not want to detract from new game development but it seems like this would be an easy change to make with some performance payback. |
|
Back to top |
|
 |
Rebelslayer
Joined: 17 Jan 06 Posts: 298
Location: Adelaide, Australia
|
Posted: Sun Dec 02, 2007 6:20 pm Post subject: |
|
|
Considering I clicked from your post to "Your Games" to see if I had any moves waiting (yes, I'm addicted) then I see what you are getting at - went through 2 screens to get there.
I guess it all comes down to to the ease of the change and admin time ... just like all of the other changes.
But as you say, this does have a performance advantage (if that is important or not I don't know). |
|
Back to top |
|
 |
mdfreeman7
Joined: 09 Jan 07 Posts: 45
Location: Fallbrook, California, USA
|
Posted: Sun Dec 02, 2007 6:28 pm Post subject: |
|
|
I like the idea, but if you've been reading the the threads, unless your feature request is for developing more games, don't bother to even ask.
I'm curious as why there even is a feature request feature? |
|
Back to top |
|
 |
shizzane

Joined: 02 Aug 06 Posts: 61
Location: TS
|
Posted: Sun Dec 02, 2007 6:54 pm Post subject: |
|
|
The "Comments and Feature Requests" is certainly a place to request site upgrades and hopefully better an already exceptional site. BUT, we are still at the discretion and time of our excellent hosts.
I requested a feature a few months ago to add the "New Message" indicator whenever someone PMs you. I had PMs sitting there for a few days without any notice when I would play my games. One of the admins said this was a very simple upgrade and added it immediately.
It all boils down to the great people who write the code for the site and what they are able to do. I would not have pressed the issue if this were a time consuming feature ... just thought it was a cool addition. |
|
Back to top |
|
 |
ahauwi1
Joined: 22 Dec 06 Posts: 112
Location: Minneapolis, MN
|
Posted: Sun Dec 02, 2007 8:00 pm Post subject: |
|
|
I've got a greasemonkey/javascript script I use for something similar to this requested feature. So far I've only gotten it to do anything from the yourgames.php page (and to keep server load down, I should probably keep it that way). It figures out your id, counts your turns, and displays it on top.
For those unfamiliar, greasemonkey is a firefox add-on that allows you to write your own modifications to pages you visit.
Here's the script... (sorry about the inclusion of magic numbers; I didn't really plan to share this so I wasn't as rigorous in my coding practices as I usually would be.)
// 1) Determine user id
idEl = window.document.getElementsByTagName('b')[0];
id = idEl.innerHTML;
// 2) determine # of turns
turns = 0;
tds = window.document.getElementsByTagName('td');
for (i = 0; i < tds.length; i++)
{
td = tds[i];
if (td.innerHTML.indexOf(id) == 19)
{
turns++;
}
}
// 3) get handle to the location where # of turns is to be listed
el = window.document.links[6];
el = el.parentNode;
// 4) display # of turns
addString = '<a href="javascript:void()"><b>Turns: ' + turns + '</b></a> | ';
el.innerHTML = addString + el.innerHTML; |
|
Back to top |
|
 |
Rebelslayer
Joined: 17 Jan 06 Posts: 298
Location: Adelaide, Australia
|
Posted: Sun Dec 02, 2007 8:04 pm Post subject: |
|
|
Great work! ... its there!
Hows that for fast response time!
 |
|
Back to top |
|
 |
tphon

Joined: 02 Nov 07 Posts: 219
Location: Wirral, England
|
Posted: Sun Dec 02, 2007 8:12 pm Post subject: |
|
|
WOW, Super fast, that really helps
Thanks a load |
|
Back to top |
|
 |
tlc
Joined: 12 Nov 06 Posts: 95
Location: Austin, TX, but my heart will always be in Boston
|
Posted: Sun Dec 02, 2007 8:12 pm Post subject: |
|
|
By the time I got to read this, I had already seen the change!!!
Thank you, it is SO useful.
Thia |
|
Back to top |
|
 |
t_o_m9

Joined: 14 Apr 06 Posts: 318
Location: Lakeville, MN
|
Posted: Sun Dec 02, 2007 8:12 pm Post subject: |
|
|
wow, that was fast. Great job |
|
Back to top |
|
 |
milksheikh Site Admin

Joined: 24 Sep 03 Posts: 399
Location: Brooklyn, New York, USA
|
Posted: Sun Dec 02, 2007 8:17 pm Post subject: |
|
|
It was a good suggestion, and at 10 new and 1 modified lines of code was something I could do in under 5 minutes. So I went ahead and did it, instead of spending 2 minutes logging it in the features to add list where it might languish forever.
I did think I should consider whether the performance savings from not having the Your Games page loaded as often would outweigh the performance gain from the extra query performed to handle this, but decided to just try it out and see if there is a negative impact. In theory I could eliminate the extra query by adding a counter to each user's record, but that would make this a 30+ minute endeavor (and I need to get to sleep). |
|
Back to top |
|
 |
milksheikh Site Admin

Joined: 24 Sep 03 Posts: 399
Location: Brooklyn, New York, USA
|
Posted: Sun Dec 02, 2007 8:19 pm Post subject: |
|
|
The change has reminded me of another item in the to-do list -- integrating the header of the "main site" into the forum, so that you can see your "Your Games" status while reading/writing posts. Sadly, that's a multiple hour task, so I'm not sure when it will happen. |
|
Back to top |
|
 |
lindalait

Joined: 01 Aug 06 Posts: 229
Location: Newfoundland
|
Posted: Sun Dec 02, 2007 9:16 pm Post subject: |
|
|
thanks for your great work! |
|
Back to top |
|
 |
spearjr

Joined: 11 Nov 05 Posts: 206
Location: Southwestern Michigan
|
Posted: Sun Dec 02, 2007 9:20 pm Post subject: |
|
|
Awesome, thanks! |
|
Back to top |
|
 |
LuvHightide
Joined: 15 Aug 06 Posts: 46
Location: New Hampshire, USA
|
Posted: Sun Dec 02, 2007 9:22 pm Post subject: |
|
|
Such a Great Addition
And to Publicly Thank You for All of your Attention and Love of Your Child to offer it for All of us for Free....
I Love this site !!! |
|
Back to top |
|
 |
stargate

Joined: 09 Dec 04 Posts: 603
Location: North Attleboro, Ma USA
|
Posted: Sun Dec 02, 2007 10:07 pm Post subject: |
|
|
good fix --- Thank You |
|
Back to top |
|
 |
|