News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Cambio tema

Started by ilsuonatorej, December 03, 2008, 04:41:46 AM

Previous topic - Next topic

ilsuonatorej

Salve a tutti e scusate se mi presento solo adesso, visto che sono utente da ormai un mese, ma visto che in materia sono non niubbo ma di più sto cercando di leggere tutte le varie discussioni.
Veniamo al prob che riscontro in questo momento.
Vorrei cambiare skin al forum, premettendo che sto usando la versione di smf 1.1.7, solo che cambiando tema intanto perdo lo shoutbox e poi non riesco a modificare  la testata.
In poche parole cosa vorei fare:
Usiamo come esempio il theme "extreme6"
Una volta installato in cima alla pagina mi compare il logo di extreme6, io quello lo vorrei eliminare, ma provando a cambiare URL delle immagini di questo tema mi mette il logo in ogni dove e questo non mi va.
Se invece provo a mettere il logo dove dice:"URL dell'immagine del logo" non mi cambia assolutamente nulla.
Come posso fare?
Vi prego, proprio per il fatto che sono un principiante, di essere molto dettagliati nel darmi la risposta altrimenti mi perdo e non ci capisco nulla
Per il secondo prob come posso fare per non perdere lo shoutbox che in defoult mi funziona benissimo?
Vi ringrazio anticipatamente per l'aiuto che mi darete

edi67

mi daresti indirizzo del tuo forum per controllare
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

ilsuonatorej

Quote from: edi67 on December 03, 2008, 04:51:11 AM
mi daresti indirizzo del tuo forum per controllare
certo solo che vedrai solo il tema di defoult cmq l'indirizzo è questo

cobland

Quote from: edi67 on December 03, 2008, 04:51:11 AM
mi daresti indirizzo del tuo forum per controllare
Ciao Amico mio  :D

Scusate l'OT, ma il saluto era d'obbligo

tatore

Ciao, il suonatorej.
Prova a linkarmi il tema, visto che probabilmente si tratta solo di editare quello che attualmente è il logo del tema che hai scelto, mantenendo proporzioni, estensione e nome file (es: logo.gif) e infine sostituirlo.
Sempre se ho ben capito.
Par la shoutbox ovviamente bisogna vedere quali files modificare e dove vuoi vederla visualizzata...ma non dovrebbe essere difficile.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

ilsuonatorej

Quote from: tatore on December 07, 2008, 05:06:11 AM
Ciao, il suonatorej.
Prova a linkarmi il tema, visto che probabilmente si tratta solo di editare quello che attualmente è il logo del tema che hai scelto, mantenendo proporzioni, estensione e nome file (es: logo.gif) e infine sostituirlo.
Sempre se ho ben capito.
Par la shoutbox ovviamente bisogna vedere quali files modificare e dove vuoi vederla visualizzata...ma non dovrebbe essere difficile.
Ciao Tatore.
Intanto grazie per aver risposto al mio quesito, per quanto riguarda lè tue richieste non posso essere molto preciso perchè ho in mente vari theme tra i quali:
Extrem 6

Anecdota

Vintage

Army Green

Black And Blue Theme

Black to Basics

per quanto riguarda lo shout dovrebbe essere in home del forum
Grazie ancora per i consigli che mi darai e per le cose che m'insegnerai con la tua risposta

tatore

ilsuonatorej: proverò a darti una mano nel modificare i vari files, ma scegliamo un tema, o devo prendere un mese di ferie per modificarli tutti  :P
Allora, stasera installo la shoutbox su un sito in locale, e un tema che sceglierai: faremo le modifiche in diretta, cosi' chi legge saprà per il futuro come apportare correttamente le modifiche ai temi non di default.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

ilsuonatorej

Quote from: tatore on December 11, 2008, 02:31:17 PM
ilsuonatorej: proverò a darti una mano nel modificare i vari files, ma scegliamo un tema, o devo prendere un mese di ferie per modificarli tutti  :P
Allora, stasera installo la shoutbox su un sito in locale, e un tema che sceglierai: faremo le modifiche in diretta, cosi' chi legge saprà per il futuro come apportare correttamente le modifiche ai temi non di default.
ottima idea così imparo anche qualcosa.
Allora facciamo la prova su Army Green
Visto che li c'è sia il prob dell'header che dello shout
Lo shout che uso io e : HacksPark shoutBox
Bene per adattarlo al tema io sono andato su install però arrivando a questa riga
Quote</file>
   <file name="$themedir/index.template.php">
      <operation>
non so come modificarlo per poi avere lo shout sia in defoult che in Army Green partiamo da questo passaggio per lo shout.
Intanto per l'header dimmi tu dove devo andare a modificare, perchè lì non so proprio dove sbattere la testa.
Grazie ancora perchè mi permetti d'imparare

tatore

Allora...sia la shoutbox che armygreen sono temi e mods abbastanza semplici (per fortuna  :P ).
La shoutbox che mi hai segnalato richiede giusto delle modifiche ad un solo file dei temi:
Index.template.php

Apri il file index.template.php dalla cartella del tema Armygreen e cerca:

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


Prima delle due stringhe sopra aggiungi:

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's Park colorPicker" target="_blank">(cc) Hack'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(' <html>');
                    smileyPopupWindow.document.write(' <head> <title>', $txt['more_smileys_title'], '</title> <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" /> </head>');
                    smileyPopupWindow.document.write(' <body style="margin: 1ex;"> <table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder"> <tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr> <tr class="windowbg"><td align="left">');

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

                    smileyPopupWindow.document.write('</td></tr> <tr><td style="margin:0 auto;text-align:center;" class="windowbg"><a href="javascript:window.close();\">', $txt['more_smileys_close_window'], '</a></td></tr> </table> </body> </html>');
                    smileyPopupWindow.document.close();
                }
            //    ]]]]><![CDATA[></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's Park shoutBox" target="_blank">(cc) Hack's Park</a></span></td></tr></table>
        </div>
    </div>';
}



Cerca poi, sempre nello stesso file:

}

function template_main_below()
{


Aggiungi prima delle tre righe sopra:

# Hack's Park ||
   template_HP_shoutBoxMain();


La shoutbox funzionerà.

La traduzione (c'è poco da tradurre  ;) ):
[forum]/Themes/default/languages
Cerca il file Modifications.italian.php e aggiungi prima della chiusura del tag ?>

# Hack's Park ||
$txt['hp_admin'] = 'Hack's Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


E' tutto.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Darknico

Quote from: tatore on December 11, 2008, 08:16:47 PM
La traduzione (c'è poco da tradurre  ;) ):

non proprio così poco...ci sono anche 2 file da tradurre...
qua trovi la traduzione completa

http://www.italiansmfmods.net/index.php?topic=358.0

P.S.  su 'Hack's Park' avevi dimenticato \, cioè 'Hack\'s Park', così gli dava errore...
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


ilsuonatorej

#10
Allora Tatore, ritorno a ringraziarti, per quanto mi stai aiutando, ora veniamo al punto.
Mi sa che ho sbagliato qualcosa.
Premettendo il fatto che lo shout box lo avevo già tradotto, grazie alla traduzione di Darkniko, per la versione di defoult, quindi lo shout è apposto come lingua, sono andato a modificare il file che mi indicavi in questo modo:
Quotecodice editato per l'inserimento del file nei post successivi[/quoite]

tatore

Quote from: Darknico on December 12, 2008, 03:20:52 AM
Quote from: tatore on December 11, 2008, 08:16:47 PM
La traduzione (c'è poco da tradurre  ;) ):

non proprio così poco...ci sono anche 2 file da tradurre...
qua trovi la traduzione completa

http://www.italiansmfmods.net/index.php?topic=358.0

P.S.  su 'Hack's Park' avevi dimenticato \, cioè 'Hack\'s Park', così gli dava errore...
Hai ragione Darkniko, l'ho appena vista la mod con dei files interi di traduzione-
La traduzione invece che va in Modifications.italian.php l'avevo messa correttamente, ma anche se includi un codice tra i tags "code", usando l'editor wysiwyg su smf te lo visualizza male.
Qui il parser ufficiale della mod


@ ilsuonatorej: non sono riuscito per la lunghezza del post a includere il tuo codice tra i tags "code" (ormai ci litigo), se hai dubbi sulla corretta procedura carica pure qui il file index.template.php.
E' meglio gestibile.

Un altro appunto: potrebbe rendersi necessario spostare la cartella delle immagini della mod all'interno della cartella /images del tuo tema corrente, sovrascrivendole.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

ilsuonatorej

Ok ti allego il file che ho modificato, così controlli dove ho sbagliato.
Se puoi spiegarmi meglio il discorso che facevi per la cartella immagine?
Sinceramente non ho capito se devo sostituire le immagini del theme o se devo aggiungere quelle dello shout :-X

Darknico

puoi eliminare tutto quel codice nel post precedente?
è un po' fastidioso...
Italian SMF - Supporto Italiano per la board SMF - Ci trovate tutti li!! :)


ilsuonatorej

Quote from: Darknico on December 12, 2008, 05:14:02 AM
puoi eliminare tutto quel codice nel post precedente?
è un po' fastidioso...
Fatto Dark ;)

tatore

Ok, avevi sbagliato a posizionare i vari codici.
La prima parte era nella corretta posizione, ma non so per quale motivo a metà si era "commentata" (ossia finita tra "//", rendendosi inattiva).

La seconda parte era messa nella posizione sbagliata, cioe' non sopra:

}

function template_main_below()
{


Ma da tutt'altra parte.

Adesso se scompatti la mod sul desktop, e trasferisci la cartella "images" sovrascrivendo quella esistente nella cartella del tema "army", dovrebbe funzionare tutto alla perfezione.

Fammi sapere.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

ilsuonatorej

Quote from: tatore on December 12, 2008, 09:33:13 AM
Ok, avevi sbagliato a posizionare i vari codici.
La prima parte era nella corretta posizione, ma non so per quale motivo a metà si era "commentata" (ossia finita tra "//", rendendosi inattiva).

La seconda parte era messa nella posizione sbagliata, cioe' non sopra:

}

function template_main_below()
{


Ma da tutt'altra parte.

Adesso se scompatti la mod sul desktop, e trasferisci la cartella "images" sovrascrivendo quella esistente nella cartella del tema "army", dovrebbe funzionare tutto alla perfezione.

Fammi sapere.
Nulla di nulla, ho cambiato tutto come dicevi tu preso l'index, ma lo shoutbox non mi appare ti allego la mod come è ora per capire dov'è l'errore

tatore

Guarda...ho sovrascritto il mio index.template.php (tema armygreen) con quello che ti ho postato.
Ti allego uno screenshot.
QuoteSe puoi spiegarmi meglio il discorso che facevi per la cartella immagine?
scompatta la mod sul desktop, arriva (via ftp)alla directory del tema armygreen, e carica la cartella "images" della mod sovrascrivendo (il programma ftp ti chiederà se vuoi sovrascrivere i files già esistenti) la cartella "images" già presente nella directory del tema. Per fare questo la cartella sul server deve avere i permessi (chmods) impostati su 777.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

ilsuonatorej

Non so se sto facendo confusione io ma ancora non mi riesce.
Ti spiego cosa ho fatto
Visto che la mod army green con index già modificato era ancora sul sito sono andato tramite ftp sul sito puntando sulla cartella army green ed ho passato le immagini della mod dello shout box nella cartella di army green sovrascrivendola come dicevi tu, ma ancora nulla di nulla.
Che sbaglio?????

tatore

aggiungimi ai tuoi contatti msn.
*Salvo*




Quote from: RumbaarI wont jump to conclusion, but you might be hacked?

Advertisement: