Transformare camp din optional in obligatoriu

Pentru întrebări legate de facilităţile forumului phpBB 3.0.x, acest loc este cel mai potrivit.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
zenit
Utilizator înregistrat
Mesaje: 52
Membru din: 04-Sep-2007, 09:17:43
Versiune: 3.0.7-PL1
Ext: Nu
Server: Windows
Nivel phpBB: Mediu
Localitate: Bucuresti

Re: Transformare camp din optional in obligatoriu

Mesaj de zenit »

Huh! Am rezolvat doar cu mici modificari in memberlist_body.html, dupa cum urmeaza:

1. Am intercalat coloana LOCATION in capul de tabel (si am modificat un pic latimile celelalte coloane):
<tr>
<th nowrap="nowrap">#</th>
<th nowrap="nowrap" width="20%" align="{S_CONTENT_FLOW_BEGIN}"><a href="{U_SORT_USERNAME}">{L_USERNAME}</a></th>

<th nowrap="nowrap" width="20%"><a href="{U_SORT_LOCATION}">{L_LOCATION}</a></th>

<th nowrap="nowrap" width="10%"><a href="{U_SORT_JOINED}">{L_JOINED}</a></th>
<th nowrap="nowrap" width="8%"><a href="{U_SORT_POSTS}">{L_POSTS}</a></th>
<th nowrap="nowrap" width="12%"><a href="{U_SORT_RANK}">{L_RANK}</a></th>
<th nowrap="nowrap" width="10%">{L_SEND_MESSAGE}</th>
<th nowrap="nowrap" width="10%"><a href="{U_SORT_EMAIL}">{L_EMAIL}</a></th>
<th nowrap="nowrap" width="11%"><a href="{U_SORT_WEBSITE}">{L_WEBSITE}</a></th>
<!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE --><th width="2%" nowrap="nowrap">{L_MARK}</th><!-- ENDIF -->
</tr>

2. Am umplut coloana cu informatia necesara:
<td class="gen" align="center">&nbsp;{memberrow.ROW_NUMBER}&nbsp;</td>
<td class="genmed" align="{S_CONTENT_FLOW_BEGIN}">{memberrow.USERNAME_FULL}<!-- IF S_SELECT_SINGLE --> [&nbsp;<a href="#" onclick="insert_single('{memberrow.A_USERNAME}'); return false;">{L_SELECT}</a>&nbsp;]<!-- ENDIF --></td>

<td class="gen" align="center">{memberrow.LOCATION}</td>

<td class="genmed" align="center" nowrap="nowrap">&nbsp;{memberrow.JOINED}&nbsp;</td>
<td class="gen" align="center">{memberrow.POSTS}</td>
<td class="gen" align="center"><!-- IF memberrow.RANK_IMG -->{memberrow.RANK_IMG}<!-- ELSE -->{memberrow.RANK_TITLE}<!-- ENDIF --></td>
Acum apare coloana foarte frumos si totul pare a fi ok, dar rog a mi se spune daca am procedat corect (daca nu cumva mai trebuie sa fac modificari si in alte fisiere...)
visualstorm
Utilizator înregistrat
Mesaje: 219
Membru din: 29-Apr-2007, 01:12:47
Versiune: 3.0.12
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Experimentat
Nivel php: Mediu

Re: Transformare camp din optional in obligatoriu

Mesaj de visualstorm »

Este in regula, nu trebuie sa mai faci nicio modificare
Închis

Înapoi la “3.0.x Cum pot să...?”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Google [Bot] și 2 vizitatori