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
| |||
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 |
| |||
para eso puedes usar el Mod Attachment lo puedes encontrar aqui http://www.phpbbhacks.com un saludo |
| |||
aaah vale, pero es q tngo una duda:
Código:
tengo que copiar esto asi como viene? o tengo q modifikar algo?# #-----[ 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 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 |
| |||
Código:
un saludo #-----[ 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 |
| |||
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 |