vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Question about layout (https://vborg.vbsupport.ru/showthread.php?t=125254)

Kriminal 08-29-2006 06:27 PM

Question about layout
 
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.

MrZeropage 08-29-2006 07:52 PM

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 ...

Kriminal 08-29-2006 08:41 PM

1 Attachment(s)
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>


MrZeropage 08-30-2006 05:58 AM

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 ?

Kriminal 08-30-2006 12:02 PM

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 !!

MrZeropage 08-30-2006 01:03 PM

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 ...

Kriminal 08-30-2006 01:39 PM

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!

MrZeropage 08-30-2006 02:42 PM

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 ?

Kriminal 08-30-2006 05:48 PM

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

MrZeropage 08-30-2006 06:49 PM

ok, waiting for it :)


All times are GMT. The time now is 10:03 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.01026 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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