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

kiralyj’s picture

Assigned: kiralyj » Unassigned
manfer’s picture

Status: Active » Closed (duplicate)

Duplicate of http://drupal.org/node/1659716

Already solved and commited to development versions.

kiralyj’s picture

Yes, 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

--- shadowbox.module
+++ shadowbox.module
@@ -45,7 +45,8 @@
       ),
       array(
         'type' => 'inline',
-        'scope' => 'footer',
+        'scope' => 'header',
+        'group' => JS_THEME,
         'data' => '
           Shadowbox.path = "' . base_path() . $shadowbox_location . '/";
              Shadowbox.init(Drupal.settings.shadowbox);
kiralyj’s picture

Status: Closed (duplicate) » Active

Ok, 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?

manfer’s picture

Status: Active » Fixed

Shadowbox 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.

Status: Fixed » Closed (fixed)

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

  • Commit 728e6ff on 7.x-4.x, 8.x-1.x authored by manfer:
    Issue #1682058 by manfer: added print styles for shadowbox