vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade (https://vborg.vbsupport.ru/forumdisplay.php?f=170)
-   -   How and where make letters limit for game names (https://vborg.vbsupport.ru/showthread.php?t=326887)

boss22 11-06-2018 10:19 AM

How and where make letters limit for game names
 
1 Attachment(s)
Please some help to decrease game names letters?

attach picture to see what i mean

regards

bosss

MrZeropage 11-06-2018 11:38 AM

Rename the game ;)

or open /arcade/modules/arcade_gamelist.php

NEWEST GAMES
search for
Code:

$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
Code:

$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 11-06-2018 11:56 AM

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 11-06-2018 12:01 PM

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)
Code:

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


boss22 11-06-2018 12:03 PM

I have not /arcade/modules/arcade_gamelist.php :):)

--------------- Added [DATE]1541513173[/DATE] at [TIME]1541513173[/TIME] ---------------

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

:):);)

--------------- Added [DATE]1541513783[/DATE] at [TIME]1541513783[/TIME] ---------------

Where put this code

PHP Code:

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



MrZeropage 11-06-2018 05:26 PM

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 11-06-2018 05:40 PM

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-11-2018 07:24 PM

implemented in ibProArcade v2.7.6+ :cool:


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete