fazlionline Posted December 3, 2009 Report Share Posted December 3, 2009 In many websites, if you brow a topic or article, you will see three options, Print ? PDF ?Email. Print will print the article, PDF will save it in PDF format and Email will send it to your friend. See example Can anyone tell me how I can add this effect to my website? I have designed my website manually (I mean I have not used Joomla or other CMS software) Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 3, 2009 Report Share Posted December 3, 2009 Print is done using a javascript based window.print() command. For example: http://www.tizag.com/javascriptT/javascriptprint.php PDF is simply a link to a PDF file that the website owner has created. Email usually opens the visitors email program and adds a link to the article in the body of the message. Quote Link to comment Share on other sites More sharing options...
BeeDev Posted December 4, 2009 Report Share Posted December 4, 2009 The example link is a website made with Joomla, an open source php CMS. It creates the PDF's for you so you don't really need to do anything except write the article and save it. Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted December 4, 2009 Report Share Posted December 4, 2009 Or try this: http://www.trap17.com/forums/Print-Pdf-File-Php-t69564.html Quote Link to comment Share on other sites More sharing options...
fazlionline Posted December 12, 2009 Author Report Share Posted December 12, 2009 Print is done using a javascript based window.print() command. For example: http://www.tizag.com/javascriptT/javascriptprint.php. Thanks so I have to put this script on each article. Will anyone tell me to do some setting on my web once, and this print option appears on each article. I mean I should not go to each article and include this print option there. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 12, 2009 Report Share Posted December 12, 2009 Assuming you have designed your site manually, like you stated in your original post, no, there won't be a way to change one setting and have this appear on each article. If your site is created manually, you'll need to add the code manually. You could use something like a PHP include -- that way in the future you could edit one file and have the changes applied to all the files. Even if you did that though, you'd need to edit each file to add the include. Quote Link to comment Share on other sites More sharing options...
fazlionline Posted December 12, 2009 Author Report Share Posted December 12, 2009 Thanks falconcreative and thanks to all I got this, but if someone has another easier idea, just post it Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.