Support » Plugin: User Shortcodes » Using shortcode in iFrame

Viewing 4 replies - 1 through 4 (of 4 total)
  • @crazycanuck27, were you able to resolve this?

    @thecompuerguyjeff – I ended up using an iframe plugin Advanced iFrame Pro that had built in the ability to pass along the user info as a parameter.

    I have the same problem, but I use a normal iframe (not iFrame Pro) because iFrame pro doesn’t allow me to set the iframe height to a percentage of the viewport height. Anybody with a solution?

    My iFrame code looks like this, but the first name isn’t parsing, it’s just passing on the short code as inserted:

    <iframe name="chatpanel" src="[currentuser_firstname]&#Chat27Beta" marginwidth="1" marginheight="1" scrolling="no" border="0" frameborder="0" width="100%" style="min-height: 400px; width:100%; height:80vh;"></iframe>

    @outboxed, I ended up using the Pro version of “Advanced iFrame” … but don’t know if it allows height as a percentage of viewport height.

    If I recall, I made the switch because I had the issue where shortcodes in <iframe> wouldn’t work, but AiFPro does allow the use of something similar {userinfo-first_name} in the URL and I am able to pass that value to be parsed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using shortcode in iFrame’ is closed to new replies.