News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

[Foro] y Subforo [SOLUCIONADO]

Started by ElDon, July 26, 2008, 06:30:06 PM

Previous topic - Next topic

ElDon

hola como estan, bueno queria preguntar como le puedo quitar la rayita de division que tiene la tabla entre foro y subforo, solo esa que no quiero quitarsela a toda la pagina sola que no se vea esa rayita en esa division gracias amigos
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

sneijder23

busca esa tabla en el class="tborder" y lo borras

ElDon

si tborder pero donde amigo que archivo  :-[
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

sneijder23

si es foro principal boardindex.template y si es un subforo messageindex.template siempre hablando del theme que uses dentro de la ruta smf/tutheme/

ElDon

si claro el theme que estoy usando es el defaul modern, espero chequiar ahora y solucionar a ver que pasa ok. gracias de antemano.
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

ElDon

no logro solucionar esto hermano
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

sneijder23

pon una captura marcando lo quieres eliminar exactamente...

NicKCramleT

si coloca la captura... porq no termino de captar lo q kieres eliminar xD
Comunidad Down-ALL ONLINE!!!
www.downallnow.com

Aportes:

Favicon sin Mod
Traducir MODs

ElDon

jejej ahora mismo me pongo a eso a subir la imagen.....
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

ElDon

aqui esta la igmagen

http://img141.imageshack.us/my.php?image=dibujogp3.jpg

osea quiero unir esa linea con el foro, osea que se queden con el mismo margen si es posible pero que esa raya blanca del medio entre el foro y subforo se le quite y quede como una sola celda con el color original que tiene.
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

sneijder23

tienes 2 opciones

1-Borrarla directamente editando el boardindex.temnplate

2-editando la hoja de estilos y cambiandole el color aunque puede haver la posiblidad que cambie algo mas que esa linea...

NicKCramleT

la verdad es q no tngo la menor idea de como kitar esa línea, podrías intentar lo q dic sneijder23 y te recomiendo q hagas las 1era opcion q el te propone porq podrías cambiarle el color a otras cosas como el menciona...

Pero si lo q kieres es mejorar el aspecto de ésa sección de subforos te recomiendo que consideres las modificaciones que diseño MarioH en éste post http://www.simplemachines.org/community/index.php?topic=250135.msg1618331#msg1618331

ademas se puede apreciar en los screen que coloca que elimina esa línea que kieres kitar... espero te sea de utilidad eso!! salu2
Comunidad Down-ALL ONLINE!!!
www.downallnow.com

Aportes:

Favicon sin Mod
Traducir MODs

ElDon

#12
pero el problema es el siguien me dices en el boardindex.template, pero es que no se cuales serian las lineas lo he revisado de cabo a rabo y nada de nada, incluso he hecho pruebas a modificarlos, bueno parece que no hay solucion o por lo menos ahora no la hay :(,

bueno es que no lo quiero como lo tiene marioh, el tiene quizas la clave para hacerlo porque ha hecho algo parecido pero bueno no me ha contestado, quiero solo eso y yo se que se hace porq lo he visto en algunos foros smf 1.1.5, bueno seguimos esperando como hacerlo hermano y gracias a los dos
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

NicKCramleT

lo q puedes es intentar analizar el codigo que el ofrece ahi y compararlo con tus files, si conoces un poco de php seguro te daras cuenta en a línea del archivo que saca esa divición... intentelo! igual no pierdes nada...

PD: antes de hacer cualkier cosa recuerda respaldar los archivos q utilices no vallas a dañar tus files y luego sea peor el remedio q la enfermedad xD

suerte!
Comunidad Down-ALL ONLINE!!!
www.downallnow.com

Aportes:

Favicon sin Mod
Traducir MODs

ElDon

bueno gracia de nuevo amigo, pero lo que me he decidido es dejarlo asi jejej por un tiempo, simpre soluciono las cosas que me dan problemas asi, y luego lo agarro de nuevo, porque ya he hecho todo pero yo se que falta, lo de respaldar uff no quiero que me pase algo igual, siempre hago las copias siempre, espero no olvidarme nunca :)
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

sneijder23

para ayudarte a encontrar eso quiza si buscas por "moderator" o algo similar lo encuentres en el archivo,es cuestion de idea ;)

MarioH

#16
Quote from: ElDon on July 27, 2008, 04:04:53 PM
pero el problema es el siguien me dices en el boardindex.template, pero es que no se cuales serian las lineas lo he revisado de cabo a rabo y nada de nada, incluso he hecho pruebas a modificarlos, bueno parece que no hay solucion o por lo menos ahora no la hay :(,

bueno es que no lo quiero como lo tiene marioh, el tiene quizas la clave para hacerlo porque ha hecho algo parecido pero bueno no me ha contestado, quiero solo eso y yo se que se hace porq lo he visto en algunos foros smf 1.1.5, bueno seguimos esperando como hacerlo hermano y gracias a los dos


Sorry por no responderte el MP, pero este fin de semana se me ha pasado volando y no he tenido mucho tiempo.

las lineas que deberias modificar son estas


NOTA: Respalda
Nota 2: No es necesario cambiar todo el codigo, en realidad los cambios son 2 div y una tabla, pero se me descuadraba si no utilizaba todo el codigo, seguro modifique algo antes y no recuerdo por lo tanto te dejo todo.
Importante: dejara los foros como tu deseas, sin la linea (tabla) sin embargo por encima y no tube tiempo de testaarlo asi que no puedo asegurarte que no te valla a dar algun error. en otra cosa


BUSCA

/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */
$first = true;
foreach ($context['categories'] as $category)
{
echo '
<div class="tborder" style="margin-top: '
, $first ? '0;' : '1ex;' , '' , $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'width: 100%;' : '', '">
<div class="catbg'
, $category['new'] ? '2' : '', '" style="padding: 5px 5px 5px 10px;">';
$first = false;

// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a href="'
, $category['collapse_href'], '">', $category['collapse_image'], '</a>';

echo '
'
, $category['link'], '
</div>'
;

// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">'
;

/* Each board in each category's boards has:
new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
children (see below.), link_children (easier to use.), children_new (are they new?),
topics (# of), posts (# of), link, href, and last_post. (see below.) */
foreach ($category['boards'] as $board)
{
echo '
<tr>
<td '
, !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

// If the board is new, show a strong indicator.
if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';

echo '</a>
</td>
<td class="windowbg2">
<b><a href="'
, $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
'
, $board['description'];

// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<div style="padding-top: 1px;" class="smalltext"><i>'
, count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
'
, $board['posts'], ' ', $txt[21], ' <br />
'
, $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">'
;

/* The board's and children's 'last_post's have:
time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
link, href, subject, start (where they should go for the first unread post.),
and member. (which has id, name, link, href, username in it.) */
if (!empty($board['last_post']['id']))
echo '
<b>'
, $txt[22], '</b>  ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
'
, $txt['smf88'], ' ', $board['last_post']['link'], '<br />
'
, $txt[30], ' ', $board['last_post']['time'];
echo '
</span>
</td>
</tr>'
;
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
if (!empty($board['children']))
{
// Sort the links into an array with new boards bold so it can be imploded.
$children = array();
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<tr>
<td colspan="3" class="windowbg'
, !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
<span class="smalltext"><b>'
, $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
</td>
</tr>'
;
}
}
echo '
</table>'
;
}
echo '
</div>'
;
//Display ads Between cats
if (function_exists("show_category"))
{
$ads = show_category($category['id']);
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);
}

}

