Recordad que para pedir soporte alguno, debéis facilitar los datos de soporte oportunos por favor, mirad aquí y leer las Normas generales del foro, esto nos servirá de ayuda para dar el mejor soporte..

Gracias.

La Administración de phpBB España.

Printer Friendly Mod No Funciona Con Mod Rewrite

Aquí­ podrás dejar tus dudas sobre MODs o MODificaciones de tu phpBB2
  Reglas del Foro
Antes de participar en los foros, leer esto por favor.
Normas generales de phpBB-Es y las de Soporte
Cerrado
_hola_
Observador/a
Mensajes: 4
Registrado: 15 May 2006, 14:34

Printer Friendly Mod No Funciona Con Mod Rewrite

#1

Mensaje por _hola_ »

Tengo instalado el mod rewrite desde hace tiempo en mis foros, y ahora queria poner el mod del "printer friendly", o una version imprimible de temas.

El problema es que debe haber algun conflicto entre ellos y solo se obtiene una pagina en blanco.

Buscando encontre esto:

Código: Seleccionar todo

In looking back thru some pages I found some info that I tried but still blank pages when viewing the print version of a topic. This is what I did. 

I saw an issue someone had with the mod rewrite code in page tail so I added 


Code:	

if(!isset($HTTP_GET_VARS['printertopic'])) 
{ 
echo replace_mod_rewrite($contents); 
}	


And given the questions with the subforums code and the load templates area I took 
Code:	
// 
// Load templates 
// 
if(isset($HTTP_GET_VARS['printertopic'])) 
{ 
   $template->set_filenames(array( 
      'body' => 'printertopic_body.tpl') 
   ); 
} else 
{ 
   $template->set_filenames(array( 
      'body' => 'viewtopic_body.tpl') 
   ); 
} 
// Begin Simple Subforums MOD 
$all_forums = array(); 
make_jumpbox('viewforum.'.$phpEx, $forum_id, $all_forums);	


and made it 


Code:	
// 
// Load templates 
// 
if(isset($HTTP_GET_VARS['printertopic'])) 
{ 
   $template->set_filenames(array( 
      'body' => 'printertopic_body.tpl') 
   ); 
} else 
{ 
   $template->set_filenames(array( 
      'body' => 'viewtopic_body.tpl') 
   ); 
} 

if(!isset($HTTP_GET_VARS['printertopic'])) 
{ 
// Begin Simple Subforums MOD 
$all_forums = array(); 
} 

if(isset($HTTP_GET_VARS['printertopic'])) 
{ 
make_jumpbox('viewforum.'.$phpEx, $forum_id); 
} 
else 
{ 
make_jumpbox('viewforum.'.$phpEx, $forum_id, $all_forums); 
}	


Where the logic was if the vairable printertopic was set it should call the code how the mod wants it called but if the variable printertopic is not set than it calls the code how the subforums mod wants. 

Anyone else overcom this blank page issue? I know the template files are uploaded to the /templates/fisubice folder and I know they are complete as the file sizes match.
sacado de aqui: http://www.phpbb.com/phpBB/viewtopic.ph ... &start=390

mas personas con el mismo problema pero sin solucion. Al hacer eso, en vez de dar un error, ya se ha quitado, pero sale pagina en blanco. Teneis alguna idea de por donde pueden ir los tiros???

Salu2 y gracias de antemano

Cerrado

Volver a “Soporte, preguntas sobre MODs de phpBB 2”