Keyword

Would like to add print icon to lightbox to print coupons, need a lil assistance

  • haynest
  • haynest's Avatar Topic Author
  • Offline
  • New Member
More
15 years 8 months ago #25552 by haynest
Hello all,

I have just a few questions in order to add a print button to the lightbox that pops up after you click the image. This may be something that I would have to pay someone for. But I would like to learn how to do it even if I have to pay. I am not too bad of a programmer, I just need some insight.

So here's what I think needs to be done.

sig.css - add css for the new button
#lbPrintLink {display:block;float:right;width:66px;height:22px;background:transparent url(printabel.gif) no-repeat center;margin:5px 0;}

Some template file - I need to add this code to a template file I am unable to find through firebug in firefox.
<a id="lbPrintLink" href="#"/>

I think after this I will have to go elsewhere in order to figure out the code to just print the image within the lightbox, but thats after I figure out this one.

Please let me know if I am heading in the right direction! I would appreciate ANY input!

Please Log in or Create an account to join the conversation.

  • haynest
  • haynest's Avatar Topic Author
  • Offline
  • New Member
More
15 years 8 months ago #25553 by haynest
After working on this for just about the entire day. I have found out many things. The following line of code is needed to be put inside of slimbox.js in order to add the extra button I am trying to achieve.

new Element('a').setProperties({id: 'lbPrintLink', href: '#'}).injectInside(this.bottom).onclick = this.overlay.onclick = this.close.bind(this);

This is the first step in the process. Now that I have the button figured out. Can someone help me to edit this code in order to allow the button I have added to print the image? I have tried to tweak it a few times and looked on google and found sites on how to add print functionality to a button through sites like www.javascriptkit.com/howto/newtech2.shtml

However, I can't seem to tweak my code just right. The print fuctionality is broken in small ways that I can't seem to figure out. 

Thanks again!

Please Log in or Create an account to join the conversation.

  • haynest
  • haynest's Avatar Topic Author
  • Offline
  • New Member
More
15 years 8 months ago #25554 by haynest
BTW, <a href="http://http://www.findlayeatsanddrinks.com/index.php?option=com_content&view=article&id=54&Itemid=60">click here to see my website.

Do you guys think I'm on the right trail? Please give me any feedback, I do understand that you are busy, and this is a free plugin. So I will be patient.

Thanks for any help in advance!

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #25555 by paul190
because of this forum and this post, i had make my problem away... juhu

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum