Problema la Echipa

Folosiţi acest forum pentru a discuta problemele apărute în timpul folosirii forumului phpBB 3.0.x.
Reguli forum
Aveti o problema si vreti sa primiti ajutor? Click aici ! Nu uitati si de regulamentul forumului !
Închis
Invader
Nou venit
Mesaje: 2
Membru din: 23-Iul-2011, 03:16:06
Versiune: phpbb3.0
Ext: Nu
Server: Windows
Nivel phpBB: Mediu

Problema la Echipa

Mesaj 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 -->
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: Problema la Echipa

Mesaj 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.
Avatar utilizator
dorin
Fost coleg
Mesaje: 4620
Membru din: 24-Iun-2003, 23:23:29
Versiune: 3.1.10
Ext: Da
Server: UNIX/Linux
Nivel phpBB: Mediu
Nivel php: Puţin experimentat
Contact:

Re: Problema la Echipa

Mesaj 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).
Închis

Înapoi la “3.0.x Funcţionare”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 1 vizitator