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

Campi del profilo chiusi nelle tabelle

Supporto per phpBB 3.0.x.
Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 10:56

Ciao a tutti,sono di nuovo qui a chiedere il vostro aiuto è possibile fare una cosa del genere!:

Immagine

Chiudere ogni campo in una tabella

Avatar utente
Micogian
Leader Programmatori
Leader Programmatori
Messaggi: 3704
Iscritto il: 07/01/2010, 8:51
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.4.36
Database: MySQL 5.1.70-log
Località: Udine
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da Micogian » 01/10/2011, 13:14

Devi farlo con i CSS.
Nel file content.css aggiungi questa classe:

Codice: Seleziona tutto

dd.boxprofile {
	width: 100%;
	background-color: #F5F5F5 ;
	border: 1px solid #708090 ;
	padding: 3px;
	margin-top: 2px;
	margin-left: 5px;
}
Ovviamente puoi modificare la dimensione e metterla in px, i colori del bordo, del fondo e del testo.

Poi, nel file viewtopic_body.html devi inserire nelle righe interessate la nuova classe nel tag <dd> del profilo:
  • <dd class="boxprofile">........</dd>
Aggiornare tema e template da PCA.

Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 14:22

Niente male,grazie bingo.Ho dovuto solo diminuire i width all' 80%

Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 15:31

Adesso però vorrei fare alcune modifiche:
Cattura.PNG
Il punto 1 è prendere il nome utente e spostarlo al centro sopra all'avatar! Per poi sostituire l'icona off e on line con un pallino in modo da chiudere tutto in una tabella.

Per quanto riguarda a spostare il nome ho fatto cosi:

Da cosi:

Codice: Seleziona tutto

<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF --><!-- IF not postrow.S_ONLINE and not postrow.S_IGNORE_POST --> offline<!-- ENDIF -->" id="profile{postrow.POST_ID}">
			<dt>
				<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>
A cosi:

Codice: Seleziona tutto

<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF --><!-- IF not postrow.S_ONLINE and not postrow.S_IGNORE_POST --> offline<!-- ENDIF -->" id="profile{postrow.POST_ID}">
			<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			<dt>
				<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
			</dt>
Lo sposta pure ma non sopra all'avatar ma affianco a sx
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.

Avatar utente
Micogian
Leader Programmatori
Leader Programmatori
Messaggi: 3704
Iscritto il: 07/01/2010, 8:51
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.4.36
Database: MySQL 5.1.70-log
Località: Udine
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da Micogian » 01/10/2011, 16:58

Codice: Seleziona tutto

<!-- IF not postrow.S_IGNORE_POST -->
         <dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF --><!-- IF not postrow.S_ONLINE and not postrow.S_IGNORE_POST --> offline<!-- ENDIF -->" id="profile{postrow.POST_ID}">
         <dt>
         <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF --><br />
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF -->
            <!-- ENDIF -->
         </dt>

Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 17:36

No niente bingo guarda dove si posiziona:
Cattura.PNG
Ma non al centro
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.

Avatar utente
Micogian
Leader Programmatori
Leader Programmatori
Messaggi: 3704
Iscritto il: 07/01/2010, 8:51
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.4.36
Database: MySQL 5.1.70-log
Località: Udine
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da Micogian » 01/10/2011, 17:55

Non avevo capito che lo volevi al centro.
Il fatto è che tutto il gruppo è regolato dalla class="postprofile" nel tag <dl>

Si potrebbe inserire un text-align per il nickname, potrebbe essere così (vado a memoria, non ho provato):

Codice: Seleziona tutto

<!-- IF not postrow.S_IGNORE_POST -->
         <dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF --><!-- IF not postrow.S_ONLINE and not postrow.S_IGNORE_POST --> offline<!-- ENDIF -->" id="profile{postrow.POST_ID}">
         <dt><span style="text-align: center;">
         <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF --></span><br />
            <!-- IF postrow.POSTER_AVATAR -->
               <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF -->
            <!-- ENDIF -->
         </dt>
EDIT: mancava un < sul tag span
Non è molto ortodosso, sarebbe stato meglio lavorare sui css ma dovrebbe funzionare.

Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 18:07

No non va si presenta affianco al nome la scritta span style="text-align: center;">

Mettiamola cosi io adesso devo spostare il nome dell'utente e le due icone off e online nella tabella

Codice: Seleziona tutto

<dd class="boxprofile">........</dd>
Ma quando provo a farlo mi sballa tutto il forum,ti posto la parte del code

Codice: Seleziona tutto

<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF --><!-- IF not postrow.S_ONLINE and not postrow.S_IGNORE_POST --> offline<!-- ENDIF -->" id="profile{postrow.POST_ID}">
			<dt>
				<!-- IF postrow.POSTER_AVATAR -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>

Avatar utente
Micogian
Leader Programmatori
Leader Programmatori
Messaggi: 3704
Iscritto il: 07/01/2010, 8:51
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.4.36
Database: MySQL 5.1.70-log
Località: Udine
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da Micogian » 01/10/2011, 18:21

Hai visto il mio EDIT ?
avevo scritto span invece di <span

Avatar utente
lenders
phpBB Expert
phpBB Expert
Messaggi: 713
Iscritto il: 22/06/2010, 14:28
Sesso: Maschio
Versione: 3.0.10
Server: UNIX/Linux
Database: MySQL(i) 5.1.49-community-log
Località: Napoli
Contatta:

Re: Campi del profilo chiusi nelle tabelle

Messaggio da lenders » 01/10/2011, 18:31

Ok,ma lo stesso non ha funzionato,va bene se non riusciamo a centrarlo,cerchiamo di mettere insieme quello che ho scritto nel post precedente..Che facendo un pò di prove sono solo riuscito a sballare il forum

Rispondi

Torna a “[3.0.x] Forum di Supporto”

Chi c’è in linea

Visitano il forum: Nessuno e 59 ospiti