phpBB Italia chiude!
phpBB Italia ringrazia tutti gli utenti che hanno dato fiducia al nostro progetto per ben 9 anni, e che, grazie al grande lavoro fatto da tutto lo Staff (rigorosamente a titolo gratuito), hanno portato il portale a diventare il principale punto di riferimento italiano alla piattaforma phpBB.

Purtroppo, causa motivi personali, non ho più modo di gestirlo e portarlo avanti. Il forum viene ora posto in uno stato di sola lettura, nonché un archivio storico per permettere a chiunque di fruire di tutte le discussioni trattate.

Il nuovo portale di assistenza per l'Italia di phpBB diventa phpBB-Store.it, cui ringrazio per aver deciso di portare avanti questo grande progetto.

Grazie ancora,
Carlo - Amministratore di phpBB Italia

BBCode Light Modificato

Modifiche allo stile (template e tema).
Bloccato
Moloch
Utente
Utente
Messaggi: 53
Iscritto il: 25/04/2012, 22:44
Sesso: Maschio
Versione: 3.0.13
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.49-community-log

BBCode Light Modificato

Messaggio da Moloch » 04/07/2012, 16:54

Quello che andrò a spiergavi e il famoso BBcode light leggermente Modificato

Andate nel PCA e create i vostri BBcode e poi eseguite questa procedura

Aprire styles/prosilver/template/posting_buttons.html [ O vostro tema]
trovate

Codice: Seleziona tutto

var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','Immagine','','','[flash=]', '[/flash]','[size=]','[/size]'
[/code]
In linea Cerca

Codice: Seleziona tutto

[size=]','[/size]'
In linea Aggiungi dopo

Codice: Seleziona tutto

,'[center],[/center]'
Avremmo questo risultato

Codice: Seleziona tutto

Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
  • ','
','
  • ','
','Immagine','','','[flash=]', '[/flash]','[size=]','[/size]','[center],[/center]'
[/code]

I prossimi che inserirete aggiungeteli sempre dopo l'ultimo che avete inserito

Cerca

Codice: Seleziona tutto

,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
Aggiungi dopo

Codice: Seleziona tutto

,cb_22: '[center]Inserisci qui il testo per centrarlo nella pagina[/center]'
I prossimi che inserirete sempre a passo 2 e sempre dopo l'ultimo che avete inserito

Avremmo questo risultato

Codice: Seleziona tutto

,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
,cb_22: '[center]Inserisci qui il testo per centrarlo nella pagina[/center]'
e a passo 2 avremmo questo risultato se aggiungiamo un'altro bbcode

Codice: Seleziona tutto

,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
,cb_22: '[center]Inserisci qui il testo per centrarlo nella pagina[/center]'
,cb_24: '[spoiler]Testo o link dentro lo spoiler[/spoiler]'
Trova

Codice: Seleziona tutto

<div id="format-buttons">
	<input type="button" class="button2" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onclick="bbstyle(0)" title="{L_BBCODE_B_HELP}" />
	<input type="button" class="button2" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onclick="bbstyle(2)" title="{L_BBCODE_I_HELP}" />
	<input type="button" class="button2" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onclick="bbstyle(4)" title="{L_BBCODE_U_HELP}" />
	<!-- IF S_BBCODE_QUOTE -->
		<input type="button" class="button2" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" title="{L_BBCODE_Q_HELP}" />
	<!-- ENDIF -->
	<input type="button" class="button2" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" title="{L_BBCODE_C_HELP}" />
	<input type="button" class="button2" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" title="{L_BBCODE_L_HELP}" />
	<input type="button" class="button2" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" title="{L_BBCODE_O_HELP}" />
	<input type="button" class="button2" accesskey="y" name="addlitsitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" title="{L_BBCODE_LISTITEM_HELP}" />
	<!-- IF S_BBCODE_IMG -->
		<input type="button" class="button2" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" title="{L_BBCODE_P_HELP}" />
	<!-- ENDIF -->
	<!-- IF S_LINKS_ALLOWED -->
		<input type="button" class="button2" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" title="{L_BBCODE_W_HELP}" />
	<!-- ENDIF -->
	<!-- IF S_BBCODE_FLASH -->
		<input type="button" class="button2" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" title="{L_BBCODE_D_HELP}" />
	<!-- ENDIF -->
	<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}">
sostituisci con

Codice: Seleziona tutto

<div id="format-buttons">
	<input type="text" readonly="readonly" name="helpbox" style="width:100%" class="<!-- IF S_IN_UCP -->helpline2<!-- ELSE -->helpline<!-- ENDIF -->" value="{L_STYLES_TIP}" /><br />
   <input type="button" class="buttonz" accesskey="b" name="addbbcode0" value="" onclick="bbstyle(0)" style="background: url('{ROOT_PATH}images/editor/text_bold.png');" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
	<input type="button" class="buttonz" accesskey="i" name="addbbcode2" value="" style="background: url('{ROOT_PATH}images/editor/text_italic.png');" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
	<input type="button" class="buttonz" accesskey="u" name="addbbcode4" value="" style="background: url('{ROOT_PATH}images/editor/text_underline.png');" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
	<!-- IF S_BBCODE_QUOTE -->
		<input type="button" class="buttonz" accesskey="q" name="addbbcode6" value="" style="background: url('{ROOT_PATH}images/editor/comment.png');" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
	<!-- ENDIF -->
	<input type="button" class="buttonz" accesskey="c" name="addbbcode8" value="" style="background: url('{ROOT_PATH}images/editor/page_white_code.png');" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
	<input type="button" class="buttonz" accesskey="l" name="addbbcode10" value="" style="background: url('{ROOT_PATH}images/editor/text_list_bullets.png');" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
	<input type="button" class="buttonz" accesskey="o" name="addbbcode12" value="" style="background: url('{ROOT_PATH}images/editor/text_list_numbers.png');" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
	<input type="button" class="buttonz" accesskey="t" name="addlitsitem" value="" style="background: url('{ROOT_PATH}images/editor/bullet_black.png');" onclick="bbstyle(-1)" onmouseover="helpline('li')" onmouseout="helpline('tip')" />
	<!-- IF S_BBCODE_IMG -->
		<input type="button" class="buttonz" accesskey="p" name="addbbcode14" value="" style="background: url('{ROOT_PATH}images/editor/image.png');" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
	<!-- ENDIF -->
	<!-- IF S_LINKS_ALLOWED -->
		<input type="button" class="buttonz" accesskey="w" name="addbbcode16" value="" style="background: url('{ROOT_PATH}images/editor/world_link.png');" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
	<!-- ENDIF -->
	<!-- IF S_BBCODE_FLASH -->
		<input type="button" class="buttonz" accesskey="d" name="addbbcode18" value="" style="background: url('{ROOT_PATH}images/editor/page_white_flash.png');" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
	<!-- ENDIF -->
<input type="button" class="buttonz" name="bbpalette" id="bbpalette" value="" style="background: url('{ROOT_PATH}images/editor/color_wheel.png');" onclick="change_palette();" onmouseover="helpline('s')" onmouseout="helpline('tip')" />		
	<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}">
Trova

Codice: Seleziona tutto

</select>
aggiungi dopo

Codice: Seleziona tutto

	      <!-- Custom Lite Button Addon - Moloch -->
		  <input type="button" class="buttonz" name="addbbcode22" value="" style="background: url('{ROOT_PATH}images/editor/center.png');" onclick="bbstyle(22)" title="[center]Inserisci qui il testo per centrarlo nella pagina[/center]" />          	       
		  <!-- Custom Lite Button Addon - Moloch -->
tova e elimina

Codice: Seleziona tutto

<!-- BEGIN custom_tags -->
		<input type="button" class="button2" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})" title="{custom_tags.BBCODE_HELPLINE}" />
	<!-- END custom_tags -->
Apri styles/prosilver/theme/buttons.css [ O vostro tema]

Cerca

Codice: Seleziona tutto

ul.profile-icons li.info-icon, ul.profile-icons li.report-icon	{ margin: 0 3px 0 0; }
Aggiungi dopo

Codice: Seleziona tutto

.buttonz {
    width: 22px !important;
    height: 22px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    margin: 6px 0px !important;
    border: 1px solid #979797 !important;
}
.buttonz:hover {
    background-color: #ffffdf !important;
    border: 1px solid #BC2A4D !important;
}
Scaricate l'allegato e copiate nel root del vostro forum

e altre icone potete trovarle qui
http://www.famfamfam.com/

Immagine
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.

Moloch
Utente
Utente
Messaggi: 53
Iscritto il: 25/04/2012, 22:44
Sesso: Maschio
Versione: 3.0.13
Server: UNIX/Linux
PHP: 5.3.10
Database: MySQL 5.1.49-community-log

Re: BBCode Light Modificato

Messaggio da Moloch » 05/07/2012, 3:43

Dimenticavo di dirvi che bisogna anche modificare anche questo file

Apri styles/prosilver/theme/colours.css [ O vostro tema]

Trova

Codice: Seleziona tutto

input.disabled {
       color: #666666;
    }
Aggiungi dopo

Codice: Seleziona tutto

.helpline {
    background-color: #ECF1F3;
    border-style: none;
}

.helpline2 {
    background-color: #F9F9F9;
    border-style: none;
}

Bloccato

Torna a “Stili”

Chi c’è in linea

Visitano il forum: Nessuno e 51 ospiti