[Integrar Hack's Park Shoutbox] en tu Theme...

Started by Giancarlo, April 23, 2009, 12:12:18 PM

Previous topic - Next topic

Giancarlo

Hola amigos, acá les paso la manera de poder integrar Hack's Park Shoutbox 2.0 en vuestro Theme tal y como yo lo tengo en mi Foro, ya que el soporte de la página en español no está disponible temporalmente, y desde la página oficial (ingles) no hace mención de como realizar la modificación.

Bien, primeramente bajarse el mod. acá Hack's Park Shoutbox 2.0 e instalarlo, obviamente arranca perfectamente en el Theme Default, pero lo que queremos es integrarlo en nuestro Theme.

Luego esto, descompriman el archivo (mod) y extraigan la carpeta Themes, dentro de la carpeta Default encontraremos los archivos que deberemos subir (ftp) a nuestro Theme y que adjunto en el post.

En el archivo index.template.php de tu Theme...

Buscar:

// The main sub template above the content.
function template_main_above()


Agregar después: (de <?php añadiendo un par de saltos de linea)

function template_HP_shoutBoxMain()
{
    global $context, $settings, $scripturl, $txt, $HP_settings;

    if (empty($context['hp_shoutbox_show']))
        return;

    if ($HP_settings['shoutBox']['out_noban'])
        echo '
    <script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_colorPicker.js"></script>';
    echo '
    <script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_shoutBox.js"></script>
    <script language="javascript" type="text/javascript">';

    if ($HP_settings['shoutBox']['out_noban'])
        echo '
        HP_shoutBox["lng_emos"] = "' . $txt['hs_sb_10'] . '";
        HP_shoutBox["lng_sendingPost"] = "' . $txt['hs_sb_11'] . '";
        HP_shoutBox["lng_empty"] = "' . $txt['hs_sb_12'] . '";
        HP_shoutBox["lng_jstSending"] = "' . $txt['hs_sb_16'] . '";
        HP_shoutBox["lng_sent"] = "' . $txt['hs_sb_13'] . '";
        HP_shoutBox["refresh"] = ' . $HP_settings['shoutBox']['refreshShouts'] . ';
        HP_shoutBox["lng_no_empty"] = "' . $txt['hs_sb_20'] . '";
        HP_shoutBox["lng_empty_url"] = "' . $txt['hs_sb_21'] . '";
        HP_shoutBox["lng_insert_url"] = "' . $txt['hs_sb_22'] . '";
        HP_shoutBox["in_color"] = "' . $HP_settings['shoutBox']['textColor'] . '";
        HP_shoutBox["in_bgcolor"] = "' . $HP_settings['shoutBox']['backgroundColor'] . '";';

    echo '
        HP_shoutBox["is_ie"] = ' . ($context['browser']['is_ie'] ? 'true' : 'false') . ';
    </script>
    <div class="tborder" style="margin: 10px 0 10px 0;">
        <div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;text-align:center;">
            <a rel="nofollow" href="#" onclick="HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;"><img id="hp_shoutbox_collapse" src="', $settings['theme_url'], '/images/collapse.gif" alt="*" style="margin-right: 2ex;" align="right" /></a>
            ' . $HP_settings['shoutBox']['boxTitle'] . '</div>
        <noscript>
        <div class="windowbg" style="padding: 5px 15px 5px 10px;">' . $txt['hs_sb_2'] . '</div></noscript>
        <div id="hp_shoutbox_div_msgs">
        <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" style="margin-top: 1px;">';

    if ($HP_settings['shoutBox']['out_noban'])
    {
        echo '
        <tr><td class="windowbg" width="100%" align="left" colspan="2">
        <form name="shoutbox" action="' . $scripturl . '" method="post" accept-charset="' . $context['character_set'] . '" onsubmit="HP_shoutBox_Post(\'' . $context['session_id'] . '\'); return false;">
            <table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
            <tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;">
                <input class="smalltext" type="text" id="hp_shoutbox_imsg" name="msg" tabindex="1" maxlength="120" value="" style="font-weight: normal;color: ' . $HP_settings['shoutBox']['textColor'] . ';font-style: normal;text-decoration: none;width: ' . $HP_settings['shoutBox']['widthInputMsg'] . ';padding: 3px;border-width: 1px;border-color: ' . $HP_settings['shoutBox']['textColor'] . ';background-color: ' . $HP_settings['shoutBox']['backgroundColor'] . ';" />
                <input class="smalltext" type="submit" value="' . $txt['hs_sb_13'] . '" name="send" style="padding: 2px;" /></td>
            <td style="padding: 0 0 0 8px; border-left: 1px solid #9c9c9c" valign="middle" width="100%">
                <div style="position: relative;padding-top: 4px;margin:0;">
                <a href="javascript:void(0);" onclick="HP_shoutBox_sURL()">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/url.gif" width="23" height="22" alt="' . $txt['hs_sb_48'] . '" title="' . $txt['hs_sb_48'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_sh(!HP_shoutBox[\'hd_emos\'], \'emos\')">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/caretos.gif" width="23" height="22" alt="' . $txt['hs_sb_10'] . '" title="' . $txt['hs_sb_10'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_Clear()">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/clean.gif" width="23" height="22" alt="' . $txt['hs_sb_50'] . '" title="' . $txt['hs_sb_50'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'n\', !HP_shoutBox[\'hd_n\']);">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bold.gif" width="23" height="22" alt="' . $txt['hs_sb_52'] . '" title="' . $txt['hs_sb_52'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'k\', !HP_shoutBox[\'hd_k\']);">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/italicize.gif" width="23" height="22" alt="' . $txt['hs_sb_53'] . '" title="' . $txt['hs_sb_53'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'s\', !HP_shoutBox[\'hd_s\']);">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/underline.gif" width="23" height="22" alt="' . $txt['hs_sb_54'] . '" title="' . $txt['hs_sb_54'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_shoutBox_shFace()">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/face.gif" width="23" height="22" alt="' . $txt['hs_sb_55'] . '" title="' . $txt['hs_sb_55'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <a href="javascript:void(0);" onclick="HP_colorPicker_sh(false)">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/fontcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_56'] . '" title="' . $txt['hs_sb_56'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <img id="hp_shoutbox_s_color" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
                <a href="javascript:void(0);" onclick="HP_colorPicker_sh(true)">
                <img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bgcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_57'] . '" title="' . $txt['hs_sb_57'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
                <img id="hp_shoutbox_s_bgcolor" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
    <div style="display: none; z-index: 11; position: absolute; top: 28px; left: 45px;" id="hp_shoutbox_div_face">
    <table cellpadding="0" cellspacing="0" class="tborder" width="120">
    <tr class="windowbg2"><td width="100%">
        <a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'inherit\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: inherit; display: block; padding: 2px;" class="smalltext">' . $txt['hs_sb_49'] . '</a></td></tr>';

        foreach (explode(';', $HP_settings['shoutBox']['msgFaces']) as $face)
            echo '
    <tr class="windowbg2"><td width="100%">
        <a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'' . $face . '\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: ' . $face . ', sans-serif; display: block; padding: 2px;" class="smalltext">' . $face . '</a></td></tr>';

        echo '</table></div>
    <div style="display: none; z-index: 12; position: absolute; top: 28px; left: -34px;" id="hp_colorpicker_div">
        <table cellpadding="4" cellspacing="0" class="tborder">
        <tr class="windowbg2"><td>
        <script language="javascript" type="text/javascript">HP_colorPicker_PrintBox();</script>
        <img border="0" src="', $settings['images_url'], '/blank.gif" width="1" height="8" alt="" /><br />
        <div style="margin:0 auto;text-align:center;"><script language="javascript" type="text/javascript">HP_colorPicker_PrintBoxGrayScale();</script></div></td>
        <td align="left" valign="top" class="smalltext">
        <input type="text" value="#FFFFFF" style="padding: 3px; width: 120px;" id="hp_colorpicker_input_aply" class="smalltext" /><br />
        <input type="button" value="' . $txt['hs_sb_58'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true);" class="smalltext" /> <input type="button" value="' . $txt['hs_sb_64'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true, \'\');" class="smalltext" />
        <br />
        <br />
        ' . $txt['hs_sb_59'] . ':
        <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin: 2px 0 8px 0;">
        <tr><td id="hp_colorpicker_div_show" style="background-color: #FFFFFF;">
            <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table>
        ' . $txt['hs_sb_60'] . ':
        <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin-top: 2px;">
        <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
            <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td>
        </tr><tr class="windowbg"><td colspan="2" align="right"><span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-colorpicker_10.0.html" title="Hack&#39;s Park colorPicker" target="_blank">(cc) Hack&#39;s Park</a></span></td></tr></table>
    </div></div></td></tr></table>
            <input type="hidden" value="0" name="hdn" /><input type="hidden" value="0" name="hds" /><input type="hidden" value="0" name="hdk" /><input type="hidden" value="" name="hdcolor" /><input type="hidden" value="" name="hdbgcolor" /><input type="hidden" value="" name="hdface" />';

        // Smilies
        echo '
            <div id="hp_shoutbox_div_emos" style="display:none;margin-top:4px;text-align:center;">';

        if (!empty($HP_settings['shoutBox']['out_caritas']['postform']))
        {
            foreach ($HP_settings['shoutBox']['out_caritas']['postform'] as $smiley_row)
                foreach ($smiley_row['smileys'] as $smiley)
                    echo '
                <a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.shoutbox.msg); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';

            if (empty($smiley_row['last']))
                echo '<br />';
            if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
                echo '
                <a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
        }

        if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
        {
            echo '
            <script language="JavaScript" type="text/javascript"><!-- // -->
                var smileys = [';

            foreach ($HP_settings['shoutBox']['out_caritas']['popup'] as $smiley_row)
            {
                echo '
                    [';
                foreach ($smiley_row['smileys'] as $smiley)
                {
                    echo '
                        ["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
                    if (empty($smiley['last']))
                        echo ',';
                }

                echo ']';
                if (empty($smiley_row['last']))
                    echo ',';
            }

            echo '];
                var smileyPopupWindow;

                function moreSmileys()
                {
                    var row, i;

                    if (smileyPopupWindow)
                        smileyPopupWindow.close();

                    smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
                    smileyPopupWindow.document.write(\'\n<html>\');
                    smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" />\n\t</head>\');
                    smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');

                    for (row = 0; row < smileys.length; row++)
                    {
                        for (i = 0; i < smileys[row].length; i++)
                        {
                            smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'&quot;\');
                            smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, window.opener.document.forms.shoutbox.msg); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
                        }
                        smileyPopupWindow.document.write("<br />");
                    }

                    smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td style="margin:0 auto;text-align:center;" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
                    smileyPopupWindow.document.close();
                }
            //    ]]></script>';
        }
        echo '</div>';
        // End - Smilies

        echo '
        </form></td></tr>';
    } elseif ($context['user']['is_logged'])
        echo '
        <tr><td class="windowbg" width="100%" align="left" colspan="2">
            <table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
            <tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;" class="smalltext">
            <b>' . $txt['hs_sb_85'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['reason'] . '<br />
            <b>' . $txt['hs_sb_86'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['end'] . '</td></tr></table>
        </td></tr>';

    echo '
        <tr><td class="windowbg2" width="100%" align="left" colspan="2">
            <table cellpadding="0" cellspacing="0" width="100%">
            <tr><td align="right" style="padding-right: 8px;">
            <span class="smalltext">' . ($HP_settings['shoutBox']['out_mod'] ? '<a href="' . $scripturl . '?action=shoutbox;sa=mod" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_61'] . '</a> | ' : '') . '<a href="javascript:void(0);" onclick="HP_shoutBox_getMsgs();">' . $txt['hs_sb_62'] . '</a>' . ($context['user']['is_logged'] ? '  |  <a href="' . $scripturl . '?action=shoutbox" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_63'] . '</a>' : '') . '</span></td>
            </tr></table>
            <div style="padding: 0;">
            <div id="hp_shoutbox_div_shouts" style="margin-top: 4px;overflow: auto;width: 99%;' . ($context['browser']['is_ie'] ? 'height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';' : 'max-height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';') . '">
                <script language="javascript" type="text/javascript">' . ($HP_settings['shoutBox']['out_noban'] ? '
                    HP_shoutBox_Clear();' : '') . '
                    HP_shoutBox[\'timeout\'] = setTimeout("HP_shoutBox_getMsgs();", 5000);
                </script>
            </div></div></td></tr>
        <tr class="windowbg"><td width="100%" align="left">
        <div id="hp_shoutbox_div_status">
        </div></td>
        <td align="right" nowrap="nowrap" valign="middle">
        <span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-shoutbox_7.0.html" title="Hack&#39;s Park shoutBox" target="_blank">(cc) Hack&#39;s Park</a></span></td></tr></table>
        </div>
    </div>';
}


Buscar:

}

function template_main_below()
{


Añadir antes: (detrás de la llave de cierre })

// Hack's Park Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- Hack's Park Shoutbox


Eso es todo, te debería de andar perfectamente, adjunto captura del ShoutBox de mi Foro. Añadir que desde mi Theme (BlackRainV2) tengo borrados los archivos BoardIndex.template.php y MessageIndex.template.php para que sea compatible con la mayoría de mods. que tengo instalados, y que son recogidos por el Theme Default.

Un saludo, y espero que les halla servido este Manual ;)











Andrés Zc

 :o :o :o Excelente lo andaba buscando, gracias Giancarlo... lo probare  ;D ;D ;D
www.radamantis.ws

Foro de soporte exclusivo a SMF, te ofrecemos el mejor soporte y te ayudamos a optimizar tu sitio al 100% Click aquí =>  www.smfpersonal.net

esnakesfc

para que sirbe esto me lo podeis explicar en la imagen no veo na XDDD gracias

Andrés Zc

Quote from: esnakesfc on April 29, 2009, 07:30:32 PM
para que sirbe esto me lo podeis explicar en la imagen no veo na XDDD gracias

;D esto es para integrar el shoutbox (Mensajero) en otro theme diferente al default  ;D ;D
www.radamantis.ws

Foro de soporte exclusivo a SMF, te ofrecemos el mejor soporte y te ayudamos a optimizar tu sitio al 100% Click aquí =>  www.smfpersonal.net

#jsDotx3

Quote from: esnakesfc on April 29, 2009, 07:30:32 PM
para que sirbe esto me lo podeis explicar en la imagen no veo na XDDD gracias
Sirve para integrar el MOD Hack's Park ShoutBox a otro themes cual no sea el default de SMF.

Solved
(Life would be easy with a simple solution.)

flager

Alguien podria subir aqui por atachment o alguna servidor como rapidshare el archivo
Hack's Park Shoutbox 2.0

porque al entrar a la página no me abre de ante mano muchas gracias.

Andrés Zc

Quote from: flager on May 09, 2009, 03:11:54 PM
Alguien podria subir aqui por atachment o alguna servidor como rapidshare el archivo
Hack's Park Shoutbox 2.0

porque al entrar a la página no me abre de ante mano muchas gracias.

;D ok ahi te lo dejo
www.radamantis.ws

Foro de soporte exclusivo a SMF, te ofrecemos el mejor soporte y te ayudamos a optimizar tu sitio al 100% Click aquí =>  www.smfpersonal.net

AngelOfGod

E INSTALADO PERO AL MOMENTO DE HACER CORRER ME MANDA ESTE ERROR
--------------------------------------
Template Parse Error!
There was a problem loading the /Themes/WBlog118/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_FUNCTION, expecting '{'
-----------------------------------------------

Si alguien me ayuda... lo agradecer

JCS

AngelOfGod, podrias subir tu idnex.template.php???, es un error facil de corregir

GianCarlo, gracias por la publicacion de la guia
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

AngelOfGod

Quote from: JCS on May 16, 2009, 08:27:12 AM
AngelOfGod, podrias subir tu idnex.template.php???, es un error facil de corregir

GianCarlo, gracias por la publicacion de la guia

gracias x tu interes pero ya lo solucione... solo no entendia bien la guia pero ya leyendolo varias veces me di cuenta como era... y si resulto ;)

gracias de antemano

RacHaV2

No Entendii Nada Y me Interesa Mucho aserlo Ayuda

ahii esta el index.template.php si me Lo Puende Moficar Porfavor :D

social

mira yo trate de instalarlo en el Theme default y me marca este error aqui te dejo la foto,
y te explico que anterior mente tenia otro shoutbox lo borre osea lo desinstale y quiero este ya que es mejor, y se puede manejar.. tengo smf 1.1.8 ayuda por favor abri un topic y nadie contesta y ahora encontre este tema..
SMF v2.0RC2 ==>>Simple Portal v2.3.1
WWW.TUREDSOCIALPR.COM

social

estuve investigando con el "ManagePermissions.php" y decia que habia error en la linea 1405 y depues en la linea 1406, y restaure todo como estaba y ahora en la instalacion el " Hack's Park Shoutbox" no da error lo que no se si instalarlo por si da problema con algo.. hice un respaldo de mi base de datos mas de la carpeta "public_htlm"
SMF v2.0RC2 ==>>Simple Portal v2.3.1
WWW.TUREDSOCIALPR.COM

JCS

Quote from: RacHaV2 on May 17, 2009, 01:12:09 AM
No Entendii Nada Y me Interesa Mucho aserlo Ayuda

ahii esta el index.template.php si me Lo Puende Moficar Porfavor :D

seguiste todos los pasos indicados??, te aparece algun error en la instalacion?, si es asi cual es?

Quote from: social on May 17, 2009, 08:32:48 AM
estuve investigando con el "ManagePermissions.php" y decia que habia error en la linea 1405 y depues en la linea 1406, y restaure todo como estaba y ahora en la instalacion el " Hack's Park Shoutbox" no da error lo que no se si instalarlo por si da problema con algo.. hice un respaldo de mi base de datos mas de la carpeta "public_htlm"

no es necesario hacer doble post ^^, ahora, puedes instalarlo normalmente, si te salta algun error despues de la instalacion posteas y lo corregimos al toque

Salu2
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

social

ok.. gracias... ahora por estar inventando con el managepermissions.php hay cosita que estan se han desaparecido y no se puede desintalar ejemplo los usuario ya no ven la seccion de "staff list" y en los permiso ya no aparece, entonce trato de desintalarlo y lo que hace es que me da error en "managepermissions.php" asi que no se que hacer..
SMF v2.0RC2 ==>>Simple Portal v2.3.1
WWW.TUREDSOCIALPR.COM

JCS

ya habias instalado mods que modificaban el archivo "managepermissions.php", cuando lo cambiaste para poder instalar el shoutbox, eliminaste las modificaciones hechas por estos mods.

verifica con un package parser cuales de tus mods modifican el managepermissions, y realiza estas modificaciones manualmente con algun editor de texto, no tendras problemas
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

Inter2

Lo primero buenas tardes y gracias por hacer este foro, me ayudó bastante a montar mi foro.
Estoy tratando de integrar el Hack's Park Shoutbox siguiendo este tutorial y me encuentro que en el Theme Default no me funciona. No me dió ningún error al instalar pero cuando escribo en la línea y le pego a enter el texto no sube al chat, se queda en la línea de escribir y el cajón del chat sigue en blanco.
Por donde puedo empezar a mirar???

Edito uso la versión 1.1.9

ZerK

el revisa si tienes el javascript activado en tu navegador.

Inter2

Perdón por insistir, he descubierto que mi error era por usar Explorer 8; con firefox me funciona correctamente.

Siguiendo con el tutorial he hecho todo lo que pone (creo) y me sale este error al cargar el foro con mi theme (uso Calypso por si sirve de algo)

Template Parse Error!
There was a problem loading the /Themes/Calypso/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_FUNCTION, expecting '{' in .../Themes/Calypso/index.template.php on line 62

53:    $settings['use_buttons'] = true;
54:
55:    /* Show sticky and lock status seperate from topic icons? */
56:    $settings['seperate_sticky_lock'] = true;
57: }
58:
59: // The main sub template above the content.
60: function template_main_above()
61:

62: function template_HP_shoutBoxMain()

63: {
64:     global $context, $settings, $scripturl, $txt, $HP_settings;
65:
66:     if (empty($context['hp_shoutbox_show']))

pendrakon

falta un { despues de function template_main_above() segun creo

Advertisement: