Tournament Description - Adding HTML

For discussion of the Poker Mavens server module and other administration topics
Supersonics
Posts: 127
Joined: Thu May 21, 2020 5:05 pm

Tournament Description - Adding HTML

Post 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
Supersonics
Posts: 127
Joined: Thu May 21, 2020 5:05 pm

Re: Tournament Description - Adding HTML

Post 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
Kent Briggs
Site Admin
Posts: 5626
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Description - Adding HTML

Post 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
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
Posts: 5626
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Description - Adding HTML

Post 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).
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
Posts: 5626
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Description - Adding HTML

Post 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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Supersonics
Posts: 127
Joined: Thu May 21, 2020 5:05 pm

Re: Tournament Description - Adding HTML

Post 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
Kent Briggs
Site Admin
Posts: 5626
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Description - Adding HTML

Post 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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Supersonics
Posts: 127
Joined: Thu May 21, 2020 5:05 pm

Re: Tournament Description - Adding HTML

Post 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
Supersonics
Posts: 127
Joined: Thu May 21, 2020 5:05 pm

Re: Tournament Description - Adding HTML

Post by Supersonics »

Do animated gif's work too? I'm trying one and it isn't working. Thanks
Kent Briggs
Site Admin
Posts: 5626
Joined: Wed Mar 19, 2008 8:47 pm

Re: Tournament Description - Adding HTML

Post 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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Post Reply