I just upgraded to 4.5 version of this module and now I see the following bug:
The printer-friendly page link appears twice. One time in <div class="help"> div and one time in <div class="links"> div.

On the Settings page, in "Printer-friendly page link:" section there are only "Links area" selected. (and not "Content corner")
If I switch off "Links area" then no more printer-friendly links appears.

Tested on clean drupal-5.16 install with garland theme.

Comments

hapydoyzer’s picture

StatusFileSize
new1.51 KB

Now I see that it is because print_help function.
It displays additional Printer-friendly link if any of "Links area" or "Content corner" are selected. But why this is needed?

Anyway, here are trivial path that adds ability to switch on/off this link.

hapydoyzer’s picture

Status: Active » Needs review
jcnventura’s picture

Status: Needs review » Postponed (maintainer needs more info)

The help area is not intended to show up for normal nodes... If there's anything to fix is why it is activating on normal nodes. I will try to take a look at it, and see if I can fix it.

João

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Active

This was caused by a lack of proper testing of the backport of the fix for #404052: Links on node signup list pages.. The node/% path is Drupal 6 specific and nobody had noticed it in the D5 dev since it was committed in March 27.

The proper fix is to replace the

($path !== 'node/%')

with

(preg_match('!^node/\d+$!', $path) == 0)

I will try to commit this to CVS soon..

João

hapydoyzer’s picture

Status: Active » Postponed (maintainer needs more info)

The error in this line of code:
if (($path !== 'node/%').....
Or maybe this is something I don`t know about strings comparsion in PHP?

hapydoyzer’s picture

Status: Postponed (maintainer needs more info) » Active

Sorry, you answered too rapidly:)

toch’s picture

hello there,

i had the exact same problem and could solve it by replacing ($path !== 'node/%') in print.module. thanks for the quick responses :o)

toch

deviantintegral’s picture

Status: Active » Needs review
StatusFileSize
new618 bytes

Here is a patch of the suggestion in #4. Works as expected for me.

jcnventura’s picture

Status: Needs review » Fixed

The fix has just been committed to CVS, unfortunately, it will be a few hours before that is generated..

João

Uppa’s picture

I have made the changes suggested but the link "send by e-mail" still appears both above and below, so I've had to turn it off, which bothers me a bit.
Thanks
Claudia

WeRockYourWeb.com’s picture

Claudia,

It works, but the patch may not have committed to the -dev version yet. Simply open up your print.module file, and, looking at the patch file from post #8, replace the line beginning with "-" with the line beginning with "+".

Cheers,
Alex

jcnventura’s picture

Actually, it's because the changes to print.module only fix the problem of the 'Printer-friendly version'. You need to make the exact same changes to print_mail.module and print_pdf.module to get rid of all of them..

Of course, the simplest way is to just download the 5.x-4.x-dev until I release version 5.x-4.6.

João

ggoogi’s picture

fixed? how is it fixed?

deviantintegral’s picture

The issue has been fixed in CVS; that's how issue statuses work. See http://drupal.org/node/156119.

As suggested in #12, if you need this fixed on your own site right away either apply the fixes manually or download the -dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ggoogi’s picture

It's never 'fixed' in my case, and I ended up disabling the module. Here's what I want to say: When you don't know what you're doing, please, and please, do find something else to do instead of wasting someone else's life.

hapydoyzer’s picture

Issue summary: View changes