Pagina 1 din 1

Problema la Echipa

Scris: 27-Noi-2011, 12:51:46
de Invader
Buna ziua phpbb3.ro
Am o intrebare ,pe forum am tema we_clerblue bazata pe prosilver,si am facut un grup Fondatori,Si as vrea sa il separ de Administratori si de Moderatori,pentru ca la mine intr-un chenar apar administratorii si in celalalt moderatorii adica helperii etc.,Si as vrea sa fac sa apara intrun chenar fondatorii!Mai jos aveti memberlist_leaders.html din tema

Cod: Selectaţi tot

<!-- INCLUDE overall_header.html -->

<h2>{PAGE_TITLE}</h2>

<form method="post" action="{S_MODE_ACTION}">
	<div class="forums-wrapper">
		<table class="forums">
			<thead>
				<tr>
					<th>{L_ADMINISTRATORS}</th>
					<th class="group">{L_PRIMARY_GROUP}</th>
					<th class="group">{L_FORUMS}</th>
				</tr>
			</thead>
			<tbody>	
				<!-- BEGIN admin -->
					<tr class="<!-- IF admin.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
						<td>
							<p>{admin.USERNAME_FULL}</p>
							<p><!-- IF admin.RANK_IMG -->{admin.RANK_IMG}<!-- ELSE -->{admin.RANK_TITLE}<!-- ENDIF --></p>
						</td>
						<td class="bg2">
							<!-- IF admin.U_GROUP -->
								<p><a <!-- IF admin.GROUP_COLOR -->style="font-weight: bold; color: #{admin.GROUP_COLOR}"<!-- ENDIF --> href="{admin.U_GROUP}">{admin.GROUP_NAME}</a></p>
							<!-- ELSE -->
								<p>{admin.GROUP_NAME}</p>
							<!-- ENDIF -->
						</td>
						<td>-</td>
					</tr>
				<!-- BEGINELSE -->
					<tr class="bg1">
						<td colspan="3"><p>{L_NO_ADMINISTRATORS}</p></td>
					</tr>
				<!-- END admin -->
			</tbody>
		</table>
	</div>
	
	<div class="forums-wrapper">
		<table class="forums">
			<thead>
				<tr>
					<th>{L_MODERATORS}</th>
					<th class="group">{L_PRIMARY_GROUP}</th>
					<th class="group">{L_FORUMS}</th>
				</tr>
			</thead>
			<tbody>	
				<!-- BEGIN mod -->
					<tr class="<!-- IF mod.S_ROW_COUNT is even -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
						<td>
							<p>{mod.USERNAME_FULL}</p>
							<p><!-- IF mod.RANK_IMG -->{mod.RANK_IMG}<!-- ELSE -->{mod.RANK_TITLE}<!-- ENDIF --></p>
						</td>
						<td class="bg2">
							<!-- IF admin.U_GROUP -->
								<p><a <!-- IF mod.GROUP_COLOR -->style="font-weight: bold; color: #{mod.GROUP_COLOR}"<!-- ENDIF --> href="{mod.U_GROUP}">{mod.GROUP_NAME}</a></p>
							<!-- ELSE -->
								<p>{mod.GROUP_NAME}</p>
							<!-- ENDIF -->
						</td>
						<td><!-- IF not mod.FORUMS --><p>{L_ALL_FORUMS}</p><!-- ELSE --><select style="width: 100%;">{mod.FORUMS}</select><!-- ENDIF --></td>
					</tr>
				<!-- BEGINELSE -->
					<tr class="bg1">
						<td colspan="3"><p>{L_NO_MODERATORS}</p></td>
					</tr>
				<!-- END admin -->
			</tbody>
		</table>
	</div>
</form>

<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->

Re: Problema la Echipa

Scris: 27-Noi-2011, 17:19:39
de visualstorm
Destul de complicat, functiile administrative si de moderare sunt definite in fisierele php din folderul includes.
Mai precis, cred ca este vorba de includes/functions_display.php si includes/functions_user.
Acest memberlist_leaders.html reda practic tot ce are rang de admin si moderator prin case 'leaders': din fisierul memberlist.php.
Ca sa afisezi acei fondatori (care probabil sunt deja admini) este destul de complicat, deoarece interogarile sql ar deveni redundante. Nu ti-am raspuns ca sa ma aflu in treaba, ci mai mult sa dau o directie.

Re: Problema la Echipa

Scris: 05-Dec-2011, 18:47:17
de dorin
Numai un administrator poate fi fondator asa cum ca nu vad cum ar putea exista doua grupuri, pentru ca unul ar trebui implicit (administratori).