Jump to content

diagrams with play included - how?


billw55

Recommended Posts

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.
Link to comment
Share on other sites

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.bridgebase.com/tools/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:

 

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

  • Upvote 4
Link to comment
Share on other sites

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".

  • Upvote 1
Link to comment
Share on other sites

  • 7 months later...

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.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

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?

Link to comment
Share on other sites

  • 9 months later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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

 

and I am fine when that happens.

 

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

When I get that, how do I get it to convert to the full hand history format?

Link to comment
Share on other sites

  • 4 years later...

I see this topic is old and everybody now seems to know how to display on the forum diagrams from actual play on BBO, so I'm obviously dumb :D

 

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....

 

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

 

[hv=sn=mgoetze&s=............

 

I can create and view the Handviewer Link, but it still doesn't seem to work if pasted into a post and I can't see how to convert it to forum code (which I have no problem understanding or editing if necessary).

Help please?

Link to comment
Share on other sites

I see this topic is old and everybody now seems to know how to display on the forum diagrams from actual play on BBO, so I'm obviously dumb :D

 

 

 

I can create and view the Handviewer Link, but it still doesn't seem to work if pasted into a post and I can't see how to convert it to forum code (which I have no problem understanding or editing if necessary).

Help please?

[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

]400|300|

Cut and paste the URL into a forum post

Replace the beginning stuff up to the question mark with

[hv=

At the end of the URL, add

]400!300!

(Adjust width and height to taste).

Add comments, if any, like this.

Finally close with

[/hv]

[/hv]

Link to comment
Share on other sites

Thanks!

 

Here's the guide for dummies that I wrote to remind myself ;)

 

___________________________________________________________________________________

 

 

HOW TO INSERT A DIAGRAM WITH PLAY IN A BRIDGEBASE FORUM POST

 

1. Reviewing the hand record in the old (Flash) version of BBO, click on Options -> Export Deal -> Handviewer Link.

This will give a URL such as: http://tinyurl.com/7z7qfjw

 

2. open this in a browser and get redirected to a long URL

 

3. copy this long URL and paste into the body of a new bridgebase forum post

 

3. remove text up to and including "?"

 

4. precede with "[hv="

 

5. append "400|300|[/hv]"

 

6. add any comments in () brackets

 

7. preview and adjust if necessary.

Link to comment
Share on other sites

  • 1 year later...

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

 

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

 

 

 

OK, so the obvious question is... how did north think he would win the first trick? Or any tricks for that matter? Or was he so pissed off with partner for outbidding him on this hand... ? :lol:

 

BTW, I think it would be a slightly better hand if all 4 hands played their respective Aces on trick one... :blink:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...