if ($context['user']['is_logged'])
{
echo '
<table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td align="'
, !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
<img src="'
. $settings['images_url'] . '/new_some.gif" alt="" align="middle" /> ', $txt[333], '
<img src="'
. $settings['images_url'] . '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
</td>
<td align="'
, !$context['right_to_left'] ? 'right' : 'left', '">';

// Mark read button.
$mark_read_button = array('markread' => array('text' => 452, 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;sesc=' . $context['session_id']));

// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
echo '
<table cellpadding="0" cellspacing="0" border="0" style="position: relative; top: -5px;">
<tr>
'
, template_button_strip($mark_read_button, 'top'), '
</tr>
</table>'
;
echo '
</td>
</tr>
</table>'
;
}



Y REMPLAZA
POR ESTAS




Quote
   /* Each category in categories is made up of:
      id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
      new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
      and boards. (see below.) */
   foreach ($context['categories'] as $category)
   {
      echo '
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="5">
   <tr>
      <td colspan="2" class="catbg', $category['new'] ? '2' : '', '" height="18">';

      // If this category even can collapse, show a link to collapse it.
      if ($category['can_collapse'])
         echo '
         <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>';

      echo '
         ', $category['link'], '
      </td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg', $category['new'] ? '2' : '', '"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg', $category['new'] ? '2' : '', '"> ', $txt[22], '</td>
   </tr>';

      // Assuming the category hasn't been collapsed...
      if (!$category['is_collapsed'])
      {
         /* Each board in each category's boards has:
            new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
            children (see below.), link_children (easier to use.), children_new (are they new?),
            topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)
         {
            echo '
   <tr class="windowbg2">
      <td class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

            // If the board is new, show a strong indicator.
            if ($board['new'])
               echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // This board doesn't have new posts, but its children do.
            elseif ($board['children_new'])
               echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
            // No new posts at all! The agony!!
            else
               echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';


            echo '</a></td>
      <td>
         <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
         ', $board['description'];

            // Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
         <div style="padding-top: 1px;" class="smalltext"><i>', count($board['moderators']) == 1 ? $txt[298] : $txt[299], ': ', implode(', ', $board['link_moderators']), '</i></div>';


            // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                  id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
         foreach ($board['children'] as $child)
               {
                  $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
                  $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
               }

               echo '
         <div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
            }

            // Show some basic information about the number of posts, etc.
            echo '
      </td>
                <td class="small2text windowbg2" valign="middle" width="4%" align="center">
                 ', $board['posts'], '</td><td class="smalltext" valign="middle" width="4%" align="center">
                        ', $board['topics'],'</td><td class="smalltext" valign="middle" width="22%">';

                 if (!empty($board['last_post']['id']))
                                        echo '
                        <a href="', $board['last_post']['href'], '"><img alt="go" src="', $settings['images_url'], '/icons/last_post.gif" align="right" hspace="3" border="0" /></a>
                        ', $board['last_post']['time'], '
                        ', $txt['smf88'], ' <b>', $board['last_post']['link'], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'],
                        ' ' ;
            echo '
      </td>
   </tr>';
         }
      }

      echo '
</table></div>
<br />';

//Display ads Between cats
   if (function_exists("show_category"))
   {
      $ads = show_category($category['id']);
      if(!empty($ads))
         if($ads['type']==0)
            echo $ads['content'];
         else
            eval($ads['content']);
      unset($ads);
   }
   
   }

   if ($context['user']['is_logged'])
   {
      echo '
<div class="tborder" style="padding: 3px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
   <tr class="catbg">
      <td align="', !$context['right_to_left'] ? 'left' : 'right', '" class="smalltext">
         <img src="' . $settings['images_url'] . '/new_some.gif" alt="" border="0" align="middle" /> ', $txt[333], '
         <img src="' . $settings['images_url'] . '/new_none.gif" alt="" border="0" align="middle" style="margin-left: 4ex;" /> ', $txt[334], '
      </td>
      <td align="', !$context['right_to_left'] ? 'right' : 'left', '" class="smalltext">';
      // Show the mark all as read button?
      if ($settings['show_mark_read'] && !empty($context['categories']))
         echo '
         <a href="', $scripturl, '?action=markasread;sa=all;sesc=' . $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markread.gif" alt="' . $txt[452] . '" border="0" />' : $txt[452]), '</a>';
      echo '
      </td>
   </tr>
</table></div>';
   }





Con estos dejaras los sub foros tal cual los trae el theme default pero sin la linea.

Si los quieres ordenados como mi web http://www.aimbox.cl te recomiendo visites el post que sugerio NicKCramleT .


Éxito.

AimBox Comunidad online, Jugos, Anime, Warez.
[Aportes]: Ordenar SubForos || Smiles Tipo IPB || Agreement.txt ||

ElDon

de momento no puedo revisarlo pero ya lo probare, pero puedes chequiarlo cuando tengas tiempo y decirme solo las lineas que tengo que modificar? te lo agradeceria de antemano, muy buena labor de ayuda para todos gracias de corazon ya saben esperemos resolver este problemita tonto pero nada me gusta :)
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

NicKCramleT

mierco!!! todo ese codigo pa kitar una linea??? jajaja
Comunidad Down-ALL ONLINE!!!
www.downallnow.com

Aportes:

Favicon sin Mod
Traducir MODs

ElDon

jejej por eso es que queria que me dijeran mas o menos jejeje
***NUEVO*** 2,500 Vistas Youtube!!! [PREGUNTAS?]
Posicionamiento SEO
Necesitas Comprar Trafico?
Descarga Nuestro Reporte SEO Gratis!!!

Advertisement: