WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • EmbedPDF droplet not working on AMASP!
  • Print
Pages: [1]   Go Down

Author Topic: EmbedPDF droplet not working on AMASP!  (Read 4805 times)

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
EmbedPDF droplet not working on AMASP!
« 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.
Logged

Offline BerndJM

  • Posts: 1764
  • Gender: Male
Re: EmbedPDF droplet not working on AMASP!
« Reply #1 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
Logged
In theory, there is no difference between theory and practice. But, in practice, there is.

Offline Roych

  • Betatester
  • **
  • Posts: 573
  • Gender: Male
Re: EmbedPDF droplet not working on AMASP!
« Reply #2 on: October 06, 2010, 10:56:50 AM »
thank you, it works now ;)
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • EmbedPDF droplet not working on AMASP!
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2