Support » Plugin: Advanced iFrame » Hide elements on external domain

  • Resolved jakecloudgenius

    (@jakecloudgenius)


    Hi,

    I am having trouble hiding elements of the iframe on an external domain.

    I’m clearly missing something here!

    Any help would be appreciated.

    All the best

    The page I need help with: [log in to see the link]

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

    (@mdempfle)

    Page not found.

    Do you have the pro version? because hiding elements on an external domain is not included in the free version.

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    Sorry about that. The page had been set to private. It is now public so you should be able to view it.

    We do have the the pro version.

    All the best,

    Jake

    Plugin Author mdempfle

    (@mdempfle)

    You need the use the external workaround to do this. Check the tab in the administration for details.

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    We have tried to follow the instructions given on the external workaround, however have had no luck.

    We have managed to get the ai_external.js to show up as working under the network tab on chrome. However we cannot figure out what else we are meant to do.

    We have tried putting the short code into <iframe> tags as well as trying to use <script> var iframe_hide_elements = “#masthead”; </script> but nothing has seemed to work yet.

    All the best,
    Jake

    Plugin Author mdempfle

    (@mdempfle)

    No – The ai_external has to be in the page IN the iframe. Then you can configure everything in the administration for one iframe.

    See: http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-features-availability-overview

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    I have tried to follow the external workaround example provide in the link you sent.

    However, it is only displaying shortcode. See example of what I did below.

    <script>

    var iframe_id = “example6”;
    var updateIframeHeight = “true”;
    var hide_page_until_loaded_external = “true”;
    var iframe_hide_elements = “#masthead”;
    var iframe_content_id = “#iframe-content”;
    var iframe_content_styles = “color:#ff0000″;

    </script>

    <script src=”my-link/advanced-iframe/js/ai_external.js”></script>

    [advanced_iframe securitykey=”my security key” use_shortcode_attributes_only=”true” src=”my link” id=”example6″ height=”300″ width=”800″ scrolling=”no”]

    All the best,

    Jake

    Plugin Author mdempfle

    (@mdempfle)

    You need to include
    <script src=”my-link/advanced-iframe/js/ai_external.js”></script>
    to
    https://cmb.wales/business-directory/cloud-genius-ltd/

    Not into
    https://cloud-genius.com/test/
    (There I can include with the plugin whatever I want…)

    Best, Michael

    • This reply was modified 6 years, 4 months ago by mdempfle.
    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    The plugin is installed onto https://cmb.wales and I would like to display the iframe on https://cloud-genius.com/test/

    So once I have put
    <script src=”https://cmb.wales/advanced-iframe/js/ai_external.js”></script>
    into the
    https://cmb.wales/business-directory/cloud-genius-ltd/ page,
    then how do I get the iframe to appear on the https://cloud-genius.com/test/ page?

    Plugin Author mdempfle

    (@mdempfle)

    The plugin has to be installed at https://cloud-genius.com/test/ and the script ai_external.js has to be in https://cmb.wales/business-directory/cloud-genius-ltd/

    it is important that you use the path that is described then in the administration of https://cloud-genius.com/test/

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    So what we would like to do is as follows:

    On cmb.wales companies all get their own separate page.

    The companies need to be able to display part of their page on the cmb.wales website onto their own website.
    e.g. example company:
    Has their own website called example-company.com
    Has page on cmb.wales called cmb.wales/example-company
    Needs to display part of cmb.wales/example-company on their website

    This would be the same for several different companies.

    Does this mean that in order for this to work the plugin would have to be installed on each of their websites?

    All the best,
    Jake

    Plugin Author mdempfle

    (@mdempfle)

    You need an iframe on the other companies page – right? how should this be done?
    Because this is the normal way the plugin is used.

    But it seems you only want to display parts of your website in a simple iframe you give to the user? So your customer only have to add one or 2 lines of html to their page?

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    Yes, other companies will need to display part of their cmb.wales page onto their website.

    Yes, we would like to give the customer a few lines to add to their website that displays part of cmb.wales.

    All the best,
    Jake

    Plugin Author mdempfle

    (@mdempfle)

    This would be a complete turnaround of the logic as I also have a standalone version but on the side with the iframe a lot of things are rendered dynamically. So you only want to hide something? Or also auto height? Because depending on the features you need a custom solution is maybe possible. The effort depends on the features you need.

    I don’t understand your case completely. So you offer your users a full website. But you also want to offer them a website without e.g. header and footer? So the either use the full version or include the one without header /footer wo your page?

    Best, Michael

    Thread Starter jakecloudgenius

    (@jakecloudgenius)

    I basically need the ratings section on the cmb.wales/business-directory/cloud-genius-ltd to display on the cloud-genius.com/test page.

    Is this possible using your plugin?

    Plugin Author mdempfle

    (@mdempfle)

    You can configure ai_external.js and actually add this to your domain. But features like auto height would require additional Javascript on the site of your customers that does not exist yet…

    Best, Michael

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Hide elements on external domain’ is closed to new replies.