WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: Roych on October 05, 2010, 11:19:35 PM

Title: EmbedPDF droplet not working on AMASP!
Post by: Roych on October 05, 2010, 11:19:35 PM
Hello!

I'we noticed that the EmbedPDF droplet doesn't work anymore in the AMASP library. I need it and cant figure it out how I'm not a coder.

the code in AMASP now is:
Code: [Select]
$retval = "";
if (!$height) $height=450;
if (!$width)  $width=690;
$retval .='<center>';
$retval .='    <embed ';
$retval . $height '"';
$retval $width $url '#toolbar='1&navpanes=0&scrollbar=1"'>';
$retval .='    </embed>';
$retval .='</center>';
return $retval;

Wich is not working.

can anybody write down the working code please.

thx in advance
R.
Title: Re: EmbedPDF droplet not working on AMASP!
Post by: BerndJM on October 06, 2010, 01:30:00 AM
Puuh,

the code is realy messed, here we go:
Code: [Select]
$retval = "";
if (!$height) $height=450;
if (!$width)  $width=690;
$retval .= '<center>';
$retval .= '<embed height="'.$height.'" width="'.$width.'" ';
$retval .= 'src="'.$url.'#toolbar="1&navpanes=0&scrollbar=1">';
$retval .= '</embed>';
$retval .= '</center>';
return $retval;

Regards Bernd
Title: Re: EmbedPDF droplet not working on AMASP!
Post by: Roych on October 06, 2010, 10:56:50 AM
thank you, it works now ;)