Page 32 of 34

Posted: Fri Jan 19, 2007 4:16 am
by krisbfunk
could someone assist me making this mod work for easyCMS? the cms_view_article.php is quite similar to viewtopic.php so not to much editing is needed.

posted about it here:
http://www.phpbb.com/phpBB/viewtopic.ph ... 30#2759630

Posted: Sat Jan 20, 2007 12:24 pm
by Travelcard
I'm getting the same problem as the people in the last couple of pages:

Code: Select all

Template->loadfile(): No file specified for handle qrbody
It has happened since installing the "Super Quick Reply" MOD

I think it's because the Printer Friendly MOD refernces the viewtopic_body.tpl whereas since the SQR MOD is installed viewtopic_quickreply.tpl is the main view.

Can someone clever have a go at fixing this? :)

Posted: Sat Jan 20, 2007 7:34 pm
by Dogs and things
Hello,

I don´t seem to be able to find how/where I can increase font-size in the printable version of the topic. Does anybody know how to do this?

**EDIT** As usual, I asked too quickly. I just found out that in printer_header.tpl there is the .css. After some trial and error editing I found the right thingies to be edited. It´s changing things like:

Code: Select all

{T_FONTSIZE3}px; }
into:

Code: Select all

14px; 
Greetings. :wink:

Posted: Sun Jan 21, 2007 10:22 am
by Travelcard
I'm gutted :(

I've had to restore my backups from a few days ago. There really should be some kind of warning that the author is no longer involved in this MOD :x
There should also be a warning on the first post that it's incompatible with the "Super Quick Reply" MOD.

Is there another print-friendly MOD in development at the moment?

Posted: Sun Jan 21, 2007 10:23 am
by Travelcard
oops - double post

Posted: Mon Mar 05, 2007 9:46 pm
by HerbICMDS
Message deleted

Posted: Fri Mar 09, 2007 8:45 am
by murnauvsbuñuel
in spanish:

Code: Select all

$faq[] = array("--", "Ver Tema para Imprimir");
$faq[] = array("¿Cuál es :| |: el botón para? - Cancelar la paginación del Foro", "Presionando en este botón usted puede quitar las paginaciones fijadas del foro para que el Tema actual ayude a su navegador a hacer las paginaciones apropiadas para imprimir (Archivo-Imprimir en el menú del navegador) basada en las líneas espaciamiento real, más bien que en el número de mensajes por página.");
$faq[] = array("¿Que son las cajas encima de la salida imprimible? - Rango de selección", "Hay dos cajas encima de la página Comienzo-Final- como el botón O_o. Permiten seleccionar una gama de mensajes. Observe que cada mensaje en la visión imprimible tiene un número. Utilice esos números para rellenar las cajas en Comienzo para instalar el primer mensaje que usted desea ser impreso, y Final para el ultimo mensaje que desea imprimir, presione el botón de O_o para actualizar el Tema. Otra manera de fijar una gama es poner un número negativo en la segunda caja, que significará que usted desea - n de los mensajes que se imprimirán. Por ejemplo, 4 7 harán salir los mensajes 4, 5, 6, 7. Sin embargo si usted incorpora valores 4 -7 dentro de primeras y segundas cajas respectivamente, los mensajes 4, 5, 6, 7, 8, 9, 10 serán mostrados después de que usted presione el botón de actualizar.");
$faq[] = array("¿Como imprimir solamente un mensaje? - Rango de selección avanzado", "Primero, vaya a la vista imprimible del Tema presionando el botón de la impresora. Encuentre su mensaje y observe el número delante de él. Mecanografíe ese número en la primera caja en la izquierda superior de la visión imprimible. En la segunda caja ponga el valor -1 y presione el botón O_o. Esto dirá a la base de datos hacer salir solamente un mensaje. Otra manera de conseguir este resultado está poniendo el mismo número en ambas cajas. Digamos que desea imprimir solamente el mensaje número 16. Complete las cajas así: 16 -1 y presiona el botón O_o. Esto solamente funcionara si hay por lo menos dieciséis mensajes en el Tema actual.");
$faq[] = array("¿Cómo usar símbolos extraños? / ¿Mas preguntas?", "Para hacer este MOD en lenguaje-independiente decidí que sería mas fácil utilizar símbolos en vez de palabras. Si usted tiene un comentario o una sugerencia referente a mi opción de símbolos, o de otras cosas en el general relacionado con este MOD, por favor ingrese en la discusión en curso en phpBB Soporte MOD");

Re: [2.0.7] Printer-friendly topic mod

Posted: Thu Mar 29, 2007 10:40 pm
by lorenz054
I'm having a problem with this mod because I'm also using the mod_rewrite mod. When I view the printer friendly view, it generates an error at the bottom:

Fatal error: Call to undefined function: replace_for_mod_rewrite() in /home/domain/public_html/includes/page_tail.php on line 55

Does anyone know how to fix this?

Re:

Posted: Fri Mar 30, 2007 2:36 pm
by saaiberke
Travelcard wrote: I'm gutted :(

I've had to restore my backups from a few days ago. There really should be some kind of warning that the author is no longer involved in this MOD :x
There should also be a warning on the first post that it's incompatible with the "Super Quick Reply" MOD.

Is there another print-friendly MOD in development at the moment?


I'm using both mods on my board without any problem. 2.0.22 board with XSmod and MorpheusX theme.

If you install a mod, better read through the complete support topic, your solution can be found here

Grtz,

Nic

Posted: Sat Mar 31, 2007 4:32 pm
by HerbICMDS
Message deleted

Re: [2.0.7] Printer-friendly topic mod

Posted: Sat Mar 31, 2007 4:39 pm
by Raimon
The MODsdatabase of phpBB.com have some problemens to bad, but phpBB.com have a solution.
When you read the pink box and click on How to securely download MODs while the database is unavailable
You know that you can download this mod on the location: http://www.phpbb.com/files/mods/printer_topic_1.0.8.zip ;)

Posted: Sat Mar 31, 2007 5:12 pm
by HerbICMDS
Message deleted

Re: [2.0.7] Printer-friendly topic mod

Posted: Mon Apr 02, 2007 6:21 am
by 2LadyDi
Although it works for me, I wish I could put the button somewhere else. It currently resides next to New Post and Post Reply. I want to put it where View previous topic :: View next topic reside.

Any suggestions? Thanks loads to whomever comes up with the solution.

Re: [2.0.7] Printer-friendly topic mod

Posted: Sun Apr 15, 2007 6:53 pm
by WebSnail
Going through this mod and aware that there was an exploit in the very old printview.php alternative so I've been double checking the code in 1.0.8 and figured that a little extra care could be taken with one part of the code

Code: Select all

	LIMIT $start, ".(isset($finish)? ((($finish - $start) > 0)? ($finish - $start): -$finish): $board_config['posts_per_page']);
I'd recommend that instead of leaving the $start and $finish as is that they be run through intval first..

Code: Select all

$start = intval($start);
if (isset($finish)) {
	$fin = (($finish - $start) > 0) ? (intval($finish) - $start) : -(intval($finish));
} else {
	$fin = $board_config['posts_per_page'];
}
$sql .= " LIMIT $start, $fin";


May be overkill but having been hacked three times thanks to gallery, knowledge base mods, etc... I figure it's best to be careful.

Re: [2.0.7] Printer-friendly topic mod

Posted: Sun Apr 15, 2007 8:00 pm
by Dogs and things
Hello Websnail,

So how should the code look like?

The original line you propose to alter looks like this:

Code: Select all

	LIMIT $start, ".(isset($finish)? ((($finish - $start) > 0)? ($finish - $start): -$finish): $board_config['posts_per_page']);
What should I turn that into?