vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   BBcode vb if condition guest preview (https://vborg.vbsupport.ru/showthread.php?t=241534)

Flyte 04-30-2010 03:30 AM

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??

Flyte 05-02-2010 01:34 AM

anyone have any suggestions?


All times are GMT. The time now is 03:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00919 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete