Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter tdxdave

    (@tdxdave)

    I will see if I can get any more idea of where its happening.

    Thread Starter tdxdave

    (@tdxdave)

    Wordpress Version 5.1
    H5PxAPIkatchu version was latest when I tested it a couple of weeks ago 0.3.1

    I checked turning off my theme and other plugins but this one seemed to be the one with the issue.

    Thread Starter tdxdave

    (@tdxdave)

    It worked! Thank you for this assistance.

    Thread Starter tdxdave

    (@tdxdave)

    Thanks I’ll try that. How would I figure that out, is it documented? There is a setting in the configs for flashvars, and my previous searches only showed adding the startparam there, but I’ll try this!

    Thread Starter tdxdave

    (@tdxdave)

    Yes the apache module is installed correctly. The curl commands show that it is responding to the start= query parameter when I request different start values for the video.

    The shortcode of the video in the test link

    is

    jwplayer config=”Medium” mediaid=”204″

    I created a Medium config that has “startparam=start” and uses a default size I want for my videos.

    Again. If the player is working as expected, when I try to seek to a new part of the video with pseudostreaming enabled, it should send a request to the server with start=XXXX for the number of seconds to seek, correct? If this is the case, that is not happening. If not, then perhaps I misunderstand how this works.

    Thanks again,
    Dave

    Thread Starter tdxdave

    (@tdxdave)

    Thanks for the quick response.

    I did try starttime but as the curl requests show “start” is the correct parameter that is accepted by the server.

    The question is not, why is the server not sending the adjusted data back to the player, but why is the player not sending the requests containing the startparam to the server. The access logs show no requests with starttime are ever received.

    Thread Starter tdxdave

    (@tdxdave)

    This is the basic code, put the tcpdf code somewhere. I think there is a TCPDF plugin that makes the library available.

    I added some settings into the quiz to give the certificate a title different than the name of the quiz. I hard coded a link to a PDF template for the certificate background. A lot more could be done with this but its the basic idea.

    Here is the code that generates the PDF

    require_once dirname(dirname(__FILE__)).'/tcpdf/tcpdf.php';
    	require_once dirname(dirname(__FILE__)).'/tcpdf/lib/fpdi/fpdi.php';
    
            $pdf = new FPDI("L",'mm','LETTER', true, 'UTF-8', false);
        $pagecount = $pdf->setSourceFile('certificate-background-002.pdf');
        $tplidx = $pdf->importPage(1, '/MediaBox');
        $pdf->AddPage();
        $size = $pdf->getTemplateSize($tplidx);
        $pdf->useTemplate($tplidx,0,0);
            $pdf->setPrintHeader(false);
            $pdf->setPrintFooter(false);
            $pdf->SetMargins(15,0);
            $pdf->SetTextColor(0,0,0);
            $pdf->setFont("Times", "", 33);
            $pdf->SetXY( 0, 0 );
            $html = '<div><h1 style="margin:-40px 0 0 0;">Certificate of Training</h1>';
            $pdf->writeHTML($html, false, false, false, false, 'C');
            $pdf->setFont("Times", "", 24);
            $html = '<p>'.$personName . '';
            $html .= 'has successfully completed</p>';
            $pdf->writeHTML($html, false, false, false, false, 'C');
            $pdf->setFont("Times", "", 28);
            $cert_name = $quizDetails['settings']['certificate_title'];
            if (!$cert_name || empty($cert_name)) {
                $cert_name = $quizDetails['name'];
            }
            $html = '<h3 style="margin:0;">'. $cert_name .'</h3>';
            $pdf->writeHTML($html, false, false, false, false, 'C');
            $pdf->setFont("Times", "", 24);
    	$html = '<p>on '.$datetaken. '</p></div>';
            $pdf->writeHTML($html, false, false, false, false, 'C');
            $pdf->setFont("Times", "", 12);
            $html = '<table><tr><td width="10%"> </td><td width="30%"><img src="/images/signature3.jpg"></td><td width="10%\
    "> </td><td width="40%"></td><td width="15%"> </td></tr><tr><td></td><td><hr>Signer Name</td><td></td><td><hr>'.$pd\
    fTemplate.'</td><td></td></tr></table>';
            $pdf->writeHTML($html, false, false, false, false, 'L');
            $pdf->Output('certificate.pdf', 'I');// open in browser
    Thread Starter tdxdave

    (@tdxdave)

    I’ll post the code as is, this week. I didn’t have a chance to clean it up. Mainly its a simplification of the pdf.php file.

    The latest version does download the file. I found that the apache user did not have write on the wp-content/plugins/wp-survey-and-quiz-tool/tmp/ directory. Once I fixed the permissions on that directory the download worked as expected.

    Save AS doesn’t work because it doesn’t set the proper headers and does a trick with an iframe instead of just delivering the file.

    Thread Starter tdxdave

    (@tdxdave)

    Hi,

    Login to meetup.com and go to

    https://www.meetup.com/meetup_api/key/

    to get your personal API key.

Viewing 10 replies - 1 through 10 (of 10 total)