1 esanchez Nov 22, 2005 23:46
3 kskhater Nov 29, 2005 10:50
I've found a nice php script for printing but it only works with single view.
If you are interested email me at khalid@alkhater.net and I send it to you.
You can see how it works in my blog @ http://www.alkhater.net/blog
I hope this help
:lol:
4 jeffposaka May 08, 2006 12:12
The thing I need is to offer print friendly pages without the header, nav, footer, etc. Using only css would still keep all this...using a print "skin" that is stripped of all the web fluff would be the best.
There used to be a thread about skin switching but it looks like it was deleted.
If anyone has figured this out please let me know.
Thanks in advance.
5 yabba May 08, 2006 12:30
You might find [url=http://forums.b2evolution.net/viewtopic.php?t=4099]this post[/url] worth a read.
¥
6 jeffposaka May 08, 2006 12:33
Thanks Yabba. I looked at that but couldn't get my head around it. It seemed like more of a css change rather than a skin change.
How would you recommend attacking this problem?
Thanks
7 yabba May 08, 2006 12:59
It is more of a css change but you could use a similar principal for a skin change.
1/ create a "print" skin
2/ add a "printer friendly" link to your normal skin :-
<a href="<?php echo regenerate_url( 'tempskin', 'tempskin=print'); ?>">printer friendly</a>
3/ then add this to the top of skins/<normal skin>/_main.php
<?php
param( 'tempskin', 'string' );
if( $tempskin == 'print' ){
require_once dirname(__FILE__).'/../<print skin>/_main.php';
exit;
}
?>
4/ If required, add a restore skin link to your print skin
<a href="<?php echo regenerate_url( 'tempskin'); ?>">Restore skin</a>
With a tad off luck that'll work :p
¥
8 jeffposaka May 08, 2006 13:16
Yabba,
I can't believe it works!!!
It works perfectly on 1.6 using stub files!!!
If you are ever in Sapporo, Japan, I owe you a drink.
Thanks!!!
9 yabba May 08, 2006 13:17
lol, no problem ;)
¥
esanchez ..
I have written a script (with instructions AND a spanish version, if that's your language?) that "sends this to a friend" ... either as a LINK or the blog entry as TEXT.
You can get it [url=http://www.randsco.com/index.php/2005/05/01/email_blog_entry]HERE[/url]
Regarding ... printer friendly ... because you can control how the printed page comes out using the print.css, I don't understand the point of this option. I suppose you could have a style-switcher that converts the "screen" media to be the "print" media (as I suspect many of these sites are doing) ... but really, just play with the print.css file till you're happy and that should be good enough.
I think Whoo has written some stuff about making printer-friendly pages on [url=http://village-idiot.org]her site[/url] ... you might have a search there.
Hope this helps.
-stk :D