Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Print Page
« on August 20th, 2012, 05:25 AM »
I've thought about Print Page recently and have some mixed feelings about it.

Specifically, three things occur to me.

1) It could be a plugin rather than a core feature. The savings for the bulk of forums would be quite significant since robots do often follow nofollow links, they just don't carry link juice through. So removing it entirely would actually save quite a bit of bandwidth in the long run.

2) If it's not made a plugin, it could have permissions attached, e.g. default to be not visible to guests.

3) If it does remain core and doesn't have permissions attached, it at least needs to indicate noindex in the page itself, since right now they still do get indexed.

Also, making it a plugin would mean one less stupid thing that is going to appear in 'how do I configure my htaccess for bestest SEO for my forums' threads.

Thoughts?
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Pandos

  • Living on the edge of Wedge
  • Posts: 635
Re: Print Page
« Reply #1, on August 20th, 2012, 10:24 AM »
For me it's OK to stay in core. But with permissions attached.

# dpkg-reconfigure brain
error: brain is not installed or configured

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Print Page
« Reply #2, on August 20th, 2012, 11:04 AM »
Quote from Arantor on August 20th, 2012, 05:25 AM
1) It could be a plugin rather than a core feature. The savings for the bulk of forums would be quite significant since robots do often follow nofollow links, they just don't carry link juice through. So removing it entirely would actually save quite a bit of bandwidth in the long run.
I'd say if robots are a problem, we could simply attach possibly_robot to that.
OTOH, one of the good points of printpage is that it gets you more chances to have multiple keywords stuffed in it. But I think that Google & co know better when it comes to a topic page - especially with the 'next' and 'previous' (prev?) meta keywords in it to indicate that it's a multi-page topic.
Which I just realized is NOT in Wedge..?! I thought I'd implemented that long ago... :-/
Quote from Arantor on August 20th, 2012, 05:25 AM
2) If it's not made a plugin, it could have permissions attached, e.g. default to be not visible to guests.
But guests are also entitled to viewing printpage if they're not bots...

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #3, on August 20th, 2012, 02:45 PM »
Quote
But I think that Google & co know better when it comes to a topic page - especially with the 'next' and 'previous' (prev?) meta keywords in it to indicate that it's a multi-page topic.
SMF has it, however it uses it to point to previous/next topic, not pages within a multi-page topic (and I can't remember if that's the correct use or not actually)
Quote
But guests are also entitled to viewing printpage if they're not bots...
Yes, currently. Whether that remains the case remains to be seen.
Quote
OTOH, one of the good points of printpage is that it gets you more chances to have multiple keywords stuffed in it.
Except that it isn't. It's been marked as nofollow for some time, even in SMF, which means search engines are not supposed to consider it for ranking purposes - but they will still frequently index it anyway.

Also note that there are cases where you can screw things up because of the way print page works. For example, try to get the print page of the Aeva topic on SMF, it's likely going to fail hard when it runs out of memory.

The main display staggers it - it pulls one post, processes it, displays it. Print page gets *everything* in one go and then hands it all to the template. For larger topics, doubly so on low-memory configurations, it's going to go splat.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #5, on August 20th, 2012, 03:01 PM »
There's quite a bit more involved than simply using a different stylesheet.

Print page versions have the entire thread on them, not paginated. There are also several changes to the way bbcode is handled, certain tags get disabled, certain other tags have their behaviour modified to suit printing, for example the color bbc is silently disabled, links are changed so that the URL is present.

None of this stuff can be done in CSS.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469
Re: Print Page
« Reply #6, on August 20th, 2012, 03:02 PM »
Harsh. Good luck then.

Although quite a few of those can be fixed with CSS. Color bbc for example could pretty easily be disabled with a !important somewhere in there, and URLs can be appended with pure CSS. The pagination is probably the biggest issue.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #7, on August 20th, 2012, 03:07 PM »
This is partly why I want to make it a plugin because I'd actually remove all the extra crap from the parser which would allow some sanity.

Let me explain my beef with this. parse_bbc accepts 4 parameters: the message to parse, whether smileys are enabled, a cache id, and a list of specific tags to parse. (This last one is primarily used for signatures, where you only allow certain bbc in signatures.)

Seems logical, right? Yeah... I thought that, until I realised that the 'are smileys allowed' parameter isn't really a boolean. It has three valid values - true, false, and 'print'. As you can imagine that's not the way to go about things.

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469
Re: Print Page
« Reply #8, on August 20th, 2012, 03:46 PM »
Sounds like an idea.

I'm currently bedridden, but I'm probably going to look into the CSS print page way later if you do make it so it's a plugin. Can't hurt to have every way tested, eh? Seems to me to be a plugin even I could do. (Adding a css file shouldn't be too hard, or?)

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #9, on August 20th, 2012, 04:16 PM »
It's a bit technical given how the printpage stuff works - it's actually embedded directly into the page, not even as a CSS file! (If/when I make it a plugin, I'll rewrite it to use a CSS file anyway)

I still think you're missing the point with chasing the printable CSS version, though. While you could certainly fix a number of the aspects of layout with a printable stylesheet (most notably, hiding the sidebar, de-floating anything else, hiding most of the user side panel, the options and menus, quick reply), you still won't have the ability to have the entire thread in one place, something not permitted in the main code (it used to be an option but IIRC I removed it), plus links still won't be printed, just their link text.

I think at best you'll get something that looks respectable, but will still be a poor imitation of what is really needed.



The big question: do we need it in the core? My gut feeling is actually no.

spoogs

  • Posts: 417
Re: Print Page
« Reply #10, on August 20th, 2012, 05:51 PM »
I say no as well, plugin with perms should be just fine. In SMF I use your print page permission mod to remove guests permission to view it, but for no special reason. I would bet that not too many are concerned whether it is core or not and probably wouldn't miss is it were removed.
Stick a fork in it SMF

godboko71

  • Fence accomplished!
  • Hello
  • Posts: 361
Re: Print Page
« Reply #11, on August 20th, 2012, 10:49 PM »
I have never once printed a thread in 15ish years using forums. How lame am I?
Thank you,
Boko

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #12, on August 20th, 2012, 10:55 PM »
I've never used print-page to print anything, I have used it a few times to save archive copies of a thread for surreptitiously sending to people.

MultiformeIngegno

  • Posts: 1,337
Re: Print Page
« Reply #13, on August 20th, 2012, 11:29 PM »
I vote for making it plugin and have a css print page in core (also if it doesn't handle all the things that print page non-css does)..

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Print Page
« Reply #14, on August 20th, 2012, 11:33 PM »
I wouldn't bother with the CSS print page in core to be honest. It's just one more thing to bug test on.