PDA

View Full Version : How and where make letters limit for game names


boss22
06 Nov 2018, 11:19
Please some help to decrease game names letters?

attach picture to see what i mean

regards

bosss

MrZeropage
06 Nov 2018, 12:38
Rename the game ;)

or open /arcade/modules/arcade_gamelist.php

NEWEST GAMES
search for
$new_games .= "<img src='arcade/images/{$newgline[gname]}2.gif' alt='' width='20' height='20' /> <a href='".$ibforums->base_url."act=Arcade&amp;do=play&amp;gameid={$newgline['gid']}'>{$newgline['gtitle']}</a> ";and adapt it there...
$newgline['gtitle'] is the name of the game

MOST POPULAR/PLAYED GAMES
search for
$pop_games .= " <a href='".$ibforums->base_url."act=Arcade&amp;do=play&amp;gameid={$popgline['gid']}'>{$popgline['gtitle']}</a> <a href='".$ibforums->base_url."act=Arcade&amp;do=play&amp;gameid={$popgline['gid']}'><img src='arcade/images/{$popgline[gname]}2.gif' border='0' alt='".$ibforums->lang[times_played].$popgline['gcount']."x' width='20' height='20' /></a>";and adapt it there...
$popgline['gtitle'] is the name of the game

boss22
06 Nov 2018, 12:56
Ha ...You maybe do not understand what i mean.. not change blocks name ... just limit characters of game names - and what to do with $popgline['gtitle'] ?

I have game ( not one only) with name - Slingo Tri-Peaks Solitaire - 3 Rounds - how maybe get like this - Slingo Tri-Peaks Solitaire...

Thanks MrZero...

MrZeropage
06 Nov 2018, 13:01
Why not change the game of the name to a shorter one?

What to do with $popline['gtitle'] ? (just spontaneous solution for your idea, but won't include that into ibPro)
if (strlen($popline['gtitle'])>25)
{
$popline['gtitle'] = substr($popline['gtitle'],0,25)."...";
}

boss22
06 Nov 2018, 13:03
I have not /arcade/modules/arcade_gamelist.php :):)

--------------- Added 1541513173 at 1541513173 ---------------

I have around 1500 games and should install 3000 more..can not change game name (shortly) in so many games ...

:):);)

--------------- Added 1541513783 at 1541513783 ---------------

Where put this code

if (strlen($popline['gtitle'])>25)
{
$popline['gtitle'] = substr($popline['gtitle'],0,25)."...";
}

MrZeropage
06 Nov 2018, 18:26
sorry, was /arcade/modules/arcade_showgames.php

But please understand that I won't support individual customizing which won't be part of a next release.
If you want to have professional services for personal wishes, you can order that and pay for it. Not to be rude, but I can't fulfil all wishes here, I already provided a piece of code which should be the inspiration for your own idea on the name-length :)

Now need to finish my presentation for my job...

boss22
06 Nov 2018, 18:40
Ok i understand .. will just help and wish that yours arcade should looks much better. I can pay for nice and funktional ibproarcade - no problem.

regards

bosss

I am not a coder and do not know where put the code (above for game names letters limit adjust)

MrZeropage
11 Nov 2018, 20:24
implemented in ibProArcade v2.7.6+ :cool: