Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
Question about layout Details »»
Question about layout
Version: , by Kriminal Kriminal is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-29-2006 Last Update: Never Installs: 0
 
No support by the author.

Hi,
I want to modify the layout of ibPro, in order to show the games at side of gamers info.
For example:
Big table, three columns.
Column left: (width 25%) Lastest champs, king of arcade, leader of leaderboard, etc

Column center: (width 50%) Categories and games

Column right: (width 25%) New games, pop games and random game.

I was playing with askin_Arcade.php, and the result was:
Column left and right: no problem
Column center: I could get the category var {$cats} and the navbar {$clicktoplay['pages']} BUT I couln't get the var to show games. And after hours of trying differents ways, I had to give up and ask for help.

So... could you help me please?

Thanks in advance,

PS: The reason I want to do that is I want user could see the category and games to play in top of page, so they can play without scroll the page.

Show Your Support

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

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

could you provide a screenshot of this - and would you release your skin after it is finished ?

I would provide some information about upcoming v2.5.7+ so the skin can fit it ...

check function function row($entry,$gamesplit,$top,$pbest,$links,$rowcol,$ rating,$actualtop,$newgame,$st ylecolumns) in skinfile for the games to be listed ...
Reply With Quote
  #3  
Old 08-29-2006, 08:41 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
could you provide a screenshot of this
See attached

Quote:
- and would you release your skin after it is finished ?
Of course !

Quote:
check function function row($entry,$gamesplit,$top,$pbest,$links,$rowcol,$ rating,$actualtop,$newgame,$st ylecolumns) in skinfile for the games to be listed ...
Yes, I've been around this function but I can undestand how it's call in the template

This is the code of the central column (look at the screenshot)
HTML Code:
			<td valign="top">
				<table class="tborder" width="100%">
					<tr>
						<td class="tcat">Categorias y Juegos</td>
					</tr>
					<tr>
						<td class="alt1" >{$cats}</td>
					</tr>
					<tr>
						<td class="alt1" >I want to show games HERE</td>
					</tr>
					<tr>
						<td>{$clicktoplay['pages']}</td>
					</tr>
				</table>
			</td>
Attached Files
File Type: (21.4 KB, 33 views)
Reply With Quote
  #4  
Old 08-30-2006, 05:58 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The part with the games is not completely done this way


the skinfile-function row() displays one the information for one(!) game and uses several variables:
$entry -> information about the game, like GameID, title, size, costs ect.
$top -> best result ever
$acualtop -> current highscore
$pbest -> personal best result
$rating -> rating for the game

notice that the first three variables are arrays with several information in it.


Just read through the skinfile and the $row()-function to see how everything is done


btw: which language is your arcade ? you did translation, or is that any of the provided languages ?
Reply With Quote
  #5  
Old 08-30-2006, 12:02 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, but I can't yet undestand how to put a call inside the table.
You parse variables there, like {$cats}; but there's no vars like {$rows} or something like this.
I'm sure I'm not expressing so well, please excuse me; I'm not a natural english speaker. Look at the code I pasted in the previous post and tell me how can I replace there <td class="alt1" >I want to show games HERE</td> for <td class="alt1" >row()</td>... that won't work, no?

I'm Argentinian, the language is Spanish. The moderators of my board (www.psicofxp.com) did the translation, but I need to make some changes and corrections. After it will be finished, I'll send you the file; thats ok?
The ibPro arcade is not installed yet in production board, i'm working on localhost with 3.6, a lot of changes of style, design and of course, new sections (ibPro is one of them, in replace of v3arcade)

By the way, you asked me to release the skin file I'm working: could you tell me how can I work with the new skin as separate file; because I tried to rename the arcade_Skin but didn't work so I'm working on it.

Thanks for all !!
Reply With Quote
  #6  
Old 08-30-2006, 01:03 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, the row-funciton() is called from arcade.php

arcade.php fills the needed data in some variables and gives this information to the row()-function which finally spits out the HTML.

understand what I mean ?

you should use the variables mentioned above, like $entry['gtitle'] for the Gamename ...
Reply With Quote
  #7  
Old 08-30-2006, 01:39 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I undertastand.
The table I want to modify is displayed inside function start (in skinArcade).
Is arcade.php that function is called aroun line 1946 and the process of game list is above, around line 2209
So, if I want to include the game list in the table, I have to include the game list as a parameter of function start; in order to be displayed. But making this involves modifying so much your code and this is not good for futures upgrades.

At least I'm not considering someting, I can't display the page like ordinary templates, where vars are present everywhere; I need to pay attention the correct order they are generated because the layout is shown in parts (first start, then rows). I'm right?

Thanks so much for your support, I appreciate your dedication.
Please consider for future versions the option to show game list at top, or at side of info. People who don't know the board and came to play, want to play and the info of champs is not so relevant as game list, I think.

Thanks so much again!
Reply With Quote
  #8  
Old 08-30-2006, 02:42 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

function start() just does the main header above the gamelist, after that the arcade.php calls row() to display the games

maybe you manage to use start() for left+right sidebar and after that arcade.php can use row() to fill the center ?
Reply With Quote
  #9  
Old 08-30-2006, 05:48 PM
Kriminal's Avatar
Kriminal Kriminal is offline
 
Join Date: Dec 2004
Location: Buenos Aires
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MrZeropage
maybe you manage to use start() for left+right sidebar and after that arcade.php can use row() to fill the center ?
But in tha case, I need to call start to fill the left column, the call row to fill the center, and call start again to fill the right... not good.

But in case I don't use a right column; and use start to fill left column and row to fill main column... I could open the table in function start and end it after rows are displayed... in function stop... I think got it. Let me try and I'll show the results
Reply With Quote
  #10  
Old 08-30-2006, 06:49 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, waiting for it
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 06:05 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.06126 seconds
  • Memory Usage 2,314KB
  • 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
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete