[Solucionado] Problema con recuadros
http://tecnowarez.22web.net Vercion 1.4.11 bueno pues mi problema es que quiero que las barras de actividad se queden dentro de unos recuadros PER...

http://tecnowarez.22web.net
Vercion 1.4.11

bueno pues mi problema es que quiero que las barras
de actividad se queden dentro de unos recuadros PERO
no solo eso, sino tambien el nick y el rango, saven como se podria solucionar?

ya intente con las barras pero no pude Sad graciass de antemano Smile





tienes q agregar el class a esos recuadros amigo
pero como lo puedo hacer? Huh ando liado, me deje de mybb un tiempo  Confused
eso hay q agregarle tablas a el plugins ya que no crea plantillas, aqui en mybb hay un tema silimar, q lo conteste de como se asia,m ahora pongo el link
aca esta, edita el plugins, borra todo el contenido, y pega el q voy a dejar, y luego decime si te funciono!! wato es lo del hp

<?php
/*
*
** HP / MP / EXP Mod
*
*/

// Add The Hooks For the functions
$plugins->add_hook("postbit", "hpmpexp_postbit");

// Plugin Info
function hpmpexp_info()
{
    return array(
        "name"            => "HP / MP / EXP Statistics",
        "description"    => "Adds a RPG Stats Counter to the postbit.",
        "website"        => "http://ryan.mybb-templates.com/",
        "author"        => "Ryan Ashbrook",
        "authorsite"    => "http://ryan.mybb-templates.com/",
        "version"        => "1.0.0",
    );
}

// Activate The Plugin
function hpmpexp_activate()
{
}

// Deactivate The Plugin
function hpmpexp_deactivate()
{
}

function hpmpexp_postbit($post)
{
      global $mybb, $db;
      $post['postnum'] = str_replace($mybb->settings['thousandssep'], '', $post['postnum']);
      $daysreg = (time() - $post['regdate']) / (24*3600);
    $postsperday = $post['postnum'] / $daysreg;
    $postsperday = round($postsperday, 2);
    if($postsperday > $post['postnum'])
    {
        $postsperday = $post['postnum'];
    }
    $rpglvl = $post['postnum'];
    $level = pow (log10 ($rpglvl), 3);
    $ep = floor (100 * ($level - floor ($level)));
    $showlevel = floor ($level + 1);
    $hpmulti = round ($postsperday / 6, 1);
    if ($hpmulti > 1.5)
    {
        $hpmulti = 1.5;
    }
    if ($hpmulti < 1)
    {
        $hpmulti = 1;
    }

    $maxhp = $level * 25 * $hpmulti;
    $hp = $postsperday / 1;
    if ($hp >= 1)
    {
        $hp = $maxhp;
    }
    else
    {
        $hp = floor ($hp * $maxhp);
    }
    $hp = floor ($hp);
    $maxhp = floor ($maxhp);
    if ($maxhp <= 0)
    {
        $zhp = 1;
    }
    else
    {
        $zhp = $maxhp;
    }
    $hpf = floor (100 * ($hp / $zhp)) - 1;

    $maxmp = ($daysreg * $level) / 5;
    $mp = $rpglvl / 3;
    if ($mp >= $maxmp)
    {
        $mp = $maxmp;
    }
    $maxmp = floor ($maxmp);
    $mp = floor ($mp);
    if ($maxmp <= 0)
    {
        $zmp = 1;
    }
    else
    {
        $zmp = $maxmp;
    }
    $mpf = floor (100 * ($mp / $zmp)) - 1;

    $showlevel = my_number_format($showlevel);
    $maxhp = my_number_format($maxhp);
    $hp = my_number_format($hp);
    $maxmp = my_number_format($maxmp);
    $mp = my_number_format($mp);

    $post['user_details'] = "{$post['user_details']}<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"1\"  style=\"font-size:12px\">
    <tr>
    <td class=\"trow8\" align=\"center\"><span class=\"smalltext\">Level: {$showlevel}</span><br />
<span class=\"smalltext\"><b>HP:</b> {$hp} / {$maxhp}</span>
    <table width=\"60\" class=\"rpg1\"  cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"rpg2\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s HP\" src=\"images/rpg/bhg.gif\" width=\"{$hpf}%\" height=\"8\" /><img alt=\"{$post['username']}'s HP\" src=\"images/rpg/bhb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>
<span class=\"smalltext\"><b>MP:</b> {$mp} / {$maxmp}</span>
    <table width=\"60\" class=\"rpg1\" cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"smalltext\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s MP\" src=\"images/rpg/bmg.gif\" width=\"{$mpf}%\" height=\"8\" /><img alt=\"{$post['username']}'s MP\" src=\"images/rpg/bmb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>
<span class=\"smalltext\"><b>EXP:</b> {$ep}% </span>
    <table width=\"60\" class=\"rpg1\" cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"rpg2\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s EXP\" src=\"images/rpg/bxg.gif\" width=\"{$ep}%\" height=\"8\" /><img alt=\"{$post['username']}'s EXP\" src=\"images/rpg/bxb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>    </td>
    </tr>

</table>";
}
?>

saludos
Última modificación: 25 Feb, 2010, 7:41 pm por jkjk.
gracias por responder pero no me funca Undecided






En que pude aver salido mal? saludos  y gracias por su ayuda Big Grin
bueno si no te funciono este problema lo pusieron en mi foro y lo pude solucionar si quieres date una vuelta y revisa...
http://www.generalzone.net/foro/Tema_pro..._mp_hp_exp

Ariel no funciono el tuyo debido a que lo sacaste de mi foro tal y como lo puse en el link anterior que le di y el codigo que puse en mi foro llama a la clase CSS que puse en un tutorial de mi foro, y ready no utilizo ese tutorial asi que no sirve de nada ese codigo...

Ready tal ves te funcione este codigo ;D solo remplaza el archivo del plugin...
<?php
/*
*
** HP / MP / EXP Mod
*
*/

// Add The Hooks For the functions
$plugins->add_hook("postbit", "hpmpexp_postbit");

// Plugin Info
function hpmpexp_info()
{
    return array(
        "name"            => "HP / MP / EXP Statistics",
        "description"    => "Adds a RPG Stats Counter to the postbit.",
        "website"        => "http://ryan.mybb-templates.com/",
        "author"        => "Ryan Ashbrook",
        "authorsite"    => "http://ryan.mybb-templates.com/",
        "version"        => "1.0.0",
    );
}

// Activate The Plugin
function hpmpexp_activate()
{
}

// Deactivate The Plugin
function hpmpexp_deactivate()
{
}

function hpmpexp_postbit($post)
{
      global $mybb, $db;
      $post['postnum'] = str_replace($mybb->settings['thousandssep'], '', $post['postnum']);
      $daysreg = (time() - $post['regdate']) / (24*3600);
    $postsperday = $post['postnum'] / $daysreg;
    $postsperday = round($postsperday, 2);
    if($postsperday > $post['postnum'])
    {
        $postsperday = $post['postnum'];
    }
    $rpglvl = $post['postnum'];
    $level = pow (log10 ($rpglvl), 3);
    $ep = floor (100 * ($level - floor ($level)));
    $showlevel = floor ($level + 1);
    $hpmulti = round ($postsperday / 6, 1);
    if ($hpmulti > 1.5)
    {
        $hpmulti = 1.5;
    }
    if ($hpmulti < 1)
    {
        $hpmulti = 1;
    }

    $maxhp = $level * 25 * $hpmulti;
    $hp = $postsperday / 1;
    if ($hp >= 1)
    {
        $hp = $maxhp;
    }
    else
    {
        $hp = floor ($hp * $maxhp);
    }
    $hp = floor ($hp);
    $maxhp = floor ($maxhp);
    if ($maxhp <= 0)
    {
        $zhp = 1;
    }
    else
    {
        $zhp = $maxhp;
    }
    $hpf = floor (100 * ($hp / $zhp)) - 1;

    $maxmp = ($daysreg * $level) / 5;
    $mp = $rpglvl / 3;
    if ($mp >= $maxmp)
    {
        $mp = $maxmp;
    }
    $maxmp = floor ($maxmp);
    $mp = floor ($mp);
    if ($maxmp <= 0)
    {
        $zmp = 1;
    }
    else
    {
        $zmp = $maxmp;
    }
    $mpf = floor (100 * ($mp / $zmp)) - 1;

    $showlevel = my_number_format($showlevel);
    $maxhp = my_number_format($maxhp);
    $hp = my_number_format($hp);
    $maxmp = my_number_format($maxmp);
    $mp = my_number_format($mp);

    $post['user_details'] = "{$post['user_details']}<table width=\"100%\" border=\"0\" cellspacing=\"2\" cellpadding=\"1\"  style=\"font-size:12px\">
    <tr>
    <td class=\"trow4\" align=\"center\"><span class=\"smalltext\">Level: {$showlevel}</span><br />
<span class=\"smalltext\"><b>HP:</b> {$hp} / {$maxhp}</span>
    <table width=\"60\" class=\"rpg1\"  cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"rpg2\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s HP\" src=\"images/rpg/bhg.gif\" width=\"{$hpf}%\" height=\"8\" /><img alt=\"{$post['username']}'s HP\" src=\"images/rpg/bhb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>
<span class=\"smalltext\"><b>MP:</b> {$mp} / {$maxmp}</span>
    <table width=\"60\" class=\"rpg1\" cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"smalltext\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s MP\" src=\"images/rpg/bmg.gif\" width=\"{$mpf}%\" height=\"8\" /><img alt=\"{$post['username']}'s MP\" src=\"images/rpg/bmb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>
<span class=\"smalltext\"><b>EXP:</b> {$ep}% </span>
    <table width=\"60\" class=\"rpg1\" cellspacing=\"0\" align=\"center\">
        <tr>
            <td class=\"rpg2\" nowrap=\"nowrap\"><img alt=\"{$post['username']}'s EXP\" src=\"images/rpg/bxg.gif\" width=\"{$ep}%\" height=\"8\" /><img alt=\"{$post['username']}'s EXP\" src=\"images/rpg/bxb.gif\" width=\"1\" height=\"8\" /></td>
        </tr>
    </table>    </td>
    </tr>

</table>";
}
?>
muchas gracias a todos, ya me sirvio, saludos! Big Grin
Colaboradores
Denis G. DARKNESSDH ArmyZ
This forum uses Lukasz Tkacz MyBB addons.