Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Add print and save button in available lightbox

  1. #1
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Lightbulb Add print and save button in available lightbox

    Hello,
    I would to add print and save button in my images. So, user of the system can print and save the images. I have try copy code from sandbox.tse but nothing happen to my images.
    Anyone please help me what actually the problem?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you using Lightbox JS v2.51? Because as far as I can tell, the print button (of sandbox.tse) is only for that (or earlier - not recommended) version (current version is v2.7.1 - no print feature for it though as far as I know). As for a save option, one should be able to right click and 'save as' in the normal manner as long as one is not also using the group (next previous buttons) option of lightbox.

    The entire archive of LB 2.51 setup to print is available here:

    http://sandbox.tse-webdesign.be/ligh...tbox-print.zip

    So, you could just use it.

    If you want more help. please post a link to the problematic page on your site so we can see it.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    amy_yushi (11-05-2014)

  4. #3
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Talking Lightbox -print images

    Hi John, thanks for reply
    I have download and use print.zip. Its work well. But when I copy lightbox.css and lightbox.js in my page nothing happen. It is because of the lightbox version? My situation: user have requested to print and save the company namecard template. Now, we already have name card template which is display in lightbox and I have to add print and save button to allow customer get the namecard easily. This is code for my page. The problems is here or in another files?

    Thanks for your help again.
    Attached Files Attached Files

  5. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    "But when I copy lightbox.css and lightbox.js in my page nothing happen. " You cannot copy these in any page. Please explain what you are doing.

    In order to use the print version, you must use the javascript, styles, and other helper files that come with that version.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. The Following User Says Thank You to jscheuer1 For This Useful Post:

    amy_yushi (11-05-2014)

  7. #5
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Actually im trying to copy style and javascript from sandbox.tse and replace it with
    my current style and javascript. So, the thing does not work because of the different version right?
    So, what should i do to add print button in my site? and how to solve the lightbox version?
    Thanks again for your help and explanation John.I really appreaciate it

  8. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Use the print version. Then if you want to edit (customize) the styles to make them look closer to another version or to look like anything you want, you can edit them. But you cannot just drop in a different version of the styles or of the script. Well, you can in some cases, but if that makes it stop working you cannot. From what you're telling me that's what happens, so - obviously you cannot do that.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. The Following User Says Thank You to jscheuer1 For This Useful Post:

    amy_yushi (11-06-2014)

  10. #7
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    So, I must use the print version to make sure print function working instead of using my style right? Thanks John. I will try again

  11. #8
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    Hi John, I have another stupid question, how to know we use the print version?Because I have try to edit index.html include in sandbox.tse as I want (by include my own images) but I got database error.

    Thank You

  12. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you are having server side problems, that has little or nothing to do with the script. Server side issue can include but are not necessarily be limited to incorrect paths and/or syntax. Often the best practice is to create a working example without any server side code. Make sure everything is working. Then start to build from the specific to the template, checking each step along the way that no errors creep in.

    After all, in cases like these, server side code only writes client side code. Just make sure it's doing it right. As a troubleshooting tool you can use the 'view source' of the browser. If it doesn't look like the non-server side generated code generated example, then something is off on the server side.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  13. The Following User Says Thank You to jscheuer1 For This Useful Post:

    amy_yushi (11-07-2014)

  14. #10
    Join Date
    Nov 2014
    Posts
    6
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default

    I'm not sure either the problem comes from server side or lightbox version. Actually I am confusing whether the ways I'm installing lightbox version correct or not. Can you give some guideline and how can I know the server site have problem John?
    Thanks

Similar Threads

  1. Replies: 1
    Last Post: 01-13-2014, 03:37 PM
  2. Adding a "save as" button to Lightbox
    By simpleuser in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 09-07-2012, 07:04 AM
  3. Save Button
    By rhodarose in forum PHP
    Replies: 4
    Last Post: 05-09-2011, 04:05 AM
  4. Using Cross-browser print button to print a different page
    By egghead2000 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-11-2008, 04:40 AM
  5. Javascript to Trigger Print/Save Images
    By KraftyDood in forum JavaScript
    Replies: 3
    Last Post: 12-15-2006, 07:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •