All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Print icon and option only on post pages themselves - possible?  (Read 532 times)

0 Members and 1 Guest are viewing this topic.

Offline Excelsius

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Blend
I am not only new on this forum: I am also new to WordPress (but I have experience with CMS such as Article Manager by Interactive Tools, as well as Dreamweaver and RapidWeaver). I have installed WP on a website for the first time this week, and just started to use it. I am really impressed, I must say! Of course, it is different from CMS as I know it - but impressive.

I have the latest version of WP (2.9.1), in French, and I use the Blend theme. The URL of the blog is www.orbis.info. I am not reporting a bug here, just asking about a possibility. Of course, I have first explored the forum, but after going through dozens of posts, I have not managed to find the answer. Of course, if an answer is provided, I will gladly make a small donation to the developer.

WP-Print offers exactly a function that I need, in order to manage to print posts in a proper way, and not to waste paper. Plus it offers nice configuration options.

But when I activate it, it puts a print icon not only on individual post pages, such as
http://orbis.info/2010/01/un-livre-sur-nauru/
but also on the top of each summary in the list of posts as found on the welcome page or archive pages. For this reason, I have temporarily desactivated it. What I would like is to have the possibility to put the print button only in each individual post on its separate page, not in posts or summaries that show as lists.

I assume this is possible - and maybe this is a feature you are considering to implement anyway in a next release.

But if you could kindly provide a solution for now? should I change something in the code somewhere?

I thank you in advance!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Place it in single.php? You need to understand how WordPress works, readup http://codex.wordpress.org/Template_Hierarchy

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Excelsius

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Blend
Thank you very much. And first, congratulations for your new job, best wishes for success in your professional activities (I just rewad "All Good Things Must Come To An End"...).

When I had made my attempts, I had looked for single.php, suspecting this might be the trick. Unfortunately, Blend does not have a single.php! I was perplexed, until I realized it must be actually the same as thecontent.php, that comes with the following information at the top of the code::

"I use this a my basis for the content body in pages, post, archives, search results, everywhere basically. Saves me from having to make the same change several times when I need to update something"

So there seems to be no way to distinguish between single posts and other pages! Quite useful in most cases, but not in mine, unfortunately!

Probably it is possible to introduce something at another place in the code, but it might become a more complicated story. If you have any other advice for solving the problem, thank you for letting me know.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Thanks= )

Try this code:
Code: [Select]
<?php if(function_exists('wp_print') && is_single()) { print_link(); } ?>The is_single() will ensure that it will load the print link only on single posts.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline Excelsius

  • Newbie
  • *
  • Posts: 3
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: Blend
Wonderful! it works! Thank you so much for your help! I have immediately sent a small donation in order to thank you!

I really like your plugin. In so many blogs or Wordpress-based websites, printing is just awful. Thanks to your plugin, one is really able to print cleanly.

Highly recommended, and thank you for all the work you have obviously invested in maintaining and developing such tools! I hope that the community will be able to maintain them, or that other people will take over. I am not gifted enough to do it, but I do really appreciate the service provided by developers such as yourself: it makes my first steps with Wordpress even more pleasant and exciting!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Thank you for the very kind compliments =)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.