WebsiteBaker Community Forum
WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started 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:
$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.
-
Puuh,
the code is realy messed, here we go:
$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
-
thank you, it works now ;)