1 gcasanova May 14, 2008 00:01
3 gcasanova May 14, 2008 02:16
EdB,
But couldn't there be like a Java Script for this? Or an Ajax? I've found a Page to PDF plugin in the other script, you know, the one that claims that is second to God...
Also this people have a send to friend Ajax script...
I know there are ways to print only text through some available option in your browser, but I also know of too many people that still claim that their screensavers are virii...
So why don't make things easier, if we can of course?
4 edb May 14, 2008 21:13
The thing is you CAN'T unless you know exactly what everyone's divs are. When a browser sends a page to a printer it sends exactly what it has UNLESS it has special instructions to do something unique for printing.
Has nothing to do with web to PDF - nothing at all.
So what EXACTLY will everyone call all their sidebars? Will everyone use id=sidebar or class=Sidebar or id=SideBar or class=bSidebar? How about footer and header? By the way, evopress uses <div id="sidebar"> and custom uses <div class="bSideBar"> for an example of what a plugin would be up against.
It would be easy to make a plugin that would cover the half dozen skins that exist, but I can assure you that of the next half dozen the plugin won't work for at least one of them. So what happens when the skins repository has 60 skins again? Therefore it comes back to what I already said: it should be part of the skin. In fact the default skins should have a print.css in them that works for that exact skin and the head section of the document needs to call that style sheet for the appropriate media type (print of course). THEN b2evolution could say "no skins accepted without a print.css included", then all skins would offer reasonably nice printing capability.
gcasanova wrote:
Too bad: it's because of the style sheet differences.
Back in the 1.* days I uploaded about 50 skins. They ALL had a print.css style sheet used for printing. They ALL worked for the skin they were part of because each style sheet is different.
Do you have a Header or a MainHeader? Is it an ID or a CLASS? That's the type of stuff that matters. So like if your sidebar is [[<div id="bSidebar">]] and you don't want the sidebar when you print then your style sheet for print media has to say
Of course, that won't do you any good if your sidebar is a class. For that your print.css sheet would need to say
Therefore it MUST be skin-specific, OR, all skins absolutely must use the exact same ID selections and names as every other skin. Or b2evolution has to say "no listing skins that don't have a print.css file included.