Mchat Cambiare i pulsanti

Snippet & addons per il nostro phpbb 3
Rispondi
Avatar utente
Moloch
Utente
Utente
Messaggi: 1053
Iscritto il: 13/06/2012, 0:35
Link del Forum: http://twawi.altervista.org/forum/index.php

Mchat Cambiare i pulsanti

Messaggio da Moloch »

Sostituire questo file con l'originale
mchat_bbcodes.html

Codice: Seleziona tutto

				<div id="mChatBBCodes" style="padding: 5px; display: none;">
				<fieldset class="fields1">
					<script type="text/javascript">
					// <![CDATA[
						var form_name = 'postform';
						var text_name = 'message';

						// Define the bbCode tags
						var bbcode = new Array();
						var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
// Helpline messages
var help_line = {
b: '{LA_BBCODE_B_HELP}',
i: '{LA_BBCODE_I_HELP}',
u: '{LA_BBCODE_U_HELP}',
q: '{LA_BBCODE_Q_HELP}',
c: '{LA_BBCODE_C_HELP}',
l: '{LA_BBCODE_L_HELP}',
li: '{LA_BBCODE_LISTTEM_HELP}',
o: '{LA_BBCODE_O_HELP}',
p: '{LA_BBCODE_P_HELP}',
w: '{LA_BBCODE_W_HELP}',
a: '{LA_BBCODE_A_HELP}',
s: '{LA_BBCODE_S_HELP}',
f: '{LA_BBCODE_F_HELP}',
e: '{LA_BBCODE_E_HELP}',
d: '{LA_BBCODE_D_HELP}',
tip: '{LA_STYLES_TIP}'
<!-- BEGIN custom_tags -->
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
<!-- END custom_tags -->
}

// ]]>
</script>
<!-- INCLUDE mchat_color.html -->
<!-- IF S_MCHAT_BBCODE_B -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/grassetto.png') center"; accesskey="b" name="addbbcode0" value="" style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_I -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/corsivo.png') center"; accesskey="i" name="addbbcode2" value="" style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_U -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/sottolineato.png') center"; accesskey="u" name="addbbcode4" value="" style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_QUOTE -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/quote.png') center"; accesskey="q" name="addbbcode6" value="" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_CODE -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/code.png') center"; class="button2" accesskey="c" name="addbbcode8" value="" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/text_list_bullets.png') center"; class="button2" accesskey="l" name="addbbcode10" value="" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST= -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/text_list_numbers.png') center"; class="button2" accesskey="o" name="addbbcode12" value="" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST or S_MCHAT_LIST= -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/bullet_black.png') center"; class="button2" accesskey="t" name="addbbcodelistitem" value="" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_IMG -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/insimage.png') center"; class="button2" accesskey="p" name="addbbcode14" value="" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_URL -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/url.png') center"; class="button2" accesskey="w" name="addbbcode16" value="" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_FLASH -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/flash.png') center"; accesskey="d" name="addbbcode18" value="" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_SIZE -->
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select>
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_COLOR -->
<input type="button"style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/color_wheel.png') center"; class="button2" name="bbpalette" id="bbpalette" value="" onclick="mChat.toggle('Colour');" title="{L_BBCODE_S_HELP}" />
<!-- ENDIF -->

<!-- IF .custom_tags -->
<select name="addbbcode_custom" onchange="bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;">
<option value="#" selected="selected">{L_MCHAT_CUSTOM_BBCODES}</option>
<!-- BEGIN custom_tags -->
<option value="{custom_tags.BBCODE_ID}" title="{custom_tags.BBCODE_HELPLINE}">{custom_tags.BBCODE_TAG}</option>
<!-- END custom_tags -->
</select>
<!-- ENDIF -->
</fieldset>
</div>
[/code]
tagboard.zip
Caricare questa cartella in images del vostro root
Risultato finale
Mchat.jpg
Sostituito cartella mancavano 3 immagini
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
Avatar utente
Hack
Utente
Utente
Messaggi: 167
Iscritto il: 04/12/2012, 22:32
Link del Forum:
Località: Sud Italia
Contatta:

Re: Mchat Cambiare i pulsanti

Messaggio da Hack »

Per rendere visibili le modifiche bisogna anche modificare il file mchat _body.html

