Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/10/2012, 06:52
miliky
 
Fecha de Ingreso: enero-2009
Mensajes: 49
Antigüedad: 15 años, 3 meses
Puntos: 2
que los juegos no aparezcan por categorias

Hola que tal,

Estoy tratando de que en meloniamaster.com los juegos aparezcan en el home sin las categorias. Es decir todos seguidos. Sé cero de php y bueno tampoco entiendo el manual, así que les dejo aquí el trozo de código que creo que se refiere a los juegos en el index a ver si me pueden dar algún consejo.

Código PHP:
function template_files_index() {
    global 
$settings$lang$main;

    foreach (
$main['categories'] as $var => $category) {
        echo 
'
    <div style="float: '
, ($var == 'left':'right') ,'; width: 309px;">
      <div class="content_box">
        <h2>'
$category['title'] ,'</h2>';
        foreach (
$main['files'][$category['id']] as $file) {
            echo 
'
        <div class="index_files_left">
          <a href="'
fileurl($file['id'], $file['title']) ,'"><img src="'$file['image'] ,'" width="'$settings['image_width'] ,'" height="'$settings['image_height'] ,'" title="'$file['title'] ,'" alt="'$file['title'] ,'" border="0" /></a>
        </div>
        <div class="index_files_right">
          <a href="'
fileurl($file['id'], $file['title']) ,'" class="file_link">'$file['title'] ,'</a><br />';
             
    echo 
'
          '
$file['description'] ,'<br />
          <span class="played">('
$lang['played_times'] ,': '$file['played'] ,')</span>
        </div>
        <div style="clear: both;"></div>'
;
        }
    echo 
'
        <div style="text-align: right;">
          <a href="'
categoryurl($category['id'], $category['title']) ,'">'$lang['more_in_category'] ,' '$category['title'] ,' &gt;</a>
        </div>
      </div>
    </div>'
;
        if (
$var == 1) {
            echo 
'
    <div style="clear: both;"></div>'
;
        }
    }