Página 1 de 1

MOD De IMAGESHACK Para PHPBB3

Publicado: 01 Jul 2008, 06:30
por Gustavo1973
Recuerdan este http://www.phpbb-es.com/foro/viewtopic. ... imageshack??
Hay algo similar para phpbb3???
Soy el moderador de www.v8extremo.com.
Plantilla(s) usuada(s): proSilver
MODs instalados: Ninguno
Versión de phpBB: 3.0.1
Servidor: Linux

Saludos
Gracias

Re: MOD De IMAGESHACK Para PHPBB3

Publicado: 01 Jul 2008, 20:59
por mitch
Bueno pues seria algo asi:
  1. Guardamos en el inicio del foro, un archivo llamado "iframe.php" con este contenido:

    Código: Seleccionar todo

    <body style="background-color:transparent">
    <form action="http://imageshack.us/index.php" method="post" enctype="multipart/form-data" target="_blank">
    <input type="hidden" name="MAX_FILE_SIZE" value="1048576">
    <input type="hidden" name="aff" value="www.tuweb.com">
    <input type="hidden" name="type" value="blank">
    <input type="file" class="textfield" name="fileupload" size="30"><br />
    <input type="submit" value="Subir imagen">
    <font color="#888888" face="Verdana" size="1">
    <span style="font-size:10">A esperar...</font></span><br />
    </form>
  2. Ahora las modificaciones para prosilver y subsilver2
    prosilver

    Buscar:

    Código: Seleccionar todo

    <textarea <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->name="signature" id="signature" style="height: 9em;"<!-- ELSE -->name="message" id="message"<!-- ENDIF --> rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" class="inputbox">{MESSAGE}{DRAFT_MESSAGE}{SIGNATURE}</textarea>
    Agregar Despues:

    Código: Seleccionar todo

    <br><span style="font-size: 10px;">Si quieres subir alguna imagen, puedes hacerlo desde aquí y luego utilizar la url de la imagen</span><br />  
    <br /><span style="font-size: 9px; color: #888888;">Alojamiento por <a href="http://imageshack.us/" target="_blank">ImageShack</a> - <a href="http://reg.imageshack.us/content.php?page=rules" target="_blank">Reglas</a></span><br />  
    <iframe src="iframe.php" scrolling="no" allowtransparency="true" frameborder="0" width="340" height="70">Actualiza tu navegador para subir imágenes</iframe>
    y para subsilver2

    Buscar:

    Código: Seleccionar todo

    <td valign="top" style="width: 100%;"><textarea name="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" style="width: 98%;">{MESSAGE}</textarea></td>
    Antes del </td> de ese codigo (esta al final), agregar:

    Código: Seleccionar todo

    <br><span style="font-size: 10px;">Si quieres subir alguna imagen, puedes hacerlo desde aquí y luego utilizar la url de la imagen</span><br />  
    <br /><span style="font-size: 9px; color: #888888;">Alojamiento por <a href="http://imageshack.us/" target="_blank">ImageShack</a> - <a href="http://reg.imageshack.us/content.php?page=rules" target="_blank">Reglas</a></span><br />  
    <iframe src="iframe.php" scrolling="no" allowtransparency="true" frameborder="0" width="340" height="70">Actualiza tu navegador para subir imágenes</iframe>
Espero sirva, yo lo probe y fue perfecto. salu2

Re: MOD De IMAGESHACK Para PHPBB3

Publicado: 01 Jul 2008, 23:00
por Gustavo1973
:bravo: :bravo: :bravo: :bravo:
Exelente Mitch, me vino al pelo. GRACIAS
Gustavo