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 doesn't work on drafts  (Read 5739 times)

0 Members and 1 Guest are viewing this topic.

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Print doesn't work on drafts
« on: 24 May 2007, 21:33 »
Hello

I just noticed that I can't use the print function on drafts (after clicking on preview using Kill Preview 2). The page gets reloaded and the print suffix is attached to the url, bt other than that nothing happens.

WP 2.1.3
WP Print 2.1

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: Print doesn't work on drafts
« Reply #1 on: 24 May 2007, 22:31 »
Uh, I don't know of any plugins that work on  draft posts.
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Print doesn't work on drafts
« Reply #2 on: 25 May 2007, 05:49 »
of course it will not work because the post is not yet published.

++ 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 Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Print doesn't work on drafts
« Reply #3 on: 25 May 2007, 14:25 »
ok, any way I can hide the print icon + text on drafts then?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Print doesn't work on drafts
« Reply #4 on: 25 May 2007, 17:30 »
why do u want to do that? no one can see the draft except the admins.

++ 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 Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Print doesn't work on drafts
« Reply #5 on: 25 May 2007, 17:37 »
I have a site with many admins and authors, and when they click Print and nothing happens they send a bug report to me...

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: Print doesn't work on drafts
« Reply #6 on: 25 May 2007, 18:46 »
Use this code (not tested):
Code: [Select]
if('draft' != $post->post_status) {
if(function_exists('print_link')) {
print_link();
}
}

++ 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 Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: Print doesn't work on drafts
« Reply #7 on: 26 May 2007, 00:31 »
I didn't know there was an drive check of sorts. :)
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers

Offline Manne

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Print doesn't work on drafts
« Reply #8 on: 27 May 2007, 10:22 »
Many thanks, worked as expected!

Offline Ttech

  • Official Support
  • Global Moderator
  • *****
  • Posts: 4,296
    • View Profile
Re: Print doesn't work on drafts
« Reply #9 on: 27 May 2007, 23:52 »
Glad it works...
Learning and Helping one day at a time.




DevNode.org Operator - The IRC network for Programers