Página 1 de 1

Printer Friendly Mod No Funciona Con Mod Rewrite

Publicado: 15 May 2006, 14:53
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