Foros del Web

Foros del Web (http://www.forosdelweb.com/)
-   Sistemas de gestión de contenidos (http://www.forosdelweb.com/f54/)
-   -   hola, adjuntar archivos (http://www.forosdelweb.com/f54/hola-adjuntar-archivos-198498/)

_NaTraX_ 27/04/2004 08:28

hola, adjuntar archivos
 
hola, quiero poner en mi foro q se puedan adjuntar archivos pero no se muxo d php y me lio cn los condigos y eso y tampoco se q hay k poner, k tendria k poner? o donde puedo decargarlo

SAludos :neurotico

elmajaron 27/04/2004 10:28

que foro usas phpbb,invision,vbullentin otros? un saludo

_NaTraX_ 27/04/2004 11:07

hola, es phpbb :pensando:

elmajaron 27/04/2004 11:37

para eso puedes usar el Mod Attachment lo puedes encontrar aqui http://www.phpbbhacks.com un saludo

_NaTraX_ 27/04/2004 12:34

aaah vale, pero es q tngo una duda:
Código:

#
#-----[ OPEN ]---------------------------------------------
#
extension.inc

#
#-----[ FIND ]---------------------------------------------
# around line 22
$phpEx = "php";

#
#-----[ AFTER, ADD ]--------------------------------------
#
$attach_num_queries = 0;

#
#-----[ OPEN ]---------------------------------------------
#
attach_mod/includes/constants.php

#
#-----[ FIND ]---------------------------------------------
# around line 30
define('ATTACH_DEBUG', 0);
// define('ATTACH_DEBUG', 1);

#
#-----[ REPLACE WITH ]---------------------------------------
#
// define('ATTACH_DEBUG', 0);
define('ATTACH_DEBUG', 1);

#
#-----[ OPEN ]---------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]---------------------------------------------
# Around line 494
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
        global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header;

#
#-----[ AFTER, ADD ]---------------------------------------
#
        global $attach_num_queries;

#
#-----[ OPEN ]---------------------------------------------
#
includes/page_tail.php

#
#-----[ FIND ]---------------------------------------------
# Around line 89
exit;

#
#-----[ BEFORE, ADD ]---------------------------------------
#
if ( ATTACH_DEBUG )
{
        print "<center><font size=\"-2\">For the Attachment Mod " . $attach_num_queries . " queries were executed.</font></center>";
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


--------------- ALL QUERY ------------------

#
#-----[ OPEN ]---------------------------------------------
#
extension.inc

#
#-----[ FIND ]---------------------------------------------
# around line 22
$phpEx = "php";

#
#-----[ AFTER, ADD ]--------------------------------------
#
$mtime = microtime();   
$mtime = explode(" ",$mtime);   
$mtime = $mtime[1] + $mtime[0];   
$starttime = $mtime;
$attach_num_queries = 0;

#
#-----[ OPEN ]---------------------------------------------
#
attach_mod/includes/constants.php

#
#-----[ FIND ]---------------------------------------------
# around line 30
define('ATTACH_DEBUG', 0);
// define('ATTACH_DEBUG', 1);

#
#-----[ REPLACE WITH ]---------------------------------------
#
// define('ATTACH_DEBUG', 0);
define('ATTACH_DEBUG', 1);

#
#-----[ OPEN ]---------------------------------------------
#
includes/functions.php

#
#-----[ FIND ]---------------------------------------------
# Around line 494
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
        global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header;

#
#-----[ AFTER, ADD ]---------------------------------------
#
        global $attach_num_queries;

#
#-----[ OPEN ]---------------------------------------------
#
includes/page_tail.php

#
#-----[ FIND ]---------------------------------------------
# Around line 89
exit;

#
#-----[ BEFORE, ADD ]---------------------------------------
#
$generation_time =  printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime);

if ( ATTACH_DEBUG )
{
        print "<center><font size=\"-2\">For the Attachment Mod " . $attach_num_queries . " queries were executed.</font></center>";
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#


# EoM

tengo que copiar esto asi como viene? o tengo q modifikar algo?
y lo tendria q copiar a continuacion de la ultima palabra q haya en el archivo q tngo q modifikar? weno los archivos k son muxos xD :(

Edit: common.php, faq.php, modcp.php, posting.php, privmsg.php, viewforum.php, viewtopic.php,
## admin/admin_forumauth.php, admin/admin_ug_auth.php, includes/auth.php, includes/functions.php,
## includes/prune.php, includes/topic_review.php, modcp_body.tpl, posting_body.tpl, posting_preview.tpl,
## posting_topic_review.tpl, privmsgs_body.tpl, privmsgs_preview.tpl, privmsgs_read_body.tpl,
## viewforum_body.tpl, viewtopic_body.tpl
saludos :golpeado:

elmajaron 27/04/2004 14:04

Código:


#-----[ ABRIR ]---------------------------------------------
#
extension.inc

#
#-----[ ENCONTRAR ]---------------------------------------------
# around line 22
$phpEx = "php";

#
#-----[ AGREGAR DESPUES ]--------------------------------------
#
$attach_num_queries = 0;

#
#-----[ ABRIR ]---------------------------------------------
#
attach_mod/includes/constants.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# around line 30
define('ATTACH_DEBUG', 0);
// define('ATTACH_DEBUG', 1);

#
#-----[ REEMPLAZAR POR ]---------------------------------------
#
// define('ATTACH_DEBUG', 0);
define('ATTACH_DEBUG', 1);

#
#-----[ ABRIR ]---------------------------------------------
#
includes/functions.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# Around line 494
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
        global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header;

#
#-----[ AGREGAR DESPUES ]---------------------------------------
#
        global $attach_num_queries;

#
#-----[ ABRIR ]---------------------------------------------
#
includes/page_tail.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# Around line 89
exit;

#
#-----[ AGREGAR ANTES ]---------------------------------------
#
if ( ATTACH_DEBUG )
{
        print "<center><font size=\"-2\">For the Attachment Mod " . $attach_num_queries . " queries were executed.</font></center>";
}

#
#-----[ GUARDAR LOS ARCHIVOS ]------------------------------------------
#


--------------- ALL QUERY ------------------

#
#-----[ ABRIR ]---------------------------------------------
#
extension.inc

#
#-----[ ENCONTRAR ]---------------------------------------------
# around line 22
$phpEx = "php";

#
#-----[ AGREGAR DESPUES ]--------------------------------------
#
$mtime = microtime();   
$mtime = explode(" ",$mtime);   
$mtime = $mtime[1] + $mtime[0];   
$starttime = $mtime;
$attach_num_queries = 0;

#
#-----[ ABRIR ]---------------------------------------------
#
attach_mod/includes/constants.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# around line 30
define('ATTACH_DEBUG', 0);
// define('ATTACH_DEBUG', 1);

#
#-----[ REEMPLAZAR POR ]---------------------------------------
#
// define('ATTACH_DEBUG', 0);
define('ATTACH_DEBUG', 1);

#
#-----[ ABRIR ]---------------------------------------------
#
includes/functions.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# Around line 494
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')
{
        global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header;

#
#-----[ AGREGAR DESPUES ]---------------------------------------
#
        global $attach_num_queries;

#
#-----[ ABRIR ]---------------------------------------------
#
includes/page_tail.php

#
#-----[ ENCONTRAR ]---------------------------------------------
# Around line 89
exit;

#
#-----[ AGREGAR ANTES ]---------------------------------------
#
$generation_time =  printf("<br /><center><font size=\"-2\">phpBB Created this page in %f seconds : " . $db->num_queries . " queries executed : $gzip_text".$debug_mode."</font></center>", $totaltime);

if ( ATTACH_DEBUG )
{
        print "<center><font size=\"-2\">For the Attachment Mod " . $attach_num_queries . " queries were executed.</font></center>";
}

#
#-----[ GUARDAR LOS ARCHIVOS ]------------------------------------------
#


# EoM

un saludo

_NaTraX_ 27/04/2004 15:12

hola he puesto ese codigo en todos los archivos y me sale esto:
http://usuarios.lycos.es/deliriumklan/phpBB2/
un monton d letrs raras y no sale na d subir archivo :( k hago mal?

salu2 :-(


La zona horaria es GMT -6. Ahora son las 05:23.

Desarrollado por vBulletin® Versión 3.8.7
Derechos de Autor ©2000 - 2026, Jelsoft Enterprises Ltd.