Apri /styles/prosilver/template/mchat _body.html e trova:

Codice: Seleziona tutto

<!-- IF MCHAT_ADD_MESSAGE -->
            <input type="hidden" name="mode" value="add" />
            <input type="text" name="message" class="inputbox medium mChatText" id="mChatMessage" /><br />
            <input id="submit_button" type="button" class="button2" onclick="mChat.add();" value="{L_MCHAT_ADD}" />
            <input id="mChatClear" type="button" class="button2" onclick="mChat.clear();" value="{L_MCHAT_CLEAR_INPUT}" />
            <!-- IF MCHAT_ALLOW_SMILES and .smiley -->
            <input type="button" class="button2" onclick="mChat.toggle('Smiles');" value="{L_MCHAT_SMILES}" />
            <!-- ENDIF -->
            <!-- IF MCHAT_ALLOW_BBCODES -->
            <input type="button" class="button2" onclick="mChat.toggle('BBCodes');" value="{L_MCHAT_BBCODES}" />
            <!-- ENDIF -->
            <!-- ENDIF -->
            <!-- IF MCHAT_READ_ARCHIVE_BUTTON -->
            <input type="button" class="button2" onclick="window.location.href = '{MCHAT_ARCHIVE_URL}';" value="{L_MCHAT_ARCHIVE}" />
            <!-- ENDIF -->
            <!-- IF MCHAT_FOUNDER -->
            <input type="button" class="button2" onclick="window.location.href = '{MCHAT_CLEAN_URL}';" value="{L_MCHAT_CLEAN}" />
            <!-- ENDIF -->
e sostituisci con

Codice: Seleziona tutto

<!-- IF MCHAT_ADD_MESSAGE -->
            <input type="hidden" name="mode" value="add" />
            <input type="text" name="message" class="inputbox medium mChatText" id="mChatMessage" /><br />
            <input id="submit_button" type="button" class="button2"value="" style="width: 50px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/invia.png') center;""cursor:pointer;font-weight:bold;width:25px" onclick="mChat.add();" title="{L_MCHAT_ADD}" />
            <input id="mChatClear" type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/gomma.png') center";  onclick="mChat.clear();" title="{L_MCHAT_CLEAR_INPUT}" />
            <!-- IF MCHAT_ALLOW_SMILES and .smiley -->
            <input type="button" class="button2"value="" class="button1" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/emoticons.png') center";  onclick="mChat.toggle('Smiles');"  title="{L_MCHAT_SMILES}" />
            <!-- ENDIF -->
            <!-- IF MCHAT_ALLOW_BBCODES -->
            <input type="button" class="button2"value="" class="button1" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/bbcode.png') center";   onclick="mChat.toggle('BBCodes');"  title="{L_MCHAT_BBCODES}" />
            <!-- ENDIF -->
            <!-- ENDIF -->
            <!-- IF MCHAT_READ_ARCHIVE_BUTTON -->
            <input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/archivio.png') center";  onclick="window.location.href = '{MCHAT_ARCHIVE_URL}';" title="{L_MCHAT_ARCHIVE}" />
            <!-- ENDIF -->
            <!-- IF MCHAT_FOUNDER -->
            <input type="button" class="button2""value="" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/pulisci.png') center;" onclick="window.location.href = '{MCHAT_CLEAN_URL}';" title="{L_MCHAT_CLEAN}" />
            <!-- ENDIF -->
Testato e fuzionante
Avatar utente
Dr.House
Amministratore
Amministratore
Messaggi: 2173
Iscritto il: 08/01/2012, 8:24
Link del Forum: www.phpbb-italia.it
Località: Reggio Calabria
Contatta:

Re: Mchat Cambiare i pulsanti

Messaggio da Dr.House »

Moloch ha scritto:Sostituire questo file con l'originale
mchat_bbcodes.html

Codice: Seleziona tutto

				<div id="mChatBBCodes" style="padding: 5px; display: none;">
				<fieldset class="fields1">
					<script type="text/javascript">
					// <![CDATA[
						var form_name = 'postform';
						var text_name = 'message';

						// Define the bbCode tags
						var bbcode = new Array();
						var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','[img]','[/img]','','','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
// Helpline messages
var help_line = {
b: '{LA_BBCODE_B_HELP}',
i: '{LA_BBCODE_I_HELP}',
u: '{LA_BBCODE_U_HELP}',
q: '{LA_BBCODE_Q_HELP}',
c: '{LA_BBCODE_C_HELP}',
l: '{LA_BBCODE_L_HELP}',
li: '{LA_BBCODE_LISTTEM_HELP}',
o: '{LA_BBCODE_O_HELP}',
p: '{LA_BBCODE_P_HELP}',
w: '{LA_BBCODE_W_HELP}',
a: '{LA_BBCODE_A_HELP}',
s: '{LA_BBCODE_S_HELP}',
f: '{LA_BBCODE_F_HELP}',
e: '{LA_BBCODE_E_HELP}',
d: '{LA_BBCODE_D_HELP}',
tip: '{LA_STYLES_TIP}'
<!-- BEGIN custom_tags -->
,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
<!-- END custom_tags -->
}

// ]]>
</script>
<!-- INCLUDE mchat_color.html -->
<!-- IF S_MCHAT_BBCODE_B -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/grassetto.png') center"; accesskey="b" name="addbbcode0" value="" style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_I -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/corsivo.png') center"; accesskey="i" name="addbbcode2" value="" style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_U -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/sottolineato.png') center"; accesskey="u" name="addbbcode4" value="" style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_QUOTE -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/quote.png') center"; accesskey="q" name="addbbcode6" value="" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_CODE -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/code.png') center"; class="button2" accesskey="c" name="addbbcode8" value="" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/text_list_bullets.png') center"; class="button2" accesskey="l" name="addbbcode10" value="" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST= -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/text_list_numbers.png') center"; class="button2" accesskey="o" name="addbbcode12" value="" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_LIST or S_MCHAT_LIST= -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/bullet_black.png') center"; class="button2" accesskey="t" name="addbbcodelistitem" value="" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_IMG -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/insimage.png') center"; class="button2" accesskey="p" name="addbbcode14" value="" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_URL -->
<input type="button" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/url.png') center"; class="button2" accesskey="w" name="addbbcode16" value="" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_FLASH -->
<input type="button" class="button2" style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/flash.png') center"; accesskey="d" name="addbbcode18" value="" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_SIZE -->
<select name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" title="{L_BBCODE_F_HELP}">
<option value="50">{L_FONT_TINY}</option>
<option value="85">{L_FONT_SMALL}</option>
<option value="100" selected="selected">{L_FONT_NORMAL}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
<option value="150">{L_FONT_LARGE}</option>
<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
<option value="200">{L_FONT_HUGE}</option>
<!-- ENDIF -->
<!-- ENDIF -->
</select>
<!-- ENDIF -->
<!-- IF S_MCHAT_BBCODE_COLOR -->
<input type="button"style="width: 25px !important; height: 25px !important; background: url('{ROOT_PATH}/images/tagboard/color_wheel.png') center"; class="button2" name="bbpalette" id="bbpalette" value="" onclick="mChat.toggle('Colour');" title="{L_BBCODE_S_HELP}" />
<!-- ENDIF -->

<!-- IF .custom_tags -->
<select name="addbbcode_custom" onchange="bbstyle(this.form.addbbcode_custom.options[this.form.addbbcode_custom.selectedIndex].value*1);this.form.addbbcode_custom.selectedIndex = 0;">
<option value="#" selected="selected">{L_MCHAT_CUSTOM_BBCODES}</option>
<!-- BEGIN custom_tags -->
<option value="{custom_tags.BBCODE_ID}" title="{custom_tags.BBCODE_HELPLINE}">{custom_tags.BBCODE_TAG}</option>
<!-- END custom_tags -->
</select>
<!-- ENDIF -->
</fieldset>
</div>
[/code]
tagboard.zip
Caricare questa cartella in images del vostro root
Risultato finale
Mchat.jpg

mancano nell'archivio le 3 iconcine da associare a list list= e lista ordinata
Avatar utente
Moloch
Utente
Utente
Messaggi: 1053
Iscritto il: 13/06/2012, 0:35
Link del Forum: http://twawi.altervista.org/forum/index.php

Re: Mchat Cambiare i pulsanti

Messaggio da Moloch »

Sostituito il file con la cartella delle immagini
Rispondi