• Resolved sergevg

    (@sergevg)


    Hi,
    I use this plugin on an e-learning site.
    I have Buddypress installed and Courseware most recent versions.
    I want my customers to be able to print course lectures, nothing els on the site.

    When installing PDF24 and activating the plugin for articles, it places a link at the right place and prints the right information. This link then is also on the assignment pages and on other places. Si the link mode seems a good solution.

    When installing the <?php pdf24Plugin_link(); ?> code into the lecture template just before the display of the content. It is as if the global parameter pdf24Plugin is not found. Nothing shows up. When I place tekst on this place it shows up as it should.

    Anyone any suggestions?

    http://wordpress.org/extend/plugins/pdf24-post-to-pdf/

Viewing 13 replies - 1 through 13 (of 13 total)
  • ldetomasi

    (@ldetomasi)

    The downloaded PDF is 0 B.
    Look at http://isotypelab.org/linux-media-experience
    Thank you

    Plugin Author pdf24

    (@pdf24)

    @sergevg
    Have you activated the plugin in WordPress? I think this could be the only reason for the global variable. It seems that the plugin file isn’t loaded before you make a call to the pdf24Plugin_link() method.

    @ldetomasi
    We switched back to the older version of the converter and now a PDF of your content is created fine. We will check the new version of the converter.

    Thread Starter sergevg

    (@sergevg)

    The plugin is activated, I think.

    This is the dump of the active-plugins parameter in the WP_options table.

    If I put text just before the link, the text shows at the right place, the link is not visible, also not visible in sourcecode of the page.

    **************The script-code****************
    <div id=”lecture-content” class=”courseware-content-wrapper”>
    <h4 id=”lecture-title” class=”courseware-title”>
    <?php echo get_the_title( $lecture->ID ); ?>
    </h4>
    <div id=”lecture-body” class=”courseware-content”>
    <?php pdf24Plugin_link(‘MY_LINK_TEXT’); ?>
    Just text to show where the plugin is
    <?php the_content(); ?>
    </div>
    </div>
    ************the result code by the browser**************
    <div id=”lecture-content” class=”courseware-content-wrapper”>
    <h4 id=”lecture-title” class=”courseware-title”>
    Lecture – title </h4>
    <div id=”lecture-body” class=”courseware-content”>
    Just text to show where the plugin is
    <p>this is the content text of the lecture…. </p>

    </div>
    </div>

    ***********the content of the WP_options table *** Active-Plugin field********
    a:22:{i:0;s:45:”advanced-code-editor/advanced-code-editor.php”;i:1;s:26:”autochimp/88-autochimp.php”;i:2;s:19:”bp-album/loader.php”;i:3;s:30:”bp-group-control/bpgc-core.php”;i:4;s:41:”bp-group-frontpage/bp-group-frontpage.php”;i:5;s:43:”bp-group-management/bp-group-management.php”;i:6;s:27:”bp-group-reviews/loader.php”;i:7;s:36:”buddypress-courseware/courseware.php”;i:8;s:38:”buddypress-group-wiki/bp-groupwiki.php”;i:9;s:24:”buddypress/bp-loader.php”;i:10;s:53:”codestyling-localization/codestyling-localization.php”;i:11;s:36:”contact-form-7/wp-contact-form-7.php”;i:12;s:21:”dynapoll/dynapoll.php”;i:13;s:31:”famous-quotes/famous-quotes.php”;i:14;s:44:”inspirational-quotes/inspirationalquotes.php”;i:15;s:28:”pdf24-posts-to-pdf/pdf24.php”;i:16;s:39:”quotes-collection/quotes-collection.php”;i:17;s:41:”simple-daily-quotes/SimpleDailyQuotes.php”;i:18;s:47:”u-buddypress-forum-editor/u-bp-forum-editor.php”;i:19;s:25:”ultimate-tinymce/main.php”;i:20;s:24:”wordpress-seo/wp-seo.php”;i:21;s:25:”wpquotidian/quotidian.php”;}

    Plugin Author pdf24

    (@pdf24)

    Have you activated the Link feature of the plugin? Please check the checkbox in PDF24 plugin settings area in your wordpress admin area.

    The PDF24 plugin is composed of several features. One of the feature is the link one. Each feature can be seperately enabled or disabled.

    Please check whether the link feature is enabled.

    Please check also if you have inserted the link code into the right template or at the right place. It can be a little confusing…

    Thread Starter sergevg

    (@sergevg)

    The link feature is activated in the plugin.

    When I activate the article plugin, is shows at the right place, when I activate the link plugin, it doesn’t show.

    I have a testsite. I changed the password, to give you access.

    http://www.coachingweb.be
    User : sergevg
    login : pdf24
    http://www.coachingweb.be/blog/groups/test/courseware/lecture/ggtr

    I want to make only the lectures in courseware printable.
    It works fine with the article plugin, but doen’t work with the linkplugin.

    Now, both article and link plugin are active.

    The link code is where it should be… I think

    The template file is located here
    buddypress-courseware/groups/templates/single_lecture.php

    Thanks for responding to my questions.

    Plugin Author pdf24

    (@pdf24)

    I give you feedback if I have tested it….

    Thread Starter sergevg

    (@sergevg)

    Many thanks 🙂

    Plugin Author pdf24

    (@pdf24)

    I could not find the file buddypress-courseware/groups/templates/single_lecture.php in wordpress.

    Can this file be edited in wordpress admin area?

    If the pdf24Plugin is not found then it seems that the pdf24 plugin is not loaded. Do the bodypress templates loads plugins?

    Thread Starter sergevg

    (@sergevg)

    I installed a fresh installation with only the necessary plugins.

    http://www.coachingweb.be/blog/
    login: sergevg
    password: pdf24

    http://www.coachingweb.be/blog/groups/pdf24-testgroup/courseware/lecture/testlecture-for-the-pdf24-link-plugin

    this is the link to the place where the link-plugin should show up, when activating the article plugin, this one works, the link-plugin doesn’t.

    Could be indeed that buddypress doesn’t load the link-plugin, but it does load the article plugin.

    On this page, there is also a link to the editor, you can edit the templates directly in wordpress.

    I hope you can help me, thanks

    Plugin Author pdf24

    (@pdf24)

    Ok, threre are some problems.

    The link is not printed because there are no posts. We are also not in the loop. The plugin calls the methods in_the_loop() and also the method have_posts() and both returns false. The plugin thinks that there are no posts. The link could not collect any data and is therefore not shown.

    Do you know why this is the case? the method the_content produces data and I think we must have a post but this is not indicated by have_posts().

    What you can also do is to use a special pdf24 plugin feature to mark the content which is to add to the pdf file. I have inserted the code into the template as follows:

    <?php pdf24Plugin_begin(); ?>
    <?php the_content(); ?>
    <?php pdf24Plugin_end(); ?>
    <?php pdf24Plugin_link(); ?>

    This marks the content, which is all the content between the methods pdf24Plugin_begin() and pdf24Plugin_end(). Then a link is printed with the call to pdf24Plugin_link() which now uses the content which was marked above.

    Using this feature currently has the condition that the PDF link or other PDF bars can only be outputted after the pdf24Plugin_end() call because the pdf24 plugin uses the prior marked content to form the link.

    Thread Starter sergevg

    (@sergevg)

    Thanks for this solution.

    Maybe a good idea to mention this method in the plugin options page.

    This seems to leave me with the problem, the link can only be at te bottom of the content, but I can live with that.

    Many thanks and keep up the great work.

    Plugin Author pdf24

    (@pdf24)

    We work on the feature that the link can be placed everywhere. Will be part of one of the next versions.

    Plugin Author pdf24

    (@pdf24)

    The feature that links can be placed everywhere is part of the current version. You can use the method pdf24plugin_form(ID) and pdf24plugin_formSubmit(ID) to get the desired functionality. More information is given in the plugin FAQ and installation section.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: PDF24 Article To PDF] doesn't work’ is closed to new replies.