vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Java player used in custom BBcode?? (https://vborg.vbsupport.ru/showthread.php?t=281607)

camoit 04-16-2012 03:18 AM

Java player used in custom BBcode??
 
Hay guys does anybody know of a way to use incorporate a java player in the custom Bbcodes?
So if my guys want to add in music on there build thread all they need to do is click the button for the code in one of there posts, and it will stick it on that page? Here is the code I have so far. It works in a standard html page. But when I drop it in BBcode I get a black box of the correct size and I click it it will give me the info on java player 10.6.5 or what ever. Link to test html that works. http://mightyram50.net/jwplayer/start.html
If you go there you will see and here it.
Link to see black box. http://www.mightyram50.net/vbulletin...=9430#post9430
All I get after using the code in the BBcode is a black box the correct size.
Any Ideas??????? Or am I heading into uncharted water on this one.

Where is the custom BBcodes held after being submitted? Is there a file they go to. Or the DB, If so I might need to upload the scripts to it.


Code:

<title>test music</title>
<head>
       
        <script type="text/JavaScript">
<!--
function timedRefresh(timeoutPeriod) {
        setTimeout("location.reload(true);",timeoutPeriod);
}
//  -->
</script>
 
    <script src="http://mysite.com/jwplayer/swfobject1.js"></script>
    <script type="text/javascript">
      var flashvars =
      {
        'file':              'http://www.mysite.com:8000/;stream.nsv',
        'title':              'My Stream',
        'type':              'sound',
        'duration':          '28800',
        'frontcolor':        '000000',  // text & icons                  (green)
        'backcolor':          'ffffff',  // playlist background          (blue)
        'lightcolor':        '000000',  // selected text/track highlight (red)
        'screencolor':        '161410',  // screen background            (black)
        'id':                'playerID',
        'autostart':          'true'
      };
 
      var params =
      {
        'allowfullscreen':    'false',
        'allowscriptaccess':  'always',
        'bgcolor':            '#161410'
      };
 
      var attributes =
      {
        'id':                'playerID',
        'name':              'playerID'
      };
 
      swfobject.embedSWF('player.swf', 'player', '300', '20', '9.0.124', false, flashvars, params, attributes);
    </script>
 
</head>

  <body><br />
                        <div id="playercontainer" class="playercontainer"><a rel="nofollow" id="player" class="player" title="Get Adobe Flash" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><b>Get Adobe Flash</b></a></div>       
  </body>
</html>


camoit 04-17-2012 04:30 AM

Oh ya if you fallow the link above to see the black box, you can see it with IE but not Fire Fox

camoit 04-21-2012 06:00 AM

I got it working. I will relese soon. Now you can have streaming radio to your your VB


All times are GMT. The time now is 06:31 AM.

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.01071 seconds
  • Memory Usage 1,724KB
  • 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)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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