SnippetsMostrar/Ocultar el contenido del Indice en General

Ese foro es para snippets, pequeños mods, no suficiente grandes para ser Mods

Moderators: Carlos, Soporte en MODs, Soporte en phpBB

Previous topicNext topic

0
No votes
 
Total votes: 0

User avatar
Carlos
Admin
Admin
Posts: 159
Joined: 17 Jun 2012 01:01:50
Bandera: Mexico
Nombre real: Carlos

Mostrar/Ocultar el contenido del Indice en General

Post by Carlos »

Idea tomada de un código html spoiler!

prosilver
[openfile]Abrir: styles/prosilver/template/index_body.html[/openfile]
[findcode]Busca:

Code: Select all

			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->
Agrega Despues:

Code: Select all

<br />
<div class="panel bg3">
	<div class="inner"><span class="corners-top"><span></span></span>
		<input class="button2" type="submit" value="Show {L_WHO_IS_ONLINE}" style="margin: 5px;"  onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide {L_WHO_IS_ONLINE}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_WHO_IS_ONLINE}'; }" /></div><div class="quotecontent"><div style="display: none;">	
Busca:

Code: Select all

	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->
Agrega Despues:

Code: Select all

</div></div>
<span class="corners-bottom"><span></span></span></div>
Busca:

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
Agrega Despues:

Code: Select all

<div class="panel bg1">
	<div class="inner"><span class="corners-top"><span></span></span>
		<input class="button2" type="submit" value="Show {L_FORUM} {L_STATISTICS}" style="margin: 5px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide {L_FORUM} {L_STATISTICS}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_FORUM} {L_STATISTICS}'; }" /></div><div class="quotecontent"><div style="display: none;">	
Busca:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
<!-- ENDIF -->
Agrega Despues:

Code: Select all

</div></div>
<span class="corners-bottom"><span></span></span></div>
[/findcode]

subsilver2
[openfile]Abre: styles/subsilver2/template/index_body.html[/openfile]
[findcode]Busca:

Code: Select all

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />
Agregar Despues:

Code: Select all

<div><div class="content">
<input class="btnlite" type="button" value="Show {L_WHO_IS_ONLINE}" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide {L_WHO_IS_ONLINE}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_WHO_IS_ONLINE}'; }" />
</div><div class="quotecontent"><div style="display: none;">	
	
Busca:

Code: Select all

			<td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
		</tr>
	<!-- ENDIF -->
	</table>
Agrega Despues:

Code: Select all

	</div></div></div>
Busca:

Code: Select all

<!-- IF S_DISPLAY_BIRTHDAY_LIST -->
	<br clear="all" />
Agrega Despues:

Code: Select all

<div><div class="content">
<input class="btnlite" type="button" value="Show {L_FORUM} {L_STATISTICS}" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';      this.innerText = ''; this.value = 'Hide {L_FORUM} {L_STATISTICS}'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show {L_FORUM} {L_STATISTICS}'; }" />
</div><div class="quotecontent"><div style="display: none;">	
	
Busca:

Code: Select all

	<td class="row1" width="100%" valign="middle"><p class="genmed">{TOTAL_POSTS} | {TOTAL_TOPICS} | {TOTAL_USERS} | {NEWEST_USER}</p></td>
</tr>
</table>
Agrega Despues:

Code: Select all

</div></div></div>
[/findcode]

eso es todo, refrescar el template y el navegador para poder ver los cambios!

Saludos, Equipo de phpBBMexico!
[mod=Carlos]Recuerda poner tus datos de soporte antes de pedir ayuda! Asi nos evitamos dramas y te ayudamos rapido [/mod]
Previous topicNext topic

Return to “Snippets”