The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BBcode vb if condition guest preview
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 [DATE]1272672372[/DATE] at [TIME]1272672372[/TIME] --------------- any suggestions?? |
#2
|
|||
|
|||
anyone have any suggestions?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|