La guida, logicamente, è stata fatta seguendo il prosilver, ma può andare bene per i suoi derivati e, con qualche adattamento, anche per subsilver2.
Questa guida è tratta da un post di bingo, che potete leggere qui: http://www.phpbbitalia.net/forum/forum- ... tml#p32716
Io vi spiego solamente come funziona tale metodo e come applicarlo nel caso non ci foste riusciti.
Prima di tutto, come applichiamo tali bordi?
Analizziamo come è composta la stringa che fa comparire il campo del profilo nel viewtopic_body.html:
Codice: Seleziona tutto
<dd><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
Codice: Seleziona tutto
<dd class="boxprofile"><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
Codice: Seleziona tutto
dd.boxprofile {
width: 80%;
background-color: #F5F5F5 ;
border: 1px solid #708090 ;
padding: 3px;
margin-top: 2px;
margin-left: 5px;
}
Nel caso non abbiate capito nulla, ecco passo a passo come applicare tali box.
Aprite "viewtopic_body.html"
Cercate:
Codice: Seleziona tutto
<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_JOINED --><dd><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
<!-- IF postrow.S_PROFILE_FIELD1 -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
<!-- ENDIF -->
<!-- BEGIN custom_fields -->
<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- END custom_fields -->
Codice: Seleziona tutto
<!-- IF postrow.POSTER_POSTS != '' --><dd class="boxprofile"><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_JOINED --><dd class="boxprofile"><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
<!-- IF postrow.POSTER_FROM --><dd class="boxprofile"><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
<!-- IF postrow.S_PROFILE_FIELD1 -->
<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
<dd class="boxprofile"><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
<!-- ENDIF -->
<!-- BEGIN custom_fields -->
<dd class="boxprofile><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- END custom_fields -->
Codice: Seleziona tutto
dd.boxprofile {
width: 80%;
background-color: #F5F5F5 ;
border: 1px solid #708090 ;
padding: 3px;
margin-top: 2px;
margin-left: 5px;
}