Change the number of letters

Started by kennethwriedtjensen, September 07, 2018, 02:28:27 PM

previous topic - next topic

kennethwriedtjensen

Under Latest Games, Latest Champs, Most Played does not show the full name of the game.

There comes ... after the game.

How do I remove it so it shows the full game name?

Skhilled

Hi kennethwriedtjensen. Are the game names really long? Are you viewing the arcade on, a cell phone or tablet?

Chen Zhen


I assume you are referring to the Enterprise skin.

Edit file:
./Source/Subs-ArcadeSkinA.php

Use a proper text editor (not MS Notepad) like notepad++
Download Notepad++

search for
Code Select
>= 23

Look at the lines of code that have that in it.
They are not identical so you can't search for the whole line which is why I suggest you search for those 5 characters.
Here is one example..

This:
Code Select
strlen($row['game_name']) >= 23 ? $row['game_name'] = mb_substr($row['game_name'],0,22) . '...' : '';

can be changed to (to allow an extra 5 characters):
Code Select
strlen($row['game_name']) >= 28 ? $row['game_name'] = mb_substr($row['game_name'],0,27) . '...' : '';

Chen Zhen


I might add an admin setting for this.
Keep in mind that it was set up on a desktop whereas those limits flow nicely due to the surrounding content.
Making the lines of text longer may cause that template to not look aesthetically pleasing.

kennethwriedtjensen

Thanks.

How do I allow me to write longer names on "Category Name"

Think there is a limit of 20 words now about?

Is it also in php, or in mysql you change it?