Flyte
04-30-2010, 03:30 AM
Is there a way to get guests to not be able to view a video on my cms page but still read the article through the BBCode Manager?
Here is my current code, I have this setup through BBCode but does not display properly.
Code:
<vb:if condition="$show['guest']">
<div style="text-align: center;">
<h2><span>Hello guest! </span></h2>
<div style="text-align: center;">
<p>Player is disabled for guests!<br />
To be able to view this video, you must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or login. </p>
<img src="http://domain.com/videos/{param}.jpg" border="0" width="250"/>
</div>
</div>
<vb:else />
<script type='text/javascript' src='http://domain.com/videos/jwplayer/swfobject.js'></script>
<div id='mediaspace'>Video was unable to load.</div>
<script type='text/javascript'>
var so = new SWFObject('http://domain.com/videos/jwplayer/player.swf','mpl','525','350','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://domain.com/videos/{param}.mp4');
so.addVariable('image','http://domain.com/videos/{param}.jpg');
so.addVariable('backcolor','FFFFFF');
so.addVariable('frontcolor','000000');
so.addVariable('lightcolor','000000');
so.addVariable('screencolor','000000');
so.write('mediaspace');
</script>
</vb:if>
Thanks.
--------------- Added 1272672372 at 1272672372 ---------------
any suggestions??
Here is my current code, I have this setup through BBCode but does not display properly.
Code:
<vb:if condition="$show['guest']">
<div style="text-align: center;">
<h2><span>Hello guest! </span></h2>
<div style="text-align: center;">
<p>Player is disabled for guests!<br />
To be able to view this video, you must either <a href="register.php{vb:raw session.sessionurl_q}">{vb:rawphrase register}</a> or login. </p>
<img src="http://domain.com/videos/{param}.jpg" border="0" width="250"/>
</div>
</div>
<vb:else />
<script type='text/javascript' src='http://domain.com/videos/jwplayer/swfobject.js'></script>
<div id='mediaspace'>Video was unable to load.</div>
<script type='text/javascript'>
var so = new SWFObject('http://domain.com/videos/jwplayer/player.swf','mpl','525','350','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://domain.com/videos/{param}.mp4');
so.addVariable('image','http://domain.com/videos/{param}.jpg');
so.addVariable('backcolor','FFFFFF');
so.addVariable('frontcolor','000000');
so.addVariable('lightcolor','000000');
so.addVariable('screencolor','000000');
so.write('mediaspace');
</script>
</vb:if>
Thanks.
--------------- Added 1272672372 at 1272672372 ---------------
any suggestions??