Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author unapersona

    (@unapersona)

    Hello @littabird,
    I’m sorry, but I think this functionality is outside the scope of the plugin.

    Please notice that for the iframe-resizer to work, you need to implement it both in the host AND in the contained page, where we don’t have any control.
    https://github.com/davidjbradshaw/iframe-resizer#usage

    It is also possible to implement it yourself using the plain javascript version and assigning and ID to the iframe block.
    https://github.com/davidjbradshaw/iframe-resizer#typical-setup

    Thread Starter littabird

    (@littabird)

    I get it your plugin can’t do anything like that… I asked you to make a new plugin using https://github.com/davidjbradshaw/iframe-resizer-react … This one can but I don’t know how to wrap it as a plugin, you do.

    Plugin Author unapersona

    (@unapersona)

    Hi @littabird,
    for me, the problem is that what you propose needs to operate in the iframe container and in the contained page, so the odds for it to work are very little, and it wouldn’t be straightforward to integrate (the other should be a WordPress, the plugin would have to be installed in both and each site configure separately).

    I could add an option to use the iframe-resizer libray, but only on the host side, that’s why I think it will be an incomplete and misleading feature.

    Thread Starter littabird

    (@littabird)

    Take a look to see if https://github.com/davidjbradshaw/iframe-resizer-react is any good. It seems this is what is needed/missing. Else, there is no more solution (taht I could find).

    Make sure you look at the one with “REACT”, not the iframe-resizer by the same author — this one needs to add one line of <script> at source, but not the REACT one (this is designed for cross domain).

    Thank you.

    Plugin Author unapersona

    (@unapersona)

    Thank you @littabird,
    both libraries are from the same author, and both use very similar code.

    I am afraid that the React version also needs the contained script, as you can see in the Usage section of the docs:
    https://github.com/davidjbradshaw/iframe-resizer-react#usage

    The page in the iframe then needs (iframeResizer.contentWindow.min.js) from iframe-resizer. This file is designed to be a guest on someone else’s system, so has no dependencies and won’t do anything until it’s activated by a message from the containing page.

    flameshot_screenshot

    At this point, I think the only solution is to manually add the library and its code to your website.

    Thank you

    Thread Starter littabird

    (@littabird)

    I am not a coder… so I have idea what can what cannot.

    That said, it’s still very useful even you have to put something in the source files in order for the function to work eg. autoheight (in my case, the source is just anotehr subdomain of mine).

    You are an expert, well, at least you know how to make a plugin… Try to bundle whatever that is useful into your offering so that you can stand out. I am happy to help if there is something I?can?do…Let me know.

    NB: Anyone looking for iframe plugin are likely those who wanted something more than just <iframe> tag eg. “autoheight”, specific area of a page, etc.

    Thank you

    Plugin Author unapersona

    (@unapersona)

    Hi again,
    I understand your point of view, but I still believe that this is a bit out scoped.

    If you need help integrating the iframe-resizer library please provide some URLs as an example and I will try to help.

    Also, if you need code assistance, you can always ask in the WordPress forums for advice.
    https://www.ads-software.com/support/forum/wp-advanced/

    Thread Starter littabird

    (@littabird)

    Thanks Unapersona.

    Okay, try this…

    bon.bonology.com (this is made with FreshRSS — one-click install cPanel)… It has index.php and index.html (I place a banner on the pages, nothing shows up?)

    I wanna wrap the above site in the main site bonology.com.

    Try install FreshRSS on your server to check it out. Better still, try cross domain.

    Plugin Author unapersona

    (@unapersona)

    Hi,
    in this case I will definitively try with a fixed height of 500px, or if you prefer to fill the screen height, 100vh.
    You can put those units in the height input without problem.

    Please try and let me know if it works for you.

    Thanks

    Thread Starter littabird

    (@littabird)

    I know how to specify fixed height… It’s a problem. That’s why I am looking for solution for autoheight.

    Show me the code for 100vh? I doubt this will work, but gimme the code to try…

    Like this

    <iframe src= “url” width=”100%” height=”100vh”> ?

    Plugin Author unapersona

    (@unapersona)

    Hi,
    you don’t need to touch any code, you can put the height with the units in the style panel, something like:

    flameshot_screenshot

    Thread Starter littabird

    (@littabird)

    I knew this 100VH won’t work properly.

    VH will basically extend the viewport height of the iframe, not the page height.
    So, it’s not much different from specifying the height as 100% or 1000px. You still end up with a frame that require scrolling (this may not be an issue in some cases, but it’s an issue for most cases eg. my rss script.

    This confirmed one line of code must be pasted at source for “autoheight” to work.

    That said, appreciate if you can take a look where can I place the js code in FreshhRSS (there are a dozen index.php and index html… I tried them all, none works so far).

    Finally, may I know what’s the advantage of using a plugin eg. Simple Iframe, which will add load and make the site slower, Instead of pasting a simple code as below:-

    <iframe style=”width:100%;max-width:100%;height:100vh” src=”https://bon.bonology.com/p/i/&#8221; frameborder=”0″></iframe>

    Plugin Author unapersona

    (@unapersona)

    Hello @littabird,
    The advantages of using this plugin vs pasting the iframe code, is that you can edit it visually and don’t have to copy/paste code (that it can be a nuisance for some people).
    Since it works as a block, you don’t make the site slower, only the admin a tiny bit (all the final html are generated when saving the content).

    About the FreshRSS structure, I am sorry, but I can’t help you with that, you will have to ask them directly.

    Thread Starter littabird

    (@littabird)

    Thank you.

    I won’t use a plugin that can be done by pasting simple code.

    I am a fast/light person when it comes to web — So, No, I don’t believe it makes no difference to performance using a plugin.
    Every plugin is a burden to the server as far as I know, that’s only logical because the server will have more codes to run, no matter how little.

    Suggest you learn/experiment more… There is a massive market for iframe manipulation, except not many inquire into this topic as a result of cross domain restrictions, rendering folks like you to think there is not much you can do. I however believe there is a way out… and I do believe a lot more wonder can be invented if there is a solution to manipulate the iframe. Why? Because there is an ocean of goodies out in the Internet that can be ported to your lil site (via cherry picking of content).

    That said, do not hesitate to contact once you’re ready to move forward… coding is never my business, it’s yours.

    • This reply was modified 3 years, 4 months ago by littabird.
    • This reply was modified 3 years, 4 months ago by littabird.
    • This reply was modified 3 years, 4 months ago by littabird.
    Plugin Author unapersona

    (@unapersona)

    Hi again,
    I have to respectfully disagree on the “every plugin is a burden to the server”, but that’s ok ??

    Thank you for your comments.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Cross Domain 100$ Height?’ is closed to new replies.