Pagina 3 din 3

Re: Transformare camp din optional in obligatoriu

Scris: 03-Iun-2010, 00:57:37
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...)

Re: Transformare camp din optional in obligatoriu

Scris: 03-Iun-2010, 18:24:25
de visualstorm
Este in regula, nu trebuie sa mai faci nicio modificare