Hi,
I have installed the printer friendly module on my Drupal 5.7 website as the directions stated.
I see the module showing up in my control panel, i have enabled it, messed around with the configure options for the module, made sure SHOW ON ALL PAGES was selected. My problem is, the link is not showing up on ANY of the pages of the website, however on the CONTROL PANEL, the links have appeared on various sections of my admin control panel.

Any ideas?

Thanks in advanced!

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,

There are actually two visibility settings.. One for the content pages, and one for the Drupal-generated pages (such as the control panel). As the Administrator, if correctly configured you ought to be able to see the links. See the FAQ #1 for some troubleshooting tips (http://drupal.org/node/190173).

João

krusha’s picture

Thanks Joao for the reply,
I have checked over the settings listed in the FAQ, and all seem to be checked off as needed, still no links
Under content type, all the different types already have "Show printer friendly link" checked off

Anything else i can try?

jcnventura’s picture

Hi,

Does 'checked off' mean enabled or disabled??

João

krusha’s picture

Sorry,
Meaning there is a check in the box, so it must be enabled

jcnventura’s picture

Can you do:

print_r(variable_get('print_settings',''));

Short of giving me admin access to your site, I am running out of ideas.

João

krusha’s picture

where should i try that, paste it in one of my pages and see result?

Thanks again Joao i appreciate it

datawench’s picture

i'm having a similar problem. i've enabled the link, pretty much with default setting, and the link doesn't show up in the template output. i would expect that it would appended to the "comment" and "email" links that show up when this is in the template:

<?php 
   if ($links): 
   print $links;
   endif;
?>

i'll go ahead and use the direct method

print_insert_link()

but something seems a bit off.

jcnventura’s picture

@krusha: yes that in a page with the PHP filter on should show the module settings..

@datawench: the link should be there indeed. You may be having the same problem.

datawench’s picture

if i enable print-friendly links for the admin pages, do a source view and compare it to the garland template (which is what i'm using for admin), i see that the link is actually generated here:

<?php if ($help): print $help; endif; ?>

which tells me that the link is not being appended to the "links" variable but to a "help" variable.

krusha’s picture

Array ( [show_link] => 1 [node_link_visibility] => 0 [node_link_pages] => [link_class] => print-page [sys_link_visibility] => 0 [sys_link_pages] => [book_link] => 1 [logo_url] => [css] => [urls] => 1 [comments] => 0 [new_window] => 1 [newwindow] => 1 [sendtoprinter] => 0 )

Thats what it spit out

Thanks again!

krusha’s picture

[node_link_visibility] => 0
throws a red flag in my mind.. I have all the options enabled in the control panel, what the heck am i missing? can i manual edit that and make it a 1 to turn it on? where is that file.

Thanks again

jcnventura’s picture

@datawench: Yes, there's no links area for the admin pages, so it has to show up in the help area..

@krusha: the 0 there only means that the first option is selected (Show on every page except the listed pages.), if you select the second option, it turns into a 1. Your settings seem to be OK. I have replicated these settings on my site and the link comes out OK.

I can only assume that something weird is going on, but I'm out of ideas.

João

krusha’s picture

Joao,
Thanks again for the advice, although I am still unsuccessful.
Is there a module that enables links on pages that maybe is turned off as the template we use was desgined by a 3rd party?
Is there a code i can manually paste into the pages i want to have a "print this" link on? if so would you mind posting it?

ive tried

print_insert_link()

with no luck

jcnventura’s picture

The link would be added by that call, if you add a print or echo for PHP to do something with it.

echo print_insert_link()

This should add a link to the print version of the current page. At least the <span class="print"> string should appear in the page source.

Can you also try using the Garland theme instead of your 3rd party template and see if the links show up in there?

João

krusha’s picture

Joao,
I cannot change the theme as it is a company website
I am downloading the theme from /sites/default/theme (as that is where its located)
is there a file i can look at that should ahve some type of code in it to allow printer friendly pages to inject the necessary link, maybe this line was deleted for some reason or another? is there a way to manually put this line in one of the theme files to have the link at the bottom of the page
lets say we look at page.tpl.php

thanks again!!

jcnventura’s picture

Well, if you know enough PHP, I would start by putting some var_dump() calls in print_link to at least know if it is being called..
If it is, do a var_dump() also before the return and see if it's being correctly produced (should be an array with contents defined before).

If this is coming out OK, I would try to find in your theme where it is getting the link contents and see what is being received...

If you don't know enough PHP for all of that, you can always disable the use of this module..

João

krusha’s picture

I do not know PHP very well.. unfortunately

If i add

echo print_insert_link() 

to the bottom of node-news_item.tpl, on the news pages i will see the printer friendly link where i have inserted the PHP (next to a BACK TO TOP LINK i saw in the source and i can visably see on the website). The link works, a printer friendly page pops up when clicked.. however, on the front page, there is what i would say is a highlight of news we hav eon the site, and by adding the PHP to that file, after every preview of each article is an ugly printer friendly link, so i need to figure out how to differenciate between the pages with news, and the front page..

does that many any sense?

jcnventura’s picture

It makes sense, yes.. You need to test for $teaser..

Something like:

if ($teaser) {
  echo print_insert_link();
}

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing the issue, as it was not possible to discover the source of the problem.

João

websage_gr’s picture

Well I know this thread is old, but for anyone who might get stuck with the same problem. Check the print module's INSTALL.txt as you need a PDF conversion tool installed on your server. Once the tool is there and in the right path the link to convert pdf should show up.

mistermendez’s picture

I solved this by updating the permissions for "anonymous user" for the following items:

- Printer-friendly pages
- PDF version
- Send by email

eqbal0786’s picture

Issue summary: View changes