Page 1 of 2

Tournament Description - Adding HTML

Posted: Wed Jun 08, 2022 3:11 pm
by Supersonics
Kent, in the Tournament Description FAQs, it lists the following...

Description - This is an optional tournament description, up to 500 characters. It is displayed at the top of the tournament's information window and may include HTML tags, including links. Be sure to use the target="_blank" option when making links so that the new page opens in a new window and doesn't overwrite the current game window.

What on earth does this even mean? ROFL I have read through this multiple times, googled HTML tags... and still don't understand what they are. I'm just curious what are the possibilities with HTML tags in a Tournament Description?

I would like to add a link to a youtube video in my description, but when I copied/pasted the link, it was not active. Is there a trick to make it active? Noob terms please

Thanks,
Supersonics

Re: Tournament Description - Adding HTML

Posted: Wed Jun 08, 2022 3:29 pm
by Supersonics
I found your HTML / API Forum thread and copied the following into my description, <a target="_blank" href="http://www.example.com/gifts/">Gift Shop</a>, and it worked! I have a lot to learn... but can I post an image in a tournament description also? If so, how? Thanks

Re: Tournament Description - Adding HTML

Posted: Wed Jun 08, 2022 4:00 pm
by Kent Briggs
Supersonics wrote: Wed Jun 08, 2022 3:29 pm can I post an image in a tournament description also? If so, how? Thanks
Try something like this:

Code: Select all

<img src="https://i.imgur.com/FJFE3ZO.jpeg" width="116" height="200">
Reference for the img tag:

https://www.w3schools.com/tags/tag_img.asp

Re: Tournament Description - Adding HTML

Posted: Wed Jun 08, 2022 4:13 pm
by Kent Briggs
Also, if you want to store the image on your poker server so you don't have to link to an external site, put the file in the WebRoot folder of your data folder (requires Pro or Gold edition) and then the src parameter only needs to contain the name like this:

Code: Select all

<img src="Example.png">
Use the Width and Height parameters to scale the image down if the natural size is too big for the dialog (as was done with the dog pic in the previous post).

Re: Tournament Description - Adding HTML

Posted: Wed Jun 08, 2022 4:19 pm
by Kent Briggs
And unlike the anchor "a" tag, the img tag doesn't need a target parameter because the image is getting embedded in the current page, not instructing the browser to go to a whole new page.

Re: Tournament Description - Adding HTML

Posted: Thu Jun 09, 2022 3:58 pm
by Supersonics
I wish I knew what this all meant. It is far beyond my computer skill level. ROFL

Are you saying I can add an image to a description? And if so, how do I do that? Do I need to load the image onto the server and then use an html tag to reference that image? Can you please post an example of how that would look? Or, if anyone on here knows how to do that, please post a pic of what it can ultimately look like and/or instructions on how to do it.

Thanks, I'm trying to understand, but this is like a foreign language to me right now.

Supersonics

Re: Tournament Description - Adding HTML

Posted: Thu Jun 09, 2022 4:36 pm
by Kent Briggs
Supersonics wrote: Thu Jun 09, 2022 3:58 pm Are you saying I can add an image to a description?
Copy and paste my first example above into your Description field and see.

Re: Tournament Description - Adding HTML

Posted: Thu Jun 09, 2022 6:06 pm
by Supersonics
Okay, that's neat it shows the image of the dogs.
So is that pulling that image from a website? Is there a way I can create a path to images I place in one of the server folders, for example the folder where I have the table graphics? Thanks

Re: Tournament Description - Adding HTML

Posted: Thu Jun 09, 2022 6:17 pm
by Supersonics
Do animated gif's work too? I'm trying one and it isn't working. Thanks

Re: Tournament Description - Adding HTML

Posted: Thu Jun 09, 2022 6:30 pm
by Kent Briggs
Supersonics wrote: Thu Jun 09, 2022 6:06 pm Okay, that's neat it shows the image of the dogs.
So is that pulling that image from a website? Is there a way I can create a path to images I place in one of the server folders, for example the folder where I have the table graphics? Thanks
The very next post above explains that exactly.