Script: Team PM - Version 1.0.1

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
scottp
Posts: 455
Joined: Tue May 13, 2008 2:05 pm
Location: Dead Zone, TX

Re: CC Private Message Team 0.4

Post by scottp »

this does not work for me. the button is there, and the "push button" animation works when i click it, but it does nothing else.

FF 8.0 Windows 7
Image
Account sitters = MagnusGreeol, concrete, RKCVED
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.4

Post by ThrushAAX »

scottp wrote:this does not work for me. the button is there, and the "push button" animation works when i click it, but it does nothing else.

FF 8.0 Windows 7


Any reason why you haven't upgraded to FF10?

In any case, I have changed the first post to state that only the latest versions of browsers are supported. Unfortunately I don't/can't keep old versions installed.
User avatar
jetsetwilly
Posts: 515
Joined: Tue Aug 05, 2008 3:31 am
Gender: Male
Location: United Kingdom

Re: CC Private Message Team 0.4

Post by jetsetwilly »

Could we consider changing the default title of the PM's ?

This gets used all the time now and sometimes we are drowning in PM's :) Given I don't memorise game numbers, a more useful PM title might include any tournament title and the map name. (appreciating this might need to be truncated). Doing that allows you to pick out and address the important ones.
Image
chapcrap
Posts: 9686
Joined: Sun Feb 03, 2008 12:46 am
Gender: Male
Location: Kansas City

Re: CC Private Message Team 0.4

Post by chapcrap »

jetsetwilly wrote:Could we consider changing the default title of the PM's ?

This gets used all the time now and sometimes we are drowning in PM's :) Given I don't memorise game numbers, a more useful PM title might include any tournament title and the map name. (appreciating this might need to be truncated). Doing that allows you to pick out and address the important ones.

I would agree with this. I change the title to something like: "Our King's Court Triples Game"
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.4

Post by ThrushAAX »

That's a great idea. It would be pretty easy to get the map name with FF... unsafeWindow.map.title

Chrome is a bit of a problem, going to have to dig deeper and maybe hack something together.

I considered grabbing the name from the image url but the names sometimes include what appears to be a version number which makes that impossible.
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: CC Private Message Team 0.4

Post by ender516 »

Given the game number, you can use the Conquer Club API to get information about a game, including the name of the map, and the tournament title, if any. No need for unsafeWindow accesses. There is a stickied topic about the API in the Tools Development forum.
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.4

Post by ThrushAAX »

ender516 wrote:Given the game number, you can use the Conquer Club API to get information about a game, including the name of the map, and the tournament title, if any. No need for unsafeWindow accesses. There is a stickied topic about the API in the Tools Development forum.


Yeah, I really didn't want to hit the CC API. That may end up being the best route. The other option that I am considering is just grabbing the inline JS from the script tag and running some string searching on it.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

Re: CC Private Message Team 0.4

Post by sherkaner »

ThrushAAX wrote:
ender516 wrote:Given the game number, you can use the Conquer Club API to get information about a game, including the name of the map, and the tournament title, if any. No need for unsafeWindow accesses. There is a stickied topic about the API in the Tools Development forum.


Yeah, I really didn't want to hit the CC API. That may end up being the best route. The other option that I am considering is just grabbing the inline JS from the script tag and running some string searching on it.

BOB is using that other option for getting the map data, it might be the better choice in this case.
scottp
Posts: 455
Joined: Tue May 13, 2008 2:05 pm
Location: Dead Zone, TX

Re: CC Private Message Team 0.4

Post by scottp »

ThrushAAX wrote:
scottp wrote:this does not work for me. the button is there, and the "push button" animation works when i click it, but it does nothing else.

FF 8.0 Windows 7


Any reason why you haven't upgraded to FF10?

In any case, I have changed the first post to state that only the latest versions of browsers are supported. Unfortunately I don't/can't keep old versions installed.


LOL, I guess I wasn't even aware it was out... or I neglected to upgrade in the past because I read some of these add-ons/scripts weren't compatible and never revisited the issue.

Upgraded to FF10 and all is well! Thanks for the awesome script! =D>
Image
Account sitters = MagnusGreeol, concrete, RKCVED
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.4

Post by ThrushAAX »

Ok, You've convinced me to use the CC API. :) It will sometimes take upwards of half a second for it to get data back but oh well...

For the new subject I like the format "Our <mapname> <quads, triples, doubles> for <tournament name>". So for me this would be "Our Flanders 1302 doubles for Davis Cup 2012 [TPA2]". The maximum character length for subjects is 60, so longer tournament names will be cut off. However, tournament names are unique enough that it should still be OK. (It could be shortened a bit by using trips and dubs. Any opinion?)

Any suggestions for adding anything more to the default message body or is the game number enough?
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: CC Private Message Team 0.4

Post by ender516 »

Does the size of the team really add anything to the subject if there is a tournament involved? Do you find yourself in different size games in the same tourney? I would use "Our <mapname> game for <tournament>" or "Our <mapname> <doubles, triples, quadruples> game". You could leave out "game", especially in the tournament version to get more useful text.
chapcrap
Posts: 9686
Joined: Sun Feb 03, 2008 12:46 am
Gender: Male
Location: Kansas City

Re: CC Private Message Team 0.4

Post by chapcrap »

I'm agreeing with ender.

You could probably leave the word 'Our' off of the front as well. I'm not sure that the tournament names need in there either.
User avatar
jetsetwilly
Posts: 515
Joined: Tue Aug 05, 2008 3:31 am
Gender: Male
Location: United Kingdom

Re: CC Private Message Team 0.4

Post by jetsetwilly »

chapcrap wrote:I'm agreeing with ender.

You could probably leave the word 'Our' off of the front as well. I'm not sure that the tournament names need in there either.


Also agree, and thanks for picking up on the suggestion :)
Image
HardAttack
Posts: 1935
Joined: Fri Jul 11, 2008 12:15 pm

Re: CC Private Message Team 0.4

Post by HardAttack »

are you planning to extend this beautiful tool with an additional property,
such as,
automatic wall message to the whole team players ?

btw, great work pal, nicely done, thank you.

Can you change the auto message "Our Team Game [game]xxxxxxxx[/game]" into "[game]xxxxx[/game]" ? No need to use "our team game" text part IMO. What do you think ?
LEGENDS of WAR
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.5

Post by ThrushAAX »

OK, finally uploaded version 0.5. I actually had worked on it a few weeks ago but just finalized it now.

Game number is removed from subject as you can't really use it. Instead if shows the map name and the game type or the tournament name. No more "Our" ;)
User avatar
jetsetwilly
Posts: 515
Joined: Tue Aug 05, 2008 3:31 am
Gender: Male
Location: United Kingdom

Re: CC Private Message Team 0.5

Post by jetsetwilly »

Many thanks :)
Image
User avatar
macbone
Posts: 6217
Joined: Wed Jun 03, 2009 7:12 pm
Gender: Male
Location: Running from a cliff racer
Contact:

Re: CC Private Message Team 0.5

Post by macbone »

Awesome update, thrush!
HardAttack
Posts: 1935
Joined: Fri Jul 11, 2008 12:15 pm

Re: CC Private Message Team 0.5

Post by HardAttack »

Nice work pal =D>
LEGENDS of WAR
chapcrap
Posts: 9686
Joined: Sun Feb 03, 2008 12:46 am
Gender: Male
Location: Kansas City

Re: CC Private Message Team 0.5

Post by chapcrap »

Can the next update make the script work on https://www.conquerclub.com ?
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: CC Private Message Team 0.5

Post by ender516 »

You can test drive a fix like that yourself, chapcrap. Go to the Greasemonkey drop down menu and select Manage User Scripts. Then click on the Options button next to the name of this script. You should see a dialog box with the User Settings tab showing. The top half is for included pages. Click the Add.. button and type in https://www.conquerclub.com/game.php?game=*, which corresponds to the Script Setting string, but with the https protocol.
chapcrap
Posts: 9686
Joined: Sun Feb 03, 2008 12:46 am
Gender: Male
Location: Kansas City

Re: CC Private Message Team 0.5

Post by chapcrap »

ender516 wrote:You can test drive a fix like that yourself, chapcrap. Go to the Greasemonkey drop down menu and select Manage User Scripts. Then click on the Options button next to the name of this script. You should see a dialog box with the User Settings tab showing. The top half is for included pages. Click the Add.. button and type in https://www.conquerclub.com/game.php?game=*, which corresponds to the Script Setting string, but with the https protocol.

Thanks, I had already done that. And I did it with the last version too. I just don't want to do it every time.
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: CC Private Message Team 0.5

Post by ender516 »

chapcrap wrote:
ender516 wrote:You can test drive a fix like that yourself, chapcrap. Go to the Greasemonkey drop down menu and select Manage User Scripts. Then click on the Options button next to the name of this script. You should see a dialog box with the User Settings tab showing. The top half is for included pages. Click the Add.. button and type in https://www.conquerclub.com/game.php?game=*, which corresponds to the Script Setting string, but with the https protocol.

Thanks, I had already done that. And I did it with the last version too. I just don't want to do it every time.

Ah, yes, that could become tedious.
ThrushAAX
Posts: 161
Joined: Wed Aug 12, 2009 1:07 am

Re: CC Private Message Team 0.5

Post by ThrushAAX »

Sorry about the https issues. Thought I had fixed it before but I just tested it now and had to change it again. Had some weird issue with FF. It should work fine now and you won't need to manually add the exception again.

I did not bump the version number as its not much of a change. Please let me know if it stops working again though. :)
chapcrap
Posts: 9686
Joined: Sun Feb 03, 2008 12:46 am
Gender: Male
Location: Kansas City

Re: CC Private Message Team 0.5

Post by chapcrap »

ThrushAAX wrote:Sorry about the https issues. Thought I had fixed it before but I just tested it now and had to change it again. Had some weird issue with FF. It should work fine now and you won't need to manually add the exception again.

I did not bump the version number as its not much of a change. Please let me know if it stops working again though. :)

Great. It's working perfect now. Thanks for the fix.
User avatar
agentcom
Posts: 3994
Joined: Tue Nov 09, 2010 8:50 pm

Re: CC Private Message Team 0.5

Post by agentcom »

Immediately before I headed over here, the Message TEam button has disappeared from my team games. I don't think that I've used it at all today, though come to think of it. I'll see if anything changes when I reinstall. BRB
Post Reply

Return to “Tool Archives”