[2.0.7] Printer-friendly topic mod

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
48
45%
Very Good
26
25%
Good
11
10%
Fair
9
8%
Poor
12
11%
 
Total votes: 106

krisbfunk
Registered User
Posts: 150
Joined: Mon Jul 10, 2006 1:47 am

Post 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
Travelcard
Registered User
Posts: 59
Joined: Fri Dec 15, 2006 9:42 am

Post 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? :)
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Post 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:
For phpBB2 support visit phpBB2refugees.
Travelcard
Registered User
Posts: 59
Joined: Fri Dec 15, 2006 9:42 am

Post 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?
Last edited by Travelcard on Sun Jan 21, 2007 10:25 am, edited 2 times in total.
Travelcard
Registered User
Posts: 59
Joined: Fri Dec 15, 2006 9:42 am

Post by Travelcard »

oops - double post
HerbICMDS
Registered User
Posts: 8
Joined: Wed Feb 28, 2007 11:53 pm

Post by HerbICMDS »

Message deleted
Last edited by HerbICMDS on Mon Sep 10, 2007 2:41 am, edited 1 time in total.
murnauvsbuñuel
Registered User
Posts: 177
Joined: Mon Jun 20, 2005 9:49 am

Post 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");
sorry for my bad english i am spanish.
ImagemxBB Portal the best portal to phpBB2
lorenz054
Registered User
Posts: 1
Joined: Thu Mar 29, 2007 10:38 pm

Re: [2.0.7] Printer-friendly topic mod

Post 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?
saaiberke
Registered User
Posts: 1126
Joined: Wed Jul 20, 2005 8:13 am
Location: Gent/Belgium
Contact:

Re:

Post 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
HerbICMDS
Registered User
Posts: 8
Joined: Wed Feb 28, 2007 11:53 pm

Post by HerbICMDS »

Message deleted
Last edited by HerbICMDS on Mon Sep 10, 2007 2:40 am, edited 1 time in total.
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.7] Printer-friendly topic mod

Post 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 ;)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me @ www.raimon.nl for fair prices and good service!
HerbICMDS
Registered User
Posts: 8
Joined: Wed Feb 28, 2007 11:53 pm

Post by HerbICMDS »

Message deleted
Last edited by HerbICMDS on Mon Sep 10, 2007 2:39 am, edited 1 time in total.
User avatar
2LadyDi
Registered User
Posts: 258
Joined: Fri Mar 15, 2002 6:01 am
Location: MD, USA
Contact:

Re: [2.0.7] Printer-friendly topic mod

Post 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.
WebMistress of SHAGGY's Studio.com
http://www.shaggysstudio.com
WebSnail
Registered User
Posts: 524
Joined: Sun Nov 11, 2001 2:20 pm
Location: South Yorkshire, UK
Contact:

Re: [2.0.7] Printer-friendly topic mod

Post 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.
Last edited by WebSnail on Sun Apr 15, 2007 10:15 pm, edited 1 time in total.
User avatar
Dogs and things
Registered User
Posts: 2114
Joined: Fri Sep 01, 2006 9:04 am
Location: Spain
Contact:

Re: [2.0.7] Printer-friendly topic mod

Post 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?
For phpBB2 support visit phpBB2refugees.
Post Reply

Return to “[2.0.x] MOD Database Cleanup”