Author Topic: tournament export template question  (Read 2659 times)

dniezby

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
tournament export template question
« on: November 03, 2010, 10:24:24 AM »
Can this be done?
<playerRankingsRows = 16>

I only want to report the top 16 players.  If not, is there a way to show the top 16?

dniezby

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: tournament export template question
« Reply #1 on: November 03, 2010, 10:48:24 AM »
Also wondering why there isn't a token for event date?  Or is there?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: tournament export template question
« Reply #2 on: November 03, 2010, 11:32:42 AM »
Can this be done?
<playerRankingsRows = 16>

I only want to report the top 16 players.  If not, is there a way to show the top 16?

No, as far as I can remember there isn't an option to limit the number of players.  This would go into the "reports" category which is a feature I had to sideline due to how much effort it was requiring.  I hope I'll get a chance to finish it one day.

A workaround would be to use an enclosing HTML element that had a limited size.  Here's a snippet from the end of the default TournamentExport.html file:

      <p>

      <table border="0" cellspacing="0" class="playerRankingsTable">
        <tr><playerRankingsColumns></tr>
        <playerRankingsRows>
      </table>
    </center>

Try something like this:

      <p>

      <div style="height: 272; overflow-y: hidden">
      <table border="0" cellspacing="0" class="playerRankingsTable">
        <tr><playerRankingsColumns></tr>
        <playerRankingsRows>
      </table>
      </div>
    </center>

Assuming each row takes up 16 pixels of screen space, 16 pixels times (1 header row + 16 player rows = 17) = 272.  This would allow the first 16 players to be visible.  Obviously you might have to tweak that number.

Also wondering why there isn't a token for event date?  Or is there?

<starttime> and <endtime> are provided.  But that will be time of day, and date will only be included if enabled on your preferences.  I'll add an <eventdate> field.

dniezby

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: tournament export template question
« Reply #3 on: November 03, 2010, 11:41:58 AM »
That's right. I remember having to do the overflow css before.  I'll give that a try again.  I think it's browser dependent as to whether it's rendered correctly or not.

As for the eventdate token, that would be great. 

Can you also add <startingchipstack> token to the Tournament Export available tokens?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: tournament export template question
« Reply #4 on: November 04, 2010, 11:01:08 AM »
Can you also add <startingchipstack> token to the Tournament Export available tokens?

Yeah, that's easy.  See?  Finished it before even finishing this post.  :)

That's right. I remember having to do the overflow css before.  I'll give that a try again.  I think it's browser dependent as to whether it's rendered correctly or not.

The HTML I added above should be standard HTML, and thus should work in any browser.  But as with any HTML, your mileage may vary.

dniezby

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Re: tournament export template question
« Reply #5 on: November 07, 2010, 11:17:40 AM »
Sorry for the late reply. Apparently the notification email went to my spam folder....Don't know why..

Yeah, the HTML works fine. It renders in Firefox and Chrome fine.  IE doesn't render it quite so well...I know, shocker right?

I look forward to the next stable release with these quick tweaks.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6216
    • View Profile
Re: tournament export template question
« Reply #6 on: November 08, 2010, 10:18:24 AM »
Definite shocker.  :)

If you need help working it out, just post or email.