Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
[Ayuda] Tutorial de Añadir pestañas en el portal, perfiles, etc (abdonroda)
Ryuuseiken   4 Jun, 2011, 2:23 pm
#1

Encontre este tutorial creado por abdonroda.
[Tutorial] Añadir pestañas en el portal, perfiles, etc
Y queria saber como usarlo en el perfil, la verdad que no se casi nada de eso.
Ayer intente ponerlo pero, como no se mucho.
Quisiera que quede como el de comuvir Smile
Uso el tema mycleanblue, que por cierto es un gran tema Wink
Si hace falta algo mas me avisan.
Aca dejo mi plantilla member_profile
Código PHP:
<?php 
<html>
<
head>
<
title>{$mybb->settings['bbname']} - {$lang->profile}</title>
<
script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<
script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery(".pestana_contenido").hide();
jQuery("ul.pestanas li:first").addClass("activa").show();
jQuery(".pestana_contenido:first").show();
jQuery("ul.pestanas li").click(function() {
jQuery("ul.pestanas li").removeClass("activa");
jQuery(this).addClass("activa");
jQuery(".pestana_contenido").hide();
var
pestanaactiva = jQuery(this).find("a").attr("href");
jQuery(pestanaactiva).fadeIn();
return
false;
});
});
</
script>
{
$headerinclude}
</
head>
<
body>
{
$header}
<
table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<
tr>
<
td class="trow1">
<
table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<
span class="largetext"><strong>{$formattedname}</strong></span><br />
<
span class="smalltext">
({
$usertitle})<br />
{
$groupimage}
{
$userstars}<br />
<
br />
<
strong>{$lang->registration_date}</strong> {$memregdate}<br />
<
strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<
strong>{$lang->local_time}</strong> {$localtime}<br />
<
strong>{$lang->postbit_status}</strong> {$online_status}
</
span>
</
td><td width="25%" align="right" valign="middle">{$avatar}</td></tr></table>
</
td>
</
tr>
{
$awaybit}
</
table>
<
br />
<
table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<
tr>
<
td width="50%" valign="top">
<
table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<
tr>
<
td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</
tr>
<
tr>
<
td class="trow1"><strong>{$lang->joined}</strong></td>
<
td class="trow1">{$memregdate}</td>
</
tr>
<
tr>
<
td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<
td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</
tr>
<
tr>
<
td class="trow1"><strong>{$lang->total_posts}</strong></td>
<
td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
</
tr>
<
tr>
<
td class="trow2"><strong>{$lang->timeonline}</strong></td>
<
td class="trow2">{$timeonline}</td>
</
tr>
{
$referrals}
{
$reputation}
{
$warning_level}
</
table>
<
br />
<
table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<
tr>
<
td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</
tr>
<
tr>
<
td class="trow1"><strong>{$lang->homepage}</strong></td>
<
td class="trow1">{$website}</td>
</
tr>
{
$sendemail}
<
tr>
<
td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<
td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</
tr>
<
tr>
<
td class="{$bgcolors['icq']}"><strong>{$lang->icq_number}</strong></td>
<
td class="{$bgcolors['icq']}">{$memprofile['icq']}</td>
</
tr>
<
tr>
<
td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
<
td class="{$bgcolors['aim']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
</
tr>
<
tr>
<
td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
<
td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
</
tr>
<
tr>
<
td class="{$bgcolors['msn']}"><strong>{$lang->msn}</strong></td>
<
td class="{$bgcolors['msn']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
</
tr>
</
table>
</
td>
<
td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
<
td width="50%" valign="top">
{
$profilefields}
{
$signature}
{
$modoptions}
{
$adminoptions}
{
$buddy_options}
</
td>
</
tr>
</
table>
{
$footer}
</
body>
</
html>
Si hace falta algo mas avisar.
nentab   5 Jun, 2011, 12:31 am
#2
Haces los dos primeros pasos del tutorial, y luego reemplazas esa plantilla por esto:

Código:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
    {$header}
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
        <tr>
            <td class="trow1">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td class="trow1" width="75%">
                            <span class="largetext"><strong>{$formattedname}</strong></span><br />
                            <span class="smalltext">
                                ({$usertitle})<br />
                                {$groupimage}
                                {$userstars}<br />
                                <br />
                                <strong>{$lang->registration_date}</strong> {$memregdate}<br />
                                <strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
                                <strong>{$lang->local_time}</strong> {$localtime}<br />
                                <strong>{$lang->postbit_status}</strong> {$online_status}
                            </span>
                        </td>
                        <td width="25%" align="right" valign="middle">{$avatar}</td>
                    </tr>
                </table>
            </td>
        </tr>
    {$awaybit}
    </table>
    <br />

<ul class="pestanas">
    <li><a href="#pestana_1">Pestaña 1</a></li>
    <li><a href="#pestana_2">Pestaña 2</a></li>
    <li><a href="#pestana_3">Pestaña 3</a></li>
</ul>
<div class="pestana_contenedor">
    <div id="pestana_1" class="pestana_contenido">
        Contenido de la pestaña 1
    </div>
    <div id="pestana_2" class="pestana_contenido">
        Contenido de la pestaña  2
    </div>
    <div id="pestana_3" class="pestana_contenido">
        Contenido de la pestaña  3
    </div>
</div>

    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
        <tr>
            <td width="50%" valign="top">
                <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
                    <tr>
                        <td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
                    </tr>
                    <tr>
                        <td class="trow1"><strong>{$lang->joined}</strong></td>
                        <td class="trow1">{$memregdate}</td>
                    </tr>
                    <tr>
                        <td class="trow2"><strong>{$lang->lastvisit}</strong></td>
                        <td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
                    </tr>
                    <tr>
                        <td class="trow1"><strong>{$lang->total_posts}</strong></td>
                        <td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a>)</span></td>
                    </tr>
                    <tr>
                        <td class="trow2"><strong>{$lang->timeonline}</strong></td>
                        <td class="trow2">{$timeonline}</td>
                    </tr>
                    {$referrals}
                    {$reputation}
                    {$warning_level}
                </table>
                <br />
                <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
                    <tr>
                        <td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
                    </tr>
                    <tr>
                        <td class="trow1"><strong>{$lang->homepage}</strong></td>
                        <td class="trow1">{$website}</td>
                    </tr>
                    {$sendemail}
                    <tr>
                        <td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
                        <td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
                    </tr>
                    <tr>
                        <td class="{$bgcolors['icq']}"><strong>{$lang->icq_number}</strong></td>
                        <td class="{$bgcolors['icq']}">{$memprofile['icq']}</td>
                    </tr>
                    <tr>
                        <td class="{$bgcolors['aim']}"><strong>{$lang->aim_screenname}</strong></td>
                        <td class="{$bgcolors['aim']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=aim&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['aim']}</a></td>
                    </tr>
                    <tr>
                        <td class="{$bgcolors['yahoo']}"><strong>{$lang->yahoo_id}</strong></td>
                        <td class="{$bgcolors['yahoo']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=yahoo&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['yahoo']}</a></td>
                    </tr>
                    <tr>
                        <td class="{$bgcolors['msn']}"><strong>{$lang->msn}</strong></td>
                        <td class="{$bgcolors['msn']}"><a href="javascript:;" onclick="MyBB.popupWindow('misc.php?action=imcenter&amp;imtype=msn&amp;uid={$uid}', 'imcenter', 450, 300);">{$memprofile['msn']}</a></td>
                    </tr>
                </table>
            </td>
            <td>
                <img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/>
            </td>
            <td width="50%" valign="top">
                {$profilefields}
                {$signature}
                {$modoptions}
                {$adminoptions}
                {$buddy_options}
            </td>
        </tr>
    </table>
    {$footer}
</body>
</html>
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.