AlanB   21 Jan, 2010, 6:47 am
#1
URL: xxxxxxxxxxxxxxxxxxxxxxxx
Versión: MyBB 1.4.9
Actualización: Sin actualizar.
Problema: Necesito recuadrar este plugin en el postbit_classic y no lo encuentro lei en algun otro post que seria "rpg" pero probe y no es... en que plantilla lo encuentro?

Gracias Saludos AlanB Cool
dioseva   21 Jan, 2010, 8:41 pm
#2
lo mas seguro es qe se encuentre en la plantilla posbit
AlanB   22 Jan, 2010, 6:24 am
#3
No me canse de revisar el postbit y el postbit classic y nada... alguna otra plantilla donde se pueda buscar el codigo? Alguien que lo haya solucionado? Gracias!
abdonroda   22 Jan, 2010, 8:24 am
#4
Es que es plugin no hace ningún cambio en las plantillas, tendrías que editar el código del plugin.
AlanB   22 Jan, 2010, 11:21 am
#5
Y como le vario la posicion con respecto a los demas recuadros? Los tengo en este orden: Bandera, sexo y estado en uno; Mensajes en otro, (Aqui me gustaria poner el Hp Mp Exp); reputacion... Saludos!
abdonroda   22 Jan, 2010, 11:37 am
#6
Este plugin creo que añade el hpmpexp después del user_details. Mira el código del plugin y trata de editarlo...
AlanB   22 Jan, 2010, 12:22 pm
#7
Creo que eso anoche lo intente y no tuvo exito, perop por las dudas le pego un vistazo esta noche de nuevo y cualquier cosa lo posteo... Saludos!
MrBlack   23 Jan, 2010, 5:33 pm
#8
fijate en plantillas generales haber si ahi hay una plantilla que lleve el nombre de tu plugin, si es de myplaza es la plantilla myplaza_rpg
si no lo es busca la que se llame igual al plugin y editala
si cambiaras el code del plugin, primero desactiva y desinstala el plugin, luego editas el code, y lo vuelves a activar e instalar
PD no he usado ese plugin
Denis G.   29 Jan, 2010, 4:39 pm
#9
aca esta el code de armyz acerca de este plugins

<?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']}<br /><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>";
}
?>
Juan228   13 Mar, 2010, 10:47 am
#10
De donde sacaste el Plugin xD ?
  
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.