Plugin Directory

PDF & Print Button Joliprint

The Joliprint button prints your posts into sharp looking PDF.

How Joliprint handles my PDF files ?

Joliprint is keeping your PDF files on the Joliprint servers for about 12 hours. The Joliprint plugin will update the PDF cache when change your options in the PDF Layout section of the Joliprint settings or when you click on the Click here to reset the cache now link in the Technical Options section. When this link is clicked your cache files are erased from the server at the moment you see the message PDF cache erased.

I want to place the Joliprint button myself, where do I need to paste the Joliprint PHP code in my WordPress templates ?

  1. Check the Custom position radio button in the Button section of the Joliprint Options panel.
  2. Copy the following PHP code <?php if ( function_exists( 'joliprint_show_the_button' ) ) echo joliprint_show_the_button(); ?>
  3. This PHP code must be pasted in the WordPress Loop of your templates files.
  4. Open and modify your templates files :
  • index.php if you want to place a button on each entry on your homepage,
  • single.php if you want to place a button on your posts details,
  • page.php if you want to display a button on your WordPress pages.

Example

If you want to place the Joliprint button on your posts details in the entry-meta block right after the posted on infos (default Twenty Ten WP template)

  1. Open the single.php page of your Twenty Ten theme
  2. Locate the the WordPress Loop (the loop starts here <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>)
  3. Locate the entry-meta block <div class="entry-meta"><?php twentyten_posted_on(); ?></div><!-- .entry-meta -->
  4. Modify the entry-meta block as following <div class="entry-meta"><?php twentyten_posted_on(); ?><?php if ( function_exists( 'joliprint_show_the_button' ) ) echo joliprint_show_the_button(); ?></div><!-- .entry-meta -->
  5. Save your template file

** Important ** In automatic mode, the Joliprint plugin will only show the Joliprint button on post and pages. In manual mode, the plugin send to Joliprint servers the permalink of the page your user wants to print. This works pretty well for posts and pages objects but cannot works correctly with customs objects (you may find some of these in some 3rd party plugins). In such cases, when the plugin detects that it is not on a post or a page it will try to send the current URL of the server. Sometimes this method will not work either and you will need to specify yourself the URL the plugin need to send to Joliprint by passing the real URL to the plugin thanks to the joliprint_show_the_button($THE_REAL_URL) where $THE_REAL_URL is the URL of the page you want to print out.

Requires: 2.7.0 or higher
Compatible up to: 3.3.2
Last Updated: 2011-12-22
Downloads: 23,243

Average Rating

4 stars
(28 ratings)

Support

0 of 1 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
1 person says it's broken.

100,1,1
100,2,2 100,3,3
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,1,1
100,2,2
50,2,1
100,3,3
100,1,1
0,1,0