Hi @Naomi Marr
I've done the technique sanford mentions with tokens, CSS and some scripting.
The goal was to only show a LiveStream broadcast to those that registered. If someone did not register, the content is replaced with a 'you must register' message and a button to the reg page.
Here are some of the details:
Webform was created to register for the content
Upon form fill out, a 'change data value' flow step in MKTO sets a custom field to the source URL of the livestream iframe embed.
The landing page uses the token for the livestream iframe field like so:
iframe id="liveStreamVid" src="{{lead.ICON14 Live Stream - Video:default=}}" width="640" height="360" frameborder="0" scrolling="no" style="width: 640px; margin: 0 auto;"> /iframe
Some Jquery adds the hidden class to a register message while removing the hidden class from the content iframe.
jQuery(function(){
var liveStreamVid = jQuery("#liveStreamVid");
if (liveStreamVid.attr("src")!=""){
jQuery(".iframer").removeClass("hidden");
jQuery(".register").addClass("hidden");
}
CSS:
.show {
display: block;
}
.hidden {
display: none;
}
Register message HTML for reference:
<div class="register hidden">
<p>
The broadcast will go live Wednesday 4/23/2014 at 8am MST.
</p>
<p>
If you haven't yet, be sure to register to gain access
</p>
<div>
<a class="button small gap-left" href="regpageURL">REGISTER NOW</a>
</div>
<p>
</p>
</div>
The Result: If someone came through the webform than the custom field sets and on the thank you page the jquery shows the content. If the person shares the link, than the new visitor will see a register message instead of content because they do not have a known munchkin id.
If you don't need to get fancy for your setup, you could use the 'email' token in a hidden div. Then redirect to the register page or show the register message in the event the 'email' hidden div is blank.