Author Topic: InLineRankings  (Read 1589 times)

jodybingo

  • Hero Member
  • *****
  • Posts: 667
    • View Profile
    • Personal Web Site
InLineRankings
« on: September 29, 2010, 04:26:56 PM »
Hi Corey (and Magic, Stu and the rest of the TD gang),
I've tried a few different things but can't seem to insert a png (pretty small, 20px X 20px) as a connector in InLineRankings. Can this be done?? The image is our League logo and would look pretty cool using this instead of ASCII characters
Thanks

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: InLineRankings
« Reply #1 on: September 29, 2010, 10:48:23 PM »
This worked for me:

<inlinerankings template="[ordinalrank] place: [player] busted out at [timeout] round [roundout] by [hitman]" connector="&lt;img src='myimages/dash.gif'&gt;">

I guess the things to note are:
- the use of &lt; for <
- the use of &gt; for >
- the use of single quotes ' instead of double quotes "

If you use the Insert Token tool, you just need to remember to use single quotes instead of double quotes.  Less-than and greater-than will be encoded for you.

jodybingo

  • Hero Member
  • *****
  • Posts: 667
    • View Profile
    • Personal Web Site
Re: InLineRankings
« Reply #2 on: September 30, 2010, 01:24:14 AM »
Here is what I have.

<marquee behavior="scroll" direction="left" scrollamount="3" scrolldelay="1">
<p style="text-align: center"</marquee><inlinerankings template="[ordinalrank] place: [player] - [points] points" connector="&lt;img src='file:///<datastore>\images\connector.png'&gt;">

Something is missing. This prevents the rankings from showing up all together...

jodybingo

  • Hero Member
  • *****
  • Posts: 667
    • View Profile
    • Personal Web Site
Re: InLineRankings
« Reply #3 on: September 30, 2010, 02:46:53 AM »
I realized I still had < and > in the html, changed it to this...

<marquee behavior="scroll" direction="left" scrollamount="3" scrolldelay="1">
<p style="text-align: center"</marquee><inlinerankings template="[ordinalrank] place: [player] - [points] points" connector="&lt;img src='file:\\\&lt;datastore&gt;/images/connector.png'&gt;">

The rankings are scrolling however a broken image link is showing up as my connector...
« Last Edit: September 30, 2010, 03:58:42 AM by jodybingo »

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 6220
    • View Profile
Re: InLineRankings
« Reply #4 on: September 30, 2010, 10:07:49 AM »
That's because nested tokens aren't processed.  In other words, you can't have the token <datastore> inside of the <inlinerankings> token, unfortunately.  The parser isn't real sophisticated, and this confuses it.

jodybingo

  • Hero Member
  • *****
  • Posts: 667
    • View Profile
    • Personal Web Site
Re: InLineRankings
« Reply #5 on: September 30, 2010, 03:32:12 PM »
I put the logo on my web server and inserted the url into the token. This works fine.