Subiendo Imágenes Directamente Desde Tu Disco Duro
Publicado: 24 Jul 2008, 01:16
He ido a postimage.org y me he bajado las instrucciones para que permita subir las imágnes directamente desde el disco duro, haciendo la conversión directa del archivo a una url válida.
el texto que bajé fue éste:
(PD: el EoM final, supongo que es End of Mod, o sea, fin del mod. ¿Voy mal? o mi inglis da pa eso?
He seguido las instrucciones:
1.- Subir el addform.html a la raiz del foro.
2.- He entrado en el ACP, me he ido a Estilos, dentro de las plantillas y le he dado al botón de editar a prosilver
3.- He buscado la plantilla que dice, la posting_editor.html y la he abierto
4.- Busqué el texto }</textarea> y en la línea siguiente he añadido (copiar y pegar) el código de ahí encima.
He enviado después de la modificación y me he ido a limpiar la caché.
Al ir a postear un msg y darle al botón de img (ël código que tiene es el de la modificación que referenció mitch aquí y me sigue saliendo, quedándose a la espera de la url y no abriendo la opción de postimage para subir la imagen local.
Como vosotros aquí tenéis esa opción, ¿Hay que hacer algo más?
Os pego aquí el código puesto para que analizéis... no se, me da que lo puse donde no era.....
¿A que va a ser eso?
el texto que bajé fue éste:
Spoiler
##############################################################
## MOD Title: Simple Image Upload
## MOD Author: Sium < admin@postimage.org > (N/A) http://www.postimage.org
## MOD Description:
## This mod integrates image hosting with phpBB3
## It makes image upload very simple. All images are
## hosted on remote image hosting service, not on
## your forum. When user uploads image, script
## creates a thumbnail for image and appends bbcode
## to post user is typing. User doesn't need to
## know anything about bbcode. And this mod is very
## simple to install.
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: "posting_editor.html" or "posting_body.html"
## Included Files: addform.html
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
## If you run into any problems or have any questions feel free to email me at admin@postimage.org.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy addform.html to ./addform.html
#
#-----[ EDIT TEMPLATES (Administration Control Panel->Styles->Templates->Edit) ]---------------------------------------------
#
"posting_editor.html" - prosilver
"posting_body.html" - subsilver2
#
#-----[ FIND ]---------------------------------------------
#
}</textarea>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<br /> • <a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode ... &forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Añade imagén al post</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
## MOD Title: Simple Image Upload
## MOD Author: Sium < admin@postimage.org > (N/A) http://www.postimage.org
## MOD Description:
## This mod integrates image hosting with phpBB3
## It makes image upload very simple. All images are
## hosted on remote image hosting service, not on
## your forum. When user uploads image, script
## creates a thumbnail for image and appends bbcode
## to post user is typing. User doesn't need to
## know anything about bbcode. And this mod is very
## simple to install.
## MOD Version: 1.1.0
##
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: "posting_editor.html" or "posting_body.html"
## Included Files: addform.html
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
## If you run into any problems or have any questions feel free to email me at admin@postimage.org.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy addform.html to ./addform.html
#
#-----[ EDIT TEMPLATES (Administration Control Panel->Styles->Templates->Edit) ]---------------------------------------------
#
"posting_editor.html" - prosilver
"posting_body.html" - subsilver2
#
#-----[ FIND ]---------------------------------------------
#
}</textarea>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<br /> • <a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode ... &forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Añade imagén al post</a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
He seguido las instrucciones:
1.- Subir el addform.html a la raiz del foro.
2.- He entrado en el ACP, me he ido a Estilos, dentro de las plantillas y le he dado al botón de editar a prosilver
3.- He buscado la plantilla que dice, la posting_editor.html y la he abierto
4.- Busqué el texto }</textarea> y en la línea siguiente he añadido (copiar y pegar) el código de ahí encima.
He enviado después de la modificación y me he ido a limpiar la caché.
Al ir a postear un msg y darle al botón de img (ël código que tiene es el de la modificación que referenció mitch aquí y me sigue saliendo
Código: Seleccionar todo
[img][/img]
Como vosotros aquí tenéis esa opción, ¿Hay que hacer algo más?
Os pego aquí el código puesto para que analizéis... no se, me da que lo puse donde no era.....
¿A que va a ser eso?
Spoiler
Código: Seleccionar todo
</textarea></dt>
<br /> • <a href="javascript:void(0);" onclick="window.open('http://www.postimage.org/index.php?mode=phpbb&lang=spanish&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=500,height=400');return false;">Añade imagén al post</a>
<dd><span><a href="{U_FIND_USERNAME}" onclick="find_username(this.href); return false;">{L_FIND_USERNAME}</a></span></dd>
<dd><input type="submit" name="add_to" value="{L_ADD}" class="button2" /></dd>
<dd><input type="submit" name="add_bcc" value="{L_ADD_BCC}" class="button2" /></dd>
</dl>
<!-- ENDIF -->
<!-- ELSE -->