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: qtranslate not working with wp-print, please help!  (Read 1278 times)

0 Members and 1 Guest are viewing this topic.

Offline seville

  • Jr. Member
  • **
  • Posts: 32
    • View Profile
qtranslate not working with wp-print, please help!
« on: 26 February 2009, 18:09 »
WordPress Version 2.7.1
http://kuda-aerospoiler.com/en/daf-xf-spezial-aeropaketdaf-xf-air-management-kit/721/
wp-print 2.40
php 5
qtranslate

Hey Lester,

I use qtranslate http://www.qianqin.de/qtranslate to have a multilanguage blog, when I use wp-print it doesn't show any content on the print page when I hit the print button. It only shows the title, "Posted by....", date, URL and that's it, but no content itself. :(

Do you know what could be the reason and is there any way to fix that? It would be really great to make this work.

The already contact the author of the plugin and in his FAQ I found the following:

http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=294

maybe that might help to solve the problem.

Thanks a lot, I really appreciate your help!

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: qtranslate not working with wp-print, please help!
« Reply #1 on: 27 February 2009, 05:59 »
QTranslate is not compatible with WP-Print or WP-Email. If I have the time then I add it in.

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

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: custom theme
Re: qtranslate not working with wp-print, please help!
« Reply #2 on: 14 July 2010, 23:15 »
Hi, I am using wp-print with qtranslate and this is the code changes I made to wp-print.php - See where I put the qtrans_convertURL in the script below:

### Function: Print htaccess ReWrite Rules
add_filter('generate_rewrite_rules', 'print_rewrite');
function print_rewrite($wp_rewrite) {
   // Print Rules For Posts
   $r_rule = '';
   $r_link = '';
   $print_link = qtrans_convertURL(get_permalink());


### Function: Display Print Link
function print_link($print_post_text = '', $print_page_text = '', $echo = true) {
   global $id;
   if (function_exists('polyglot_get_lang')){
       global $polyglot_settings;
       $polyglot_append = $polyglot_settings['uri_helpers']['lang_view'].'/'.polyglot_get_lang().'/';
   }
   $output = '';
   $using_permalink = get_option('permalink_structure');
   $print_options = get_option('print_options');
   $print_style = intval($print_options['print_style']);
   if(empty($print_post_text)) {
      $print_text = stripslashes($print_options['post_text']);
   } else {
      $print_text  = $print_post_text;
   }
   $print_icon = plugins_url('wp-print/images/'.$print_options['print_icon']);
   $print_link = qtrans_convertURL(get_permalink());
   $print_html = stripslashes($print_options['print_html']);
   // Fix For Static Page
   if(get_option('show_on_front') == 'page' && is_page()) {   
      if(intval(get_option('page_on_front')) > 0) {
         $print_link = qtrans_convertURL(_get_page_link());
      }
   }

Hope this helps.  I've attached my wp-print.php file for you if you prefer.