Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > ibProArcade
How and where make letters limit for game names Details »»
How and where make letters limit for game names
Version: , by boss22 boss22 is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-06-2018 Last Update: Never Installs: 0
 
No support by the author.

Please some help to decrease game names letters?

attach picture to see what i mean

regards

bosss

Screenshots

File Type: png arcade_8.png (21.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-06-2018, 11:38 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-06-2018, 11:56 AM
boss22 boss22 is offline
 
Join Date: Oct 2012
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 11-06-2018, 12:01 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)."...";
}
Reply With Quote
  #5  
Old 11-06-2018, 12:03 PM
boss22 boss22 is offline
 
Join Date: Oct 2012
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)."...";

Reply With Quote
  #6  
Old 11-06-2018, 05:26 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 11-06-2018, 05:40 PM
boss22 boss22 is offline
 
Join Date: Oct 2012
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #8  
Old 11-11-2018, 07:24 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

implemented in ibProArcade v2.7.6+
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04819 seconds
  • Memory Usage 2,280KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete