[Tuto]Pestañas en portal con JQuery y PHP[Mybb-es] [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]


[Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Sin conexión Gustavo R.
Mensaje: #1
[Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Administrador
*******
Administradores

Avatar de Gustavo R.

Info del foro de este user
Mensajes: 2,163
Registro en: Feb 2009
Reputación: 210
Bueno aquí les dejo esta increíble modificación que tengo en blixcore.
Con esta modificación el portal les quedara así:

www.blixcore.com/portal.php

Cosas necesarias:
  • Plugin de PHP en plantillas (Adjunto al final)
  • Todo el codigo
  • Editar urls


Paso 1.
Sube este plugin a tu foro y activalo.
[attachment=898]
ojo renombra el archivo a phptpl.php antes de subirlo, errorneamente cambiaron el nombre del archivo y no aparecera en el panel si no lo renombran


Paso 2.
Ve a Admincp/Plantillas/Portal y en la plantilla portal borra todo y mete este código:
Código PHP:
<html>
<
head>
<
title>{$mybb->settings['bbname']}</title>
{
$headerinclude}
</
head>
<
body>
{
$header}
{
$ps_header_portal}
<
script type="text/javascript">

jQuery.noConflict();

jQuery(document).ready(function() {

    
jQuery(".pestañas_portal_contenido").hide();

    
jQuery("ul.pestañas_portal li:first").addClass("activa").show();

    
jQuery(".pestañas_portal_contenido:first").show();

    
jQuery("ul.pestañas_portal li").click(function() {

        
jQuery("ul.pestañas_portal li").removeClass("activa");

        
jQuery(this).addClass("activa");

        
jQuery(".pestañas_portal_contenido").hide();

        var 
activeTab jQuery(this).find("a").attr("href");

        
jQuery(activeTab).fadeIn();

        return 
false;

    });

});

</script>

<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center">

<tr>
<td valign="top">
<ul align="center">
<li><a href="#pestaña1">Últimos Post</a></li>
<li><a href="#pestaña2">Últimos Comentarios</a></li>
<li><a href="#pestaña3">Top posteadores</a></li>
<li><a href="#pestaña4">Afiliados</a></li>
<li><a href="#pestaña5">Nuevo Post</a></li>
</ul>
<div>
<div style="display: block;" id="pestaña1">
<?php
if (!defined("IN_PORTAL")) {
    die(
"<div style=\"border:1px solid #CC0000; padding:3px; margin:0; font-family:Tahoma; width:250px; font-size:12px;\"><strong>Error:</strong> This file cannot be viewed directly!</div>");
}

// Get forums user cannot view
$unviewable get_unviewable_forums();
if(
$unviewable)
{
    
$unviewwhere " AND fid NOT IN ($unviewable)";
}

$threadlimit 12;
$query $db->query("
    SELECT t.*, t.subject AS threadsubject, u.username, u.usergroup, u.displaygroup, i.*, i.name AS iconname,
    t.dateline AS threaddate, t.lastpost AS threadlastpost
    FROM "
.TABLE_PREFIX."threads t
    LEFT JOIN "
.TABLE_PREFIX."icons i ON (i.iid=t.icon)
    LEFT JOIN "
.TABLE_PREFIX."users u ON (t.lastposter=u.username)
    WHERE t.visible = '1'
    
$unviewwhere
    GROUP BY t.tid
    ORDER BY threaddate DESC
    LIMIT 0, 
$threadlimit
"
);

while(
$threads $db->fetch_array($query))
{

    if(
$threads['icon'] > 0)
    {
        
$icon "<img src=\"{$threads['path']}\" alt=\"{$threads['iconname']}\" />";
    }
    else
    {
        
$icon "&nbsp;";
    }

    if(
strlen($threads['threadsubject']) > "60")
    {
        
$threadsthreadsubject my_substr($threads['threadsubject'],0,60)."...";
    }
    else
    {
        
$threadsthreadsubject $threads['threadsubject'];
    }

    if(
strlen($threads['forumname']) > "20")
    {
        
$threadsforumname my_substr($threads['forumname'],0,20)."...";
    }
    else
    {
        
$threadsforumname $threads['forumname'];
    }

    
$threadlink get_thread_link($threads['tid']);
    
$forumlink get_forum_link($threads['fid']);
    
$replies my_number_format($threads['replies']);
    
$views my_number_format($threads['views']);
    
$lastpostdate my_date($mybb->settings['dateformat'], $threads['threadlastpost']);
    
$lastposttime my_date($mybb->settings['timeformat'], $threads['threadlastpost']);
    
$lastposter format_name($threads['username'], $threads['usergroup'], $threads['displaygroup']);
    
$lastposter build_profile_link($lastposter$threads['lastposteruid']);

    
$last_thread .= "<tr>
        <td class=\"trow2\" align=\"center\" width=\"1\"><a href=\"[url=http://blixcore.com/forumdisplay.php?fid=]http://blixcore.com/forumdisplay.php?fid=[/url]
{$threads['fid']}\"><img src=\"images//ficons/icon_{$threads['fid']}.png\" width=\"35\" height=\"35\" alt=\"\"  title=\"$threads[forumname]\" /></a></td>
        <td class=\"trow2\"><a href=\"
$threadlink\" title=\"$threads[threadsubject]\">$threadsthreadsubject</a><br />
        <span class=\"smalltext\">
        
$lastpostdate $lastposttime, Posteado por <em>$lastposter</em><br />
        <div class=\"float_right\">
$lastpostdate $lastposttime <a href=\"$threadlink&action=lastpost\"><img src=\"images/tema/lastpost.png\" style=\"vertical-align: middle;\" /></a> </div> 
            </span>
            </td>
        <td class=\"tcat\" width=\"100\">
<span class=\"smalltext\"><strong>&raquo; </strong>
        Respuestas: 
$replies <br />
        <strong>&raquo; </strong>Visitas: 
$views
        </td>
</tr>"
;

}
if(!
$last_thread){ $last_thread "<tr><td class=\"trow1\" colspan=\"5\">{$lang->no_thread}</td></tr>"; }
echo 
"
<table border=\"0\" cellspacing=\"1\" cellpadding=\"4\" class=\"tborder\" style=\"-moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px;\">
        <tbody><tr>
            <td class=\"thead\" colspan=\"3\"><strong>Últimos Post</strong></td>
        </tr>
        </tbody>
{$last_thread}
</table>"
;
?>
</div>
<div style="display: block;" id="pestaña2">
<?php
if (!defined("IN_PORTAL")) {
    die(
"<div style=\"border:1px solid #CC0000; padding:3px; margin:0; font-family:Tahoma; width:250px; font-size:12px;\"><strong>Error:</strong> This file cannot be viewed directly!</div>");
}

// Get forums user cannot view
$unviewable get_unviewable_forums();
if(
$unviewable)
{
    
$unviewwhere " AND fid NOT IN ($unviewable)";
}

$altbg alt_trow();
$threadlist '';
$showlimit 15;
$query $db->query("
    SELECT p.*, u.username
    FROM "
.TABLE_PREFIX."posts p
    LEFT JOIN "
.TABLE_PREFIX."users u ON (u.uid=p.uid)
    WHERE p.visible='1' 
$unviewwhere
    ORDER BY p.dateline DESC 
    LIMIT 0, "
.$showlimit
);
while(
$thread $db->fetch_array($query))
{
    
$lastpostdate my_date($mybb->settings['dateformat'], $thread['dateline']);
    
$lastposttime my_date($mybb->settings['timeformat'], $thread['dateline']);
    
// Don't link to guest's profiles (they have no profile).
    
if($thread['uid'] == 0)
    {
        
$lastposterlink $thread['username'];
    }
    else
    {
        
$lastposterlink build_profile_link($thread['username'], $thread['uid']);
    }
    if(
my_strlen($thread['subject']) > 20)
    {
        
$thread['subject'] = my_substr($thread['subject'], 020) . "...";
    }
    
$thread['subject'] = htmlspecialchars_uni($parser->parse_badwords($thread['subject']));
    
$thread['threadlink'] = get_post_link($thread['pid'],$thread['tid']);
$forumlink get_forum_link($threads['fid']);
    
$threadlist .= "
<tr>
        <td class=\"trow2\"><strong><a href=\""
.$mybb->settings['bburl']."/".$thread['threadlink']."#pid".$thread['pid']."\">$thread[subject]</a></strong><br />
        <span class=\"smalltext\">
$lang->posted_by <em>$lastposterlink</em> -$lastpostdate $lastposttime
            </span>
            </td>
</tr>"
;
    
$altbg alt_trow();
}
if(
$threadlist)

    
// Show the table only if there are threads
    
$latestposts "<table border=\"0\" cellspacing=\"".$theme['borderwidth']."\" cellpadding=\"".$theme['tablespace']."\" class=\"tborder\">
        <tbody><tr>
            <td class=\"thead\"><div class=\"expcolimage\"></div><strong>Ultimos comentarios</strong></td>
        </tr>
</tbody>
        
{$threadlist}        
    </table>"
;
}
else
{
    
$latestposts "<table border=\"0\" cellspacing=\"".$theme['borderwidth']."\" cellpadding=\"".$theme['tablespace']."\" class=\"tborder\">
        <tbody><tr>
            <td class=\"thead\"><div class=\"expcolimage\"></div><strong>Ultimos comentarios</strong></td>
        </tr></tbody>
        <tbody style=\"
{$expdisplay}\" id=\"block_{$result_blocks['id']}_e\">
        <tr>
        <td class=\"
$altbg\">No Post</td>
        </tr>
        </tbody>
    </table>"
;
}

echo 
"$latestposts";
?>
</div>
<div style="display: block;" id="pestaña3">
<?php
$tpaltbg 
alt_trow();
$query $db->query("SELECT uid, username, postnum, avatar, avatardimensions, usergroup, displaygroup FROM ".TABLE_PREFIX."users ORDER by postnum DESC LIMIT 0, 10");
while(
$user $db->fetch_array($query))
{
    
$username format_name($user['username'], $user['usergroup'], $user['displaygroup']);
    
$profilelink get_profile_link($user['uid']);
    if(
$user['postnum'] <= "1"){ $postnum my_number_format($user['postnum'])." ".$lang->have_post; }else{ $postnum my_number_format($user['postnum'])." ".$lang->have_posts; }
    
    if(
$user['avatar']){ $user['avatar'] = htmlspecialchars_uni($user['avatar']); }else{ $user['avatar'] = $mybb->settings['bburl']."/portal/images/user.png"$user['avatardimensions'] = "40|40"; }
    
$avatar_dimensions explode("|"$user['avatardimensions']);
    
    if(
$avatar_dimensions[0] && $avatar_dimensions[1])
    {
        list(
$max_width$max_height) = explode("x"my_strtolower("40x40"));
        if(
$avatar_dimensions[0] > $max_width || $avatar_dimensions[1] > $max_height)
        {
            require_once 
MYBB_ROOT."inc/functions_image.php";
            
$scaled_dimensions scale_image($avatar_dimensions[0], $avatar_dimensions[1], $max_width$max_height);
            
$block_avatar_width_height "width=\"{$scaled_dimensions['width']}\" height=\"{$scaled_dimensions['height']}\"";
        }
        else
        {
            
$block_avatar_width_height "width=\"{$avatar_dimensions[0]}\" height=\"{$avatar_dimensions[1]}\"";    
        }
    }
    
    
$topposters .= "<tr><td class=\"tcat\" width=\"50\" align=\"center\"><img src=\"".$user['avatar']."\" alt=\"\" width=\"70\" height=\"70\" border=\"0\"></td><td class=\"trow1\"><a href=\"{$mybb->settings['bburl']}/{$profilelink}\"><strong>{$username}</strong></a><br></td><td class=\"trow1\" align=\"center\">{$postnum}</td></tr>";
$tpaltbg alt_trow();
}

echo 
"<table border=\"0\" cellspacing=\"1\" cellpadding=\"4\" class=\"tborder\" style=\"-moz-border-radius-topleft: 0px; -webkit-border-top-left-radius: 0px; border-top-left-radius: 0px;\">
        <tr>
            <td class=\"thead\" colspan=\"3\"><strong>Top participativos</strong></td>
        </tr>
        <tr>
            <td class=\"tcat smalltext\" width=\"70\" align=\"center\"><strong>Avatar</strong></td>
            <td class=\"tcat smalltext\"><strong>Nombre de usuario</strong></td>
            <td class=\"tcat smalltext\" align=\"center\"><strong>Mensajes</strong></td>
        </tr>
        
{$topposters}
    </table>"
;
?>
</div>
<div style="display: block;" id="pestaña4">
<table border="0" cellspacing="0" cellpadding="4" width="100%">

    <tr>
<td colspan='2' colspan=""><center><strong>Los hermanos de Shitup (vip)</strong></center></td> 
    <tr><td class='trow2'><center><a href="[url=http://www.blixcore.com.ar/]http://www.blixcore.com.ar/[/url]" title="Blixcore HB"_blank">BlixCore</a></center>  </td><td class='trow2'>Blixcore Foro de lo mejor...</td></tr>

</table>

<br />
<table border="0" cellspacing="0" cellpadding="4" width="100%">


    <tr>
       <td colspan='2' colspan=""><strong>Afiliarse</strong></td></tr>
<tr><td>¿Como ser Afiliado?</td>    
<td>
Este es nuestro espacio de afiliados. Para afiliarte debes solicitarlo en la zona de afiliados en el foro, para aparecer en zona vip, deveras poner un banner shitup de 300x80 en tu foro, o puedes poner el de 88x31 para aparecer en la parte de abajo de zona afiliados:
    </td>
</tr>    
<tr>
<td class='trow1' width="20%"><center>Banner (88x31)</center><br/>
<center><a href="[url=http://www.blixcore.com/]http://www.blixcore.com/[/url]" title="ShitUp ↑゚ Foro sin reglas!" target="_blank"><img src="[url=http://www.shitup.net/images/shit.png]http://www.shitup.net/images/shit.png[/url]"></a></center></td>
<td class='trow1' width="60%">
<textarea cols='50' rows='5' readonly='readonly'><a href="[url=http://www.blixcore.com/]http://www.blixcore.com/[/url]" title="ShitUp ↑゚ Foro sin reglas!" target="_blank"><img src="[url=http://www.shitup.net/images/shit.png]http://www.shitup.net/images/shit.png[/url]"></a>

</textarea>
</td>
</tr>
<tr>
<td class='trow1' width="20%"><center>Banner (300x80)</center><br/>
<center><a href="[url=http://www.shitup.net/]http://www.shitup.net/[/url]" title="ShitUp ↑゚ Foro sin reglas!" target="_blank"><img src="[url=http://www.shitup.net/images/shit300.png]http://www.shitup.net/images/shit300.png[/url]"></a></center>
 </td>
<td class='trow1' width="60%">
<textarea cols='50' rows='5' readonly='readonly'><a href="[url=http://www.shitup.net/]http://www.shitup.net/[/url]" title="ShitUp ↑゚ Foro sin reglas!" target="_blank"><img src="[url=http://www.shitup.net/images/shit300.png]http://www.shitup.net/images/shit300.png[/url]"></a>

</textarea>
</td>
</tr>
   
</table>
<table border="0" cellspacing="1" cellpadding="4">
<tr>
<td><strong>Afiliados </td>
</tr>
<tr>
<td align="center">

<div align="center">
<strong>


</td>
</tr>
</table>
</div>
<div style="display: block;" id="pestaña5">
<?php
define
("IN_MYBB"1);
define('THIS_SCRIPT''nuevo.php');
require_once 
"./global.php";
add_breadcrumb("Redactar Nuevo Tema");
$consulta $db->query("SELECT * FROM ".TABLE_PREFIX."forums WHERE active='1' AND open='1' ORDER BY pid, disporder");
while (
$foruml $db->fetch_array($consulta))
{
    if(
$foruml[type]=="f")
    {        
    
$foruml[name]="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$foruml[name]}";
    
$permissioncache[$foruml[fid]] = forum_permissions($fid=$foruml[fid]);
        if(
$permissioncache[$foruml[fid]][canview]=="0") {}
        else
        {
        
$forumlist.="<option value=\"{$foruml[fid]}\"> {$foruml[name]}</option>";    
        }
    }
}
if(
$mybb->user['uid'])
{
    eval(
"\$savedraftbutton = \"".$templates->get("post_savedraftbutton"10)."\";");
}
$subscriptionmethod="<tr>
<td class=\"trow2\" valign=\"top\"><b>Suscripción a Tema:</b><br /><span class=\"smalltext\">
Especifique que tipo de notificación si quieres suscribirte a este tema. (Sólo usuarios registrados)<br />
    <label><input type=\"radio\" name=\"postoptions[subscriptionmethod]\" checked=\"checked\" value=\"\" style=\"vertical-align: middle;\" /> No suscribir a este tema</label><br />
    <label><input type=\"radio\" name=\"postoptions[subscriptionmethod]\" value=\"none\" style=\"vertical-align: middle;\" /> Suscribir sin recibir ninguna notificación por correo electrónico de nuevas respuestas</label><br />
    <label><input type=\"radio\" name=\"postoptions[subscriptionmethod]\" value=\"instant\" style=\"vertical-align: middle;\" /> Suscríbase y reciba notificación por correo electrónico de respuestas nuevas</label></span><br />
</td>
</tr>"
;
if(
$mybb->usergroup[canmodcp]=="1")
{
$modoptions "<tr>
<td class=\"trow2\" valign=\"top\"><strong>Opciones del Moderador:</strong><br />
<span class=\"smalltext\">
<label><input type=\"checkbox\" class=\"checkbox\" name=\"modoptions[closethread]\" value=\"1\" />&nbsp;<b>Cerrar Tema:</b> evita futuros mensajes en este tema.</label><br />
<label><input type=\"checkbox\" class=\"checkbox\" name=\"modoptions[stickthread]\" value=\"1\" />&nbsp;<b>Tema Importante:</b> Ubica este tema al principio de la lista de temas (a la vista de todos).</label>
</span></td>
</tr>"
;
}
if(
$mybb->settings['bbcodeinserter'] != && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0))
{
    
$codebuttons build_mycode_inserter();
}
$npost "
<table border=\"0\" cellspacing=\"
{$theme['borderwidth']}\" cellpadding=\"{$theme['tablespace']}\" class=\"tborder\">
<tr>
<td class=\"thead\"><strong>Agregar Nuevo Post</strong></td>
</tr>
<tr>
<td class=\"trow2\" width=\"100%\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">
<td align=\"left\" width=\"60%\">
<table border=\"0\" cellspacing=\"
{$theme['borderwidth']}\" cellpadding=\"{$theme['tablespace']}\" width=\"100%\">
<tr>
<form action=\"newthread.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"input\">
<input type=\"hidden\" name=\"my_post_key\" value=\"
{$mybb->post_code}\" />
<td class=\"trow2\">
<span style=\"font-size:18px;font-weight: bold;\">Titulo:</span><br />
<input type=\"text\" class=\"textbox\" name=\"subject\" size=\"85\" maxlength=\"85\" value=\"\" tabindex=\"1\" /></td>
</tr>
<td class=\"trow2\">
<span style=\"font-size:18px;font-weight: bold;\">Contenido:</span><br />
<textarea name=\"message\" id=\"message\" rows=\"20\" cols=\"70\" tabindex=\"2\"></textarea>
{$codebuttons}
</td>
</tr>
</table>
</td>
<td align=\"rigth\" valign=\"top\" width=\"40%\">
<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><span style=\"font-size:18px;font-weight: bold;\">Escoger Categoria:</span><br />
<select name=\"fid\" size=\"28\" style=\"width: 230px;\">
{$forumlist}
</select></td>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<td class=\"trow1\" valign=\"top\"><strong>Opciones de Envío:</strong><br/><span class=\"smalltext\">
<label><input type=\"checkbox\" class=\"checkbox\" name=\"postoptions[signature]\" checked=\"checked\" value=\"1\" tabindex=\"7\"/> <b>Firma:</b> incluye tu firma. (Solo usuarios registrados)</label>
{$disablesmilies}</span></td>
</tr>
{$subscriptionmethod}
{$modoptions}
</table>
<br />
<div style=\"text-align:center\"><input type=\"submit\" class=\"button\" name=\"submit\" value=\"Publicar Tema\" tabindex=\"4\" accesskey=\"s\" />  <input type=\"submit\" class=\"button\" name=\"previewpost\" value=\"Vista Previa del Tema\" tabindex=\"5\" />
{$savedraftbutton}</div>
<input type=\"hidden\" name=\"action\" value=\"do_newthread\" />
</form><br />"
;
if(
$mybb->user[usergroup]=="1")
{
echo 
"<table class=\"tborder\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\">
<tbody><tr>
<td class=\"thead\"><strong>Error</strong></td>
</tr>
<tr>
<td class=\"trow1\" align=\"center\">
Solo Usuarios registrados Pueden Postear <a href=\"
{$mybb->settings[bburl]}/member.php?action=register\">Registrate</a>
</td>
</tr>
</tbody></table>"
;
}
else {
echo 
$npost;
}
?>
</div>
</td>
<td valign="top" width="230">
{$welcome}
{$pms}
{$search}
{$stats}
{$whosonline}
</td>
</tr>
</table>
{$ps_footer_portal}
{$footer}
</body>
</html> 


Ya nomas editen el link de blixcore por la url del foro de ustedes.

Paso 3.
Mete este codigo en Global.css modo avanzado:
Código PHP:
ul.pestañas_portal {
    
margin0;
    
padding0;
    
floatleft;
    list-
stylenone;
    
height31px;
    
width100%;
}

ul.pestañas_portal li {
    
font-size10px;
    
font-weightbold;
    
floatleft;
    
margin0 5px 0 0;
    
padding0;
    
height30px;
    
line-height30px;
    
border1px solid #ccc;
    
border-bottomnone;
background#cfcfcf ;
    
overflowhidden;
    
positionrelative;
    -
moz-border-radius-topleft10px;
    -
moz-border-radius-topright10px;
    -
webkit-border-top-left-radius10px;
    -
webkit-border-top-right-radius10px;
    
border-top-left-radius10px;
    
border-top-right-radius10px;
}

ul.pestañas_portal li a {
    
text-decorationnone;
    
color#000;
    
displayblock;
    
font-size1.2em;
    
padding0 10px;
    
outlinenone;
}

ul.pestañas_portal li a:hover {
    
background#efefef;
    
-moz-border-radius-topleft10px;
    -
moz-border-radius-topright10px;
    -
webkit-border-top-left-radius10px;
    -
webkit-border-top-right-radius10px;
    
border-top-left-radius10px;
    
border-top-right-radius10px;
}

html ul.pestañas_portal li.activahtml ul.pestañas_portal li.activa a:hover {
    
background#fff;
    
border1px solid #ccc;
border-bottom0px;
}

.
pestañas_portal_contenedor {
    
border-topnone;
    
clearboth;
    
floatleft
    
width100%;
}

.
pestañas_portal_contenido {
    
padding0px;
    
font-size1.2em;


Paso 4.
Guarda esta imagen en /images/tema/lastpost


Saludos y aquí les dejo esta super modificación.

Bye¼Corazón
Lo olvidaba tienen que meter este código en la plantilla headerincluide:
Código PHP:
<script type="text/javascript" src="[url=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js]http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js[/url]"></script> 

Y si lo ponen en algún lado recuerden poner la licencia del código



Archivo(s) adjuntos
.php  Php en plantillas.php (Tamaño: 3.88 KB / Descargas: 103)

28-03-2011 01:39 AM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión DARKNESSDH
Mensaje: #2
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Escritor Friki
******

Avatar de DARKNESSDH

Info del foro de este user
Mensajes: 1,891
Registro en: Feb 2009
Reputación: 71
para que es el js? que funcion tiene?



28-03-2011 02:00 AM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión Gustavo R.
Mensaje: #3
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Administrador
*******
Administradores

Avatar de Gustavo R.

Info del foro de este user
Mensajes: 2,163
Registro en: Feb 2009
Reputación: 210
El que va en la plantilla portal es para el efecto del cambio de pestaña y el de headerincluide es la conexión a la librería JQuery


28-03-2011 02:05 AM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión DARKNESSDH
Mensaje: #4
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Escritor Friki
******

Avatar de DARKNESSDH

Info del foro de este user
Mensajes: 1,891
Registro en: Feb 2009
Reputación: 71
este viendo bien el codigo le encontre esto

1 para lo que no utilizan ficons aparecera una imagen en blanco.
2 afiliados tendran que modificar el codigo y varios no saben xD por esto ej:
Código PHP:
<a href=\"{$mybb->settings[bburl]}/member.php?action=register\">Registrate</a> 

las comillas entre los \

3 par el de nuevo post no necesitarian un archivo nuevo.php?



28-03-2011 02:15 AM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión Vanee
Mensaje: #5
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Miembro
***

Avatar de Vanee

Mensajes: 45
Registro en: Mar 2011
Reputación: 0
subi ese plugin pero no aparece en la parte de Plugins para activarlo Triste


28-03-2011 04:22 AM
Encuentra todos sus mensajes Responder
Sin conexión DARKNESSDH
Mensaje: #6
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Escritor Friki
******

Avatar de DARKNESSDH

Info del foro de este user
Mensajes: 1,891
Registro en: Feb 2009
Reputación: 71
el plugin en tu panel se deberia llamar
PHP and Template Conditionals (1.3)

ese actibvalo



28-03-2011 01:22 PM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión Gustavo R.
Mensaje: #7
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Administrador
*******
Administradores

Avatar de Gustavo R.

Info del foro de este user
Mensajes: 2,163
Registro en: Feb 2009
Reputación: 210
Este tuto queda excelente con el tutorial de los ficons y pues yo les puse el codigo igual a mi web ya dependera de lo que ustedes quieran editar Smiley-grin
Este tuto es para gente mas avanzada Smiley-razz


28-03-2011 03:09 PM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión Dino
Mensaje: #8
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Miembro Avanzado
****

Avatar de Dino

Mensajes: 84
Registro en: Mar 2011
Reputación: 4
O: Muy bueno (: es como el que tienees en otserv.es no? xD


28-03-2011 04:42 PM
Visita su sitio web Encuentra todos sus mensajes Responder
Ausente Ignnacio
Mensaje: #9
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Escritor Friki
******

Avatar de Ignnacio

Info del foro de este user
Mensajes: 1,195
Registro en: Jan 2009
Reputación: 60
Esta excelente, vi como quedo en Blix y quedo bien bonito Smiley-grin.


28-03-2011 04:44 PM
Visita su sitio web Encuentra todos sus mensajes Responder
Sin conexión Vanee
Mensaje: #10
RE: [Tuto]Pestañas en portal con JQuery y PHP[Mybb-es]
Miembro
***

Avatar de Vanee

Mensajes: 45
Registro en: Mar 2011
Reputación: 0
como dije lo subi al directorio
inc>plugins
pero no me aparece en el panel el plugin


28-03-2011 05:51 PM
Encuentra todos sus mensajes Responder




Usuario(s) navegando en este tema: 1 invitado(s)
Hora: 22-05-2013, 06:01 PM