Páginas (2):    1 2
monstru   21 Feb, 2012, 11:14 am
#11
(21 Feb, 2012, 10:58 am)Gypaete escribió: Eso es del plugin y como no lo tengo...

Lo que te aconsejo, es que quites el título de la plantilla. Bórralo, pal' caso, ya se las arregla con las Tabs.

¿De qué país eres?

Soy de rumania!

Vale, voi a borar el titulo de la plantilla. Donde se encontra este? o dime como se llama en ingles yo busco por web donde esta!

No es un pulgin el menu! Mira aqui se encontra el tuts como lo puedes poner! Hiso todo que se encontra en el tuts, pero las problema es las categorias como poner en el menu http://www.soportemybb.com/tema_AYUDA-Ne...7#pid20097
Gypaete   21 Feb, 2012, 11:15 am
#12
Pues prueba la solución que te he dado! xD
monstru   21 Feb, 2012, 11:17 am
#13
(21 Feb, 2012, 11:15 am)Gypaete escribió: Pues prueba la solución que te he dado! xD

Si lo voi a borar, pero dime unos pistas por donde puedo empesar por favor! el titulo se encontra en?
Gypaete   21 Feb, 2012, 1:38 pm
#14
En la plantilla forumbit_depth1_cat, y la puse en la página anterior, creo.
Dark Neo   21 Feb, 2012, 1:50 pm
#15
Ok creo que ya la mayoria de cosas quedaron bien,

El tutorial que puse estaba en inglés originalmente y yo lo puse en español para el foro y un seguimiento exacto.

Las categorías debes ser creadas, no solo las pones sino que hay que crear una categoría.

Luego de crearla, al igual que los foros cada categoría toma un id. Esto es lo que colocamos para nuestro menu en la parte de arriba (jQuery).

Una vez pongas todo y sea respetado el orden de como expuse el tema seguro te funciona.

First of all you may be sure you have the category id and so many cats do you want to use on the forum. The id it's asign when you create a forum or cat by MyBB. This id it's the important data because we take this value for our porpouses xD. Make a jQuery menu and a list of the forums of that category, not take the forum id, only cat id.

The menu takes the forums on the array, and shows one or more categories whe you clic on that, taken the forums on that category whitout problems.
monstru   22 Feb, 2012, 10:07 am
#16
Aqui pongo el codico de index.php donde esta el jquery! Donde tengo que poner el id mira donde lo puesto yo
Cita:<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$.noConflict();
</script>
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$.noConflict();
</script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('.tab').click(function(){
$('.at').removeClass('at');
$(this).addClass('at');
$('.content').slideUp();
var catshow = $(this).attr('rel');
$('#'+ catshow).slideDown();
});
});
</script>

<table border="0" width="100%" class="tborder" cellpadding="4" cellspacing="0" style="margin-bottom: 3px;">
<tr align="center">
<td class="tcat at tab" title="7" style="cursor: pointer;" rel="http://testforumx.net76.net/forumdisplay.php?fid=7">index</td>
<td class="tcat tab" title="CATEGORIA 5 Y 6" style="cursor: pointer;" rel="cat_5, #cat_6">CATEGORIA 5 Y 6</td>
<td class="tcat tab" title="CATEGORIA 9, 15, 18 Y 35" style="cursor: pointer;" rel="cat_9, #cat_15, #cat_18, #cat_35">CATEGORIA 9, 15, 18 Y 35</td>
</tr></table>

{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>

<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>
Última modificación: 22 Feb, 2012, 10:21 am por naumoffi2030.
Dark Neo   22 Feb, 2012, 12:03 pm
#17
Debe estar asi tu index
Your index must be like this
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<script type="text/javascript" src="jscripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
$.noConflict();
</script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('.tab').click(function(){
$('.at').removeClass('at');
$(this).addClass('at');
$('.content').slideUp();
var catshow = $(this).attr('rel');
$('#'+ catshow).slideDown();
});
});
</script>

<table border="0" width="100%" class="tborder" cellpadding="4" cellspacing="0" style="margin-bottom: 3px;">
<tr align="center">
<td class="tcat at tab" title="CAT 7" style="cursor: pointer;" rel="cat_1">CAT 1</td>
<td class="tcat tab" title="CAT 5 & 6" style="cursor: pointer;" rel="cat_5, #cat_6">CAT 5 &amp; 6</td>
</tr>
</table>

{$forums}
{$boardstats}

<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>

<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

No forum id sino cat id cada cat, debe ir dentro de rel="" y si es mas de una, separar por comas y solo la primera va normal, las otras deben tener # antes.

Not forum id on your td only the cat of your created forums, cat must be inside of the rel="" and if you put most than one cat, the other cats must be separated by commas and before the name put a # to any cat added.

IMPORTANTE:
Debes poner las categorias y no los foros, los foros son tomados automáticamente de acuerdo a que categoría pertenecen.
IMPORTANT:
You must put category and not forums, forums are taken auto for the cat you put on tha forums.

.at {
    background: #026CB1 url(images/thead_bg.gif) top left repeat-x;
    color: #ffffff;
}

#cat_5{
display: none;
}

#cat_6{
display: none;
}

Ese el CSS porque usas tres categorías y la primera esta activa, las otras deben ocultarse con la instruccion display:none del CSS. Cuando seleccionas otra categoria se cambia el display y ya pueden mostrarse, pero aqui la primera esta como activa, esa no debe ponerse en tu CSS, las otras dos si, porque son las que no se mostraran.

Tha are CSS you have to add on yoru global CSS if the case like index code, because only take 3 categories but only one has active and other two not display, for that reason the cat 5 and 6 has on the global.css like display:none. When you clic on other then change values.

<div id="cat_{$forum['fid']}" class="content">
....AQUI VA TODO EL CONTENIDO DEL ARCHIVO
</div>

PARA FINALIZAR:
plantilla forumbit_depth1_cat entre la etiqueta div a todo el contenido.


FINALLY:
Template forumbit_depth1_cat must be with the div on all document like shows. At begining you must put
<div id="cat_{$forum['fid']}" class="content">
at at the end of template put
</div>

That has the trick, here you put an asssign the content to show inside the tabs. That content has taken automatically when you put a div xD.
Gypaete   22 Feb, 2012, 12:24 pm
#18
Habías creado doble JS. Si haces eso, te da error. Ten cuidado.
monstru   25 Feb, 2012, 9:55 am
#19
Gracias a todos ya se puede pasar como resuelta! Lo tengo despues de un monton de nervios y mucha caffe...he desinstalado mybb y he empezado del zero y lo tengo! Gracias a todos!

Páginas (2):    1 2
  
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.