Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I use on Drupal7 the following modules:
Printer, email and PDF versions (7.x-1.1)
Shadowbox 7.x-3.0-beta8
I downloaded the shadowbox-3.0.3 version.
In the source of the printed page is this:
</div>
</div> <script type="text/javascript">
<!--//--><![CDATA[//><!--
Shadowbox.path = "/sites/all/libraries/shadowbox/";
Shadowbox.init(Drupal.settings.shadowbox);
//--><!]]>
</script>
</body>
</html>
On the printed paper "Bet¤lt¤s" appears. I found this issue ( http://drupal.org/node/1659716 ), but my shadowbox is working.
Sorry for my english!
Comments
Comment #1
kiralyj CreditAttribution: kiralyj commentedComment #2
manfer CreditAttribution: manfer commentedDuplicate of http://drupal.org/node/1659716
Already solved and commited to development versions.
Comment #3
kiralyj CreditAttribution: kiralyj commentedYes, I founded, but didn't work or I missed something.
I run the patch command:
#patch shadowbox.js shadowbox-js_optimization_problem-1659716-2.patch
this is the result:
patching file shadowbox.js
Hunk #1 FAILED at 45.
1 out of 1 hunk FAILED -- saving rejects to file shadowbox.js.rej
# cat shadowbox.js.rej
Comment #4
kiralyj CreditAttribution: kiralyj commentedOk, I run the patch on sites/all/modules/shadowbox.module file.
# patch shadowbox.module shadowbox-js_optimization_problem-1659716-2.patch
Now the script is in the head, but this is not my problem. When I click on "Print-friendly page" the Shadowbox put the "Bet¤lt¤s" text in the end of printed paper.
Is this a Shadowbox or Printer, email and PDF module bug?
Comment #5
manfer CreditAttribution: manfer commentedShadowbox doesn't print anything at all when is closed and when it is opened it only prints its content though it had not styling from the print version and as an example on the case of an image, the image is shown over other content and the title is shown at the bottom of the page.
The word "loading" is not printed by shadowbox with its default CSS.
You must have added some CSS for the print version, or that print friendly module I don't know, that made that text visible on the printed version.
I have anyway added now some print styles so as before when shadowbox is closed an you print the page, no shadowbox is printed on paper and if you print with shadowbox opened the content of shadowbox will be printed at the end of the page (and of course no loading text will appear). Added on 7.x-4.x version.