BBO Discussion Forums: diagrams with play included - how? - BBO Discussion Forums

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

diagrams with play included - how?

#1 User is offline   billw55 

  • enigmatic
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,757
  • Joined: 2009-July-31
  • Gender:Male

Posted 2012-February-14, 10:07

OK I give up, how do you post hands with the play included via the "next" button? Is it a link to myhands? If so how do you edit out the player names, or truncate the play? Or is there some other trick? hmmmm
Life is long and beautiful, if bad things happen, good things will follow.
-gwnn
0

#2 User is offline   ArtK78 

  • PipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 7,786
  • Joined: 2004-September-05
  • Gender:Male
  • Location:Galloway NJ USA
  • Interests:Bridge, Poker, participatory and spectator sports.
    Occupation - Tax Attorney in Atlantic City, NJ.

Posted 2012-February-14, 10:13

It is a link to a previously played hand on BBO.
0

#3 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,598
  • Joined: 2004-August-21
  • Gender:Male

Posted 2012-February-14, 10:19

And if you want to replace the names, you have to edit the URL in a text editor. The parameters to the handviewer.php script contain the full LIN file of the hand, and you should be able to find the player names in it. Edit them into North/South/East/West (or whatever you want) and then paste the modified URL.

#4 User is offline   inquiry 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 14,566
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Amelia Island, FL
  • Interests:Bridge, what else?

Posted 2012-February-14, 10:38

I posted a link to an excel tool I use for doing this. A LINK to that tool is forumlin post


The following post descibes how this can be done without excel to automate the steps insert hand diagram
--Ben--

#5 User is offline   billw55 

  • enigmatic
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,757
  • Joined: 2009-July-31
  • Gender:Male

Posted 2012-February-14, 11:16

Aha, I looked for stickies, but in the wrong places I guess.

Thanks
Life is long and beautiful, if bad things happen, good things will follow.
-gwnn
0

#6 User is offline   mgoetze 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,942
  • Joined: 2005-January-28
  • Gender:Male
  • Location:Cologne, Germany
  • Interests:Sleeping, Eating

Posted 2012-February-14, 11:45

I'm sorry, but I have to disagree with the previous answers in this thread - the LIN format is not the only way to include play in the handviewer tool.

The complete documentation for Handviewer's "native" format is at http://www.bridgebas...ools/hvdoc.html

(I put "native" in quotes because funnily enough the LIN format seems to be quicker to load sometimes.)

Let's take a rather silly example. We'll start by using the BBO forums handviewer tool to get us started, though it could be done by hand. Choose "Include North", "Include South" and "Include Bidding". Give North and South their cards, enter the bidding, and click "insert diagram". You will get something like this:

[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp]266|200[/hv]


Now, the bit between hv= and the closing bracket contains the commands for the Handviewer program, and 266|200 is the size of the iframe in which it will be loaded. You can also take this same command string and see it in its own browser window like thus:

http://www.bridgebase.com/tools/handviewer.html?pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp

The bit after the question mark in the above URL is identical to the stuff after hv= in the forum code above.

As you can see it is basically a bunch of variables seperated by ampersands. Let's go through them

pc=n I have no idea what this does, pc is undocumented.
s=sakqjt98765432hdc South's hand, containing 13 spades. "hdc" is generated by the forum tool but not necessary.
n=shakqjt98765432dc North's hand, containing 13 hearts.
d=n Dealer North.
v=0 None vulnerable.
b=1 Board number one.
a=7hp7sp7ndppp The auction, 7-p-7-p-7NT-X-p-p-p. If we wanted to alert double to clarify that it is not a takeout double, we could make it "a=7hp7sp7nd(Penalty)ppp".

Now if we want to add the play, we simply need to add a new variable: p=cas2dah2 or something like that. So our new code looks like this:

[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp&p=cas2dah2]266|200[/hv]


However, if you use this, you will find it a bit small. Since HV adds an empty East and West hand whenever we include the play, we need to resize the iframe. My preferred size is 640x480, so:

[hv=pc=n&s=sakqjt98765432hdc&n=shakqjt98765432dc&d=n&v=0&b=1&a=7hp7sp7ndppp&p=cas2dah2]640|480[/hv]


Et voilà! Here's how it looks like:


"One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision"
    -- Bertrand Russell
4

#7 User is offline   gnasher 

  • Andy Bowles
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,993
  • Joined: 2007-May-03
  • Gender:Male
  • Location:London, UK

Posted 2012-February-14, 11:55

Thank you MGoetze.
... that would still not be conclusive proof, before someone wants to explain that to me as well as if I was a 5 year-old. - gwnn
0

#8 User is offline   WellSpyder 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,627
  • Joined: 2009-November-30
  • Location:Oxfordshire, England

Posted 2012-February-14, 12:12

Wow! What about pinning this thread so we don't lose mgoetze's pearls of wisdom?
0

#9 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,598
  • Joined: 2004-August-21
  • Gender:Male

Posted 2012-February-14, 13:11

View PostWellSpyder, on 2012-February-14, 12:12, said:

Wow! What about pinning this thread so we don't lose mgoetze's pearls of wisdom?

Good idea. I'm moving it to the General BBO Discussion forum and I'll pin it there.

#10 User is offline   mgoetze 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,942
  • Joined: 2005-January-28
  • Gender:Male
  • Location:Cologne, Germany
  • Interests:Sleeping, Eating

Posted 2012-February-14, 14:14

While I'm at it, here's how I post hands I played on BBO. Reviewing the hand record in the new (Flash) version of BBO, I simply click on Options -> Export Deal -> Handviewer Link. This will give me a URL such as

http://tinyurl.com/7z7qfjw

I open this in a browser and get redirected to a URL such as

http://www.bridgebase.com/tools/handviewer.html?sn=mgoetze&s=SAQ8HT4DKQJT87C82&wn=Robot&w=S7653HA632D9CKJ65&nn=Robot&n=SK94H87D64CAQT743&en=Robot&e=SJT2HKQJ95DA532C9&d=e&v=n&b=2&a=1H(Major%20suit%20opening%20--%205+%20H%3B%2011-21%20HCP%3B%2012-22%20total%20points)2D(Two-level%20overcall%20--%205+%20D%3B%2010+%20HCP%3B%2011-)2H(Free%20major%20raise%20--%203+%20H%3B%206-10%20total%20points)PPD(3+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total%20points)3C(3+%20C%3B%203+%20H%3B%2010+%20HCP%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)4C(5+%20C%3B%208+%20HCP%3B%209%20total%20points)PPD(3+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PP4D(Cue%20bid%20--%203+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total)D(2+%20D%3B%203+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PPP&p=S3S4STSADKD9D4D5DQH6D6D2DJS5C3DAHKH4H2H7H5HTHAH8H3C4HJD7DTS6C7D3C2C5CQC9S9S2SQS7D8C6CTSJC8CKCAHQSKH9S8CJ

This can again easily be converted to forum code like so:

[hv=sn=mgoetze&s=SAQ8HT4DKQJT87C82&wn=Robot&w=S7653HA632D9CKJ65&nn=Robot&n=SK94H87D64CAQT743&en=Robot&e=SJT2HKQJ95DA532C9&d=e&v=n&b=2&a=1H(Major%20suit%20opening%20--%205+%20H%3B%2011-21%20HCP%3B%2012-22%20total%20points)2D(Two-level%20overcall%20--%205+%20D%3B%2010+%20HCP%3B%2011-)2H(Free%20major%20raise%20--%203+%20H%3B%206-10%20total%20points)PPD(3+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total%20points)3C(3+%20C%3B%203+%20H%3B%2010+%20HCP%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)4C(5+%20C%3B%208+%20HCP%3B%209%20total%20points)PPD(3+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PP4D(Cue%20bid%20--%203+%20C%3B%205+%20D%3B%203+%20S%3B%2014-18%20total)D(2+%20D%3B%203+%20H%3B%2010+%20HCP%3B%20biddable%20C%3B%202-11%208421%20HCP%20in%20C%3B%2010-%20total%20points)PPP&p=S3S4STSADKD9D4D5DQH6D6D2DJS5C3DAHKH4H2H7H5HTHAH8H3C4HJD7DTS6C7D3C2C5CQC9S9S2SQS7D8C6CTSJC8CKCAHQSKH9S8CJ]640|480[/hv]

Click on the hand to see me get 100% of the matchpoints for playing in a doubled "cue bid". ;)

If I were ashamed of the hand I could of course replace "sn=mgoetze" with "sn=someone_else".
"One of the painful things about our time is that those who feel certainty are stupid, and those with any imagination and understanding are filled with doubt and indecision"
    -- Bertrand Russell
1

#11 User is offline   Stephen Tu 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,098
  • Joined: 2003-May-14

Posted 2012-October-04, 13:07

Is there anyway we can make this easier for newbies, without them having to learn how to cut/paste and use hv tags?

Currently, if you just type in the movie link from myhands:
http://www.bridgebase.com/tools/handviewer.html?myhand=M-6517588-1349355901


into a post you get this broken diagram. I think in part because the above URL is unable to fetch anything, gets "file not found". Can this get fixed?

Ideally just pasting in the movie link from myhands would show a diagram in the forums without the user having to do anything special.
0

#12 User is offline   32519 

  • Insane 2-Diamond Bidder
  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,471
  • Joined: 2010-December-22
  • Gender:Male
  • Location:Mpumalanga, South Africa
  • Interests:Books, bridge, philately

Posted 2012-October-22, 23:46

How do you add the "Spoiler" to any hand posted?
0

#13 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,598
  • Joined: 2004-August-21
  • Gender:Male

Posted 2012-October-23, 08:07

Click on "Use Full Editor". "Spoiler" is one of the options in the "Other styles" menu.

#14 User is offline   pigpenz 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,553
  • Joined: 2005-April-25

Posted 2013-January-08, 12:22

View PostStephen Tu, on 2012-October-04, 13:07, said:

Is there anyway we can make this easier for newbies, without them having to learn how to cut/paste and use hv tags?

Currently, if you just type in the movie link from myhands:
http://www.bridgebase.com/tools/handviewer.html?myhand=M-6517588-1349355901


into a post you get this broken diagram. I think in part because the above URL is unable to fetch anything, gets "file not found". Can this get fixed?

Ideally just pasting in the movie link from myhands would show a diagram in the forums without the user having to do anything special.

Stephen had mailed BBradley couple of weaks ago about this way of posting hands from my hands on bbo, this is by far the easiest and the
arguments for adjusting the size of the paost are important also...I believe its the HV argument for size of post.

what I was wondering about since its a link to data in my hands does the post eventually time out since the clean up data on my hands after a period of time?
0

#15 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,598
  • Joined: 2004-August-21
  • Gender:Male

Posted 2013-January-09, 10:24

View Postpigpenz, on 2013-January-08, 12:22, said:

what I was wondering about since its a link to data in my hands does the post eventually time out since the clean up data on my hands after a period of time?

Yes. Try cutting and pasting that URL into your browser and you'll get a blank diagram.

#16 User is offline   1eyedjack 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,575
  • Joined: 2004-March-12
  • Gender:Male
  • Location:UK

Posted 2013-October-31, 00:40

I keep a little notepad .txt file on my desktop which just contains the text string:
sn=1eyedjack&wn=Robot&nn=Robot&en=Robot

then I just copy and paste the string into the hand when posting GIB bugs
Psych (pron. saik): A gross and deliberate misstatement of honour strength and/or suit length. Expressly permitted under Law 73E but forbidden contrary to that law by Acol club tourneys.

Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mPosted ImagesPosted ImagetPosted Imager-mPosted ImagendPosted Imageing) tr. v. - Any bid made by bridge player with which partner disagrees.

"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"

"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
0

#17 User is offline   1eyedjack 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,575
  • Joined: 2004-March-12
  • Gender:Male
  • Location:UK

Posted 2013-November-02, 02:08

Have been playing around with mgoetze's method. Thanks for that.

I found that when I exported to handviewer link it came up with an abbreviated link. You then have to block/copy/paste that link into a browser then the full link gets expanded into the URL bar.

I found that copying that (expanded) link to the clipboard and then pasting it into a new post window did not work because it posted it as a hyperlink rather than a text string.
I got around that by pasting it instead into a notepad file, then copying the notepad content (remember to turn off word wrap) and then it worked OK. It may be something to do with my browser (IE).There is probably a quicker way to achieve it.
Psych (pron. saik): A gross and deliberate misstatement of honour strength and/or suit length. Expressly permitted under Law 73E but forbidden contrary to that law by Acol club tourneys.

Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mPosted ImagesPosted ImagetPosted Imager-mPosted ImagendPosted Imageing) tr. v. - Any bid made by bridge player with which partner disagrees.

"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"

"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
0

#18 User is offline   Bbradley62 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,542
  • Joined: 2010-February-01
  • Gender:Male
  • Location:Brooklyn, NY, USA

Posted 2013-November-02, 10:04

I also have IE... When I open a hand diagram from myhands, I get the hand inside a blue frame. Between the top part of the blue frame and the hand, there is the link that you want to copy and then edit.

In case it isn't clear from above, "edit" means:
(1)Replace "http://www.bridgebase...?" at the beginning with "[hv=", then
(2)add "] 400 | 300 [ / hv ]" (with the blank spaces removed) to the end.

btw: please stop using 640|480 as the size; it's way too big. Standard is 400|300, although I personally prefer a slightly smaller 360|270.
0

#19 User is offline   1eyedjack 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,575
  • Joined: 2004-March-12
  • Gender:Male
  • Location:UK

Posted 2013-November-05, 02:38

Got it. 400 x 300 (or smaller).

I don;'t go to MyHands directly for the hands, but use the export hand feature in the flash version.
Psych (pron. saik): A gross and deliberate misstatement of honour strength and/or suit length. Expressly permitted under Law 73E but forbidden contrary to that law by Acol club tourneys.

Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mPosted ImagesPosted ImagetPosted Imager-mPosted ImagendPosted Imageing) tr. v. - Any bid made by bridge player with which partner disagrees.

"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"

"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
0

#20 User is offline   1eyedjack 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,575
  • Joined: 2004-March-12
  • Gender:Male
  • Location:UK

Posted 2013-December-24, 16:16

View PostBbradley62, on 2013-November-02, 10:04, said:

I also have IE... When I open a hand diagram from myhands, I get the hand inside a blue frame. Between the top part of the blue frame and the hand, there is the link that you want to copy and then edit.

In case it isn't clear from above, "edit" means:
(1)Replace "http://www.bridgebase...?" at the beginning with "[hv=", then
(2)add "] 400 | 300 [ / hv ]" (with the blank spaces removed) to the end.

btw: please stop using 640|480 as the size; it's way too big. Standard is 400|300, although I personally prefer a slightly smaller 360|270.

I can't get this to work consistently. Any help out there?
I can post hand fine when starting from the flash interface, but when I access a hand from the MyHands webpage I sometimes get a link which includes the full details, such as

Quote


and I am fine when that happens.

But on occasion the only link that I pick up from MyHands is in the format:

Quote


When I get that, how do I get it to convert to the full hand history format?
Psych (pron. saik): A gross and deliberate misstatement of honour strength and/or suit length. Expressly permitted under Law 73E but forbidden contrary to that law by Acol club tourneys.

Psyche (pron. sahy-kee): The human soul, spirit or mind (derived, personification thereof, beloved of Eros, Greek myth).
Masterminding (pron. mPosted ImagesPosted ImagetPosted Imager-mPosted ImagendPosted Imageing) tr. v. - Any bid made by bridge player with which partner disagrees.

"Gentlemen, when the barrage lifts." 9th battalion, King's own Yorkshire light infantry,
2000 years earlier: "morituri te salutant"

"I will be with you, whatever". Blair to Bush, precursor to invasion of Iraq
0

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

5 User(s) are reading this topic
0 members, 5 guests, 0 anonymous users