Foros del Web » Programando para Internet » PHP »

Hide Phpbb

Estas en el tema de Hide Phpbb en el foro de PHP en Foros del Web. Hola amigos quisiera q me ayudaran q yo no soy experto en php quiero poner en mi foro la opcion hide para q no ven ...
  #1 (permalink)  
Antiguo 26/07/2003, 12:01
 
Fecha de Ingreso: noviembre-2002
Ubicación: san miguel
Mensajes: 4
Antigüedad: 21 años, 5 meses
Puntos: 0
Hide Phpbb

Hola amigos quisiera q me ayudaran q yo no soy experto en php quiero poner en mi foro la opcion hide para q no ven el ftps q posteo solo el q responde al post lo podra ver ok.

Yo lo encontre aki
http://www.phpbbhacks.com/viewhack.php?id=870

ok. llego hasta el paso 5 del paso 6 no entiendo naaaaa

q es esto:
-----------------
6 - In bbcode.tpl // in the Templates/{Used template}/ directory
-----------------

At the top, add

<!-- BEGIN show -->
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td><span class="genmed"><b>Protected Message:</b></span></td>
</tr>
<tr>
<td class="quote">
{HTEXTE}
</td>
</tr>
</table>
<span class="postbody">
<!-- END show -->

<!-- BEGIN hide -->
</span>
<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1">
<tr>
<td><span class="genmed"><b>Protected Message:</b></span></td>
</tr>
<tr>
<td class="quote">
<center>--- If you are a *registered user* : you need to post in this topic to see the message ---</center>
</td>
</tr>
</table>
<span class="postbody">
<!-- END hide -->

-----------------------
7 - In posting_body.tpl // in the Templates/{Used template}/ directory
-----------------------

This part add a button in the dialog box (newtopic,...).

In the list of "// Helpline messages", add :


h_help = "Hide: [hide]message[/hide] (alt+h)";

Find this line :
bbtags = new Array('',''...

And add at the end :
'[hide]' and '[/hide]'

You will obtain something like this :


bbtags = new Array('','','','','','','
Cita:
','
','
Código:
','
','
  • ','
','
  • ','
','[img]','[/img]','','','[hide]','[/hide]');


Find

<td><span class="genmed">
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
</span></td>


Add Below : (Don't forget to adapt the "addbbcode" numbers if neccesary ! (exemple: addbbcode18 -> addbbcode20, 20 -> 22, etc)

<td><span class="genmed">
<input type="button" class="button" accesskey="h" name="addbbcode18" value="Hide" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('h')" />
</span></td>


Next, you need to modify all the "addbbcodexx" in the rest of the file. (exemple : addbbcode20 -> addbbcode22)


Alguien me puede explciar por favor, o si hay algun otro modo de hacerlo

  #2 (permalink)  
Antiguo 28/07/2003, 08:40
 
Fecha de Ingreso: noviembre-2002
Ubicación: san miguel
Mensajes: 4
Antigüedad: 21 años, 5 meses
Puntos: 0
Creo nadie sabe de esto :(((((
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 15:53.