Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-03-21 04:41:38

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Plug In Guide?

Backlight has three options for PHP Plug in..  What are the differences?

trying to get iFrames to work without any success, or knowledge on my part..

http://iproof.me/galleries/catalogs/onlinecat/

Offline

#2 2017-03-21 04:48:54

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Plug In Guide?

what do you mean three options for phplugins?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#3 2017-03-21 11:06:16

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

Page template advanced options has three pop plugin files to include..
Campagna.php. Phpplugins-samples.php. And the turning gate.php

Offline

#4 2017-03-21 11:16:05

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Plug In Guide?

Those are just samples, mainly meant as demos. What are you wanting to do?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2017-03-21 14:35:10

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Plug In Guide?

We've documented how to work with PHPlugins here:
http://backlight.theturninggate.net/doc … _phplugins


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2017-03-22 08:08:19

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

I know what I want, but I don't know where to look or what hammer to grab to get it done.
PHPlugin for dummies guide anywhere?

Wanting external files:  PDF's to show.  Would LOVE to have a catalog FLIP Book.  that is what my current
Took a hammer to CS4 and Plugins for nicer Menus.   

Tried a PMY iFrame...  Can't get that to size vertically.
not a big enough hammer?  not for lack of trying, just lack of knowledge.

http://iproof.me/galleries/standalone/pdf/
http://iproof.me/galleries/catalogs/onlinecat/
http://iproof.me/galleries/standalone/album/

Offline

#7 2017-03-22 08:14:36

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Plug In Guide?

have you looked through the PYM documentation and created a folder to hold the js and html files?
for existing pages, have you added the code to call the pym js?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2017-03-22 11:08:43

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

that is what I'm trying to use.  replacing the body of the index.html file with
can't find examples that work.

<body>

<div id="example"></div>

<script type="text/javascript" src="https://pym.nprapps.org/pym.v1.min.js">  </script>

<script>
    var pymParent = new pym.Parent('example', 'http://www.premierpersonalizedgifts.com/p', {});
</script>
                                                       
</div>


<script src="pym.v1.min.js"></script><script>
    var pymChild = new pym.Child();
</script>

</body>

Offline

#9 2017-03-22 13:17:55

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Plug In Guide?

I've not played with with the PYM Embedded iFrame presentation yet, maybe Matt can offer some guidance beyond the docs.
I can see that your HTML contains an extra closing </div> tag though.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2017-03-22 16:20:31

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Plug In Guide?

I don't think Pym is the thing for displaying PDF files. In fact, PDF files are difficult to show in a browser.

Read this:
http://stackoverflow.com/questions/2918 … df-in-html

While I haven't tried it, you should be able to include the script using PHPlugins.


Matt

The Turning Gate, http://theturninggate.net

Offline

#11 2017-03-23 01:40:30

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

what is frustrating is the PYM iframe's vertical size only seems to respond to text, not to any content.    I know my method is not proper.     Is there any example of PYM code working?

Offline

#12 2017-03-23 02:08:10

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Plug In Guide?

Matt's got one in the Backlight Demos section: http://backlight.theturninggate.net/gal … ed-iframe/

Don't know that it will help though.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2017-03-23 04:58:34

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

thanks.. but that is just text in a frame.  Even NPR's site claims to use PYM iframe to link to an external document. 
sorry to be so thick headed..

For a PDF.. got this to work on a Page..   kinda.. resizes on a computer. not on mobile.

http://iproof.me/NameBadgePDF/

<style>.embed-container { position: relative; padding-bottom: 100%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='http:/www.iproof.me/images/namebadge.pdf' style='border:0'></iframe></div>

Offline

#14 2017-03-23 16:37:17

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Plug In Guide?

Mark,

In terms of web code, I don't think a PDF qualifies as a "document"; it's a file. In the web context, "document" is shorthand for "HTML document", i.e. another web page.

Did you look at the pdf.js referenced in the StackOverflow post I shared?


Matt

The Turning Gate, http://theturninggate.net

Offline

#15 2017-03-25 02:16:01

mark_barron
Member
Registered: 2014-03-31
Posts: 51

Re: Plug In Guide?

yes. looked at the pdf.js   don't know enough coding to unravel the means to get it to work.

Offline

#16 2017-03-25 13:55:57

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Plug In Guide?

Well, I have it in an open tab. Not sure when I'll get around to it, but I'll have a play with it one of these days and see whether it's worth implemented in some official way, maybe via Theater.


Matt

The Turning Gate, http://theturninggate.net

Offline

#17 2017-10-22 11:20:04

pjtraveler
Member
Registered: 2012-11-26
Posts: 243

Re: Plug In Guide?

Matt, Ben,
Are there any extra hooks for the theater plugin?

Offline

#18 2017-10-22 11:33:51

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Plug In Guide?

Nothing extra. All hooks are outlined in the phplugins-pangolin-sample.php file.


Matt

The Turning Gate, http://theturninggate.net

Offline

#19 2017-10-23 11:25:47

pjtraveler
Member
Registered: 2012-11-26
Posts: 243

Re: Plug In Guide?

OK,
Thanks

Offline

Board footer

Powered by FluxBB