vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   BBCode issue vb 3.8.6 (https://vborg.vbsupport.ru/showthread.php?t=264724)

pachel 06-04-2011 06:42 PM

BBCode issue vb 3.8.6
 
This is for a video embed that is html encoded.

replacement:
http://romhacktube.com/player/pak_player/pakplayer.swf?config=http%3A%2F%2Fromhacktube.com% 2Fplayer%2Fpak_player%2Fembed_player.php%3Fvid%3D{ param}%26json%3Dtrue%26autoplay%3Dno

example of bbcode:
[rht]ar6ydrk8b79h[/rht]

But it does not parse it how can I solve this?

The url to the video is: http://romhacktube.com/watch_video.php?v=ar6ydrk8b79h

Frosty 06-04-2011 09:56 PM

Okay, I've tried with their normal player, but had no luck. So I've decided to just hotlink the file (bandwidth probably isn't their problem) , download JW Player:

http://www.longtailvideo.com/players.../?page=upgrade

Upload it...

Add this as replacement:
PHP Code:

<script type='text/javascript' src='/player/swfobject.js'></script>

<
div id="player_{param}" align="center">Something went wrongRefresh the page, or update your Flash player.</div>

<
script type='text/javascript'>
  var 
so = new SWFObject('/player/player.swf','jsplayer_{param}','720','480','6','#000000');
  
so.addParam('allowfullscreen','true');
  
so.addParam('allowscriptaccess','always');
  
so.addParam('wmode','opaque');
  
so.addVariable("file","http://romhacktube.com/files/videos/{param}.flv");
  
so.addVariable("image","http://romhacktube.com/files/thumbs/{param}-1.jpg");
  
so.addVariable("width","720");
  
so.addVariable("height","480");
  
so.addVariable("javascriptid","jsplayer_{param}");
  
so.addVariable("enablejs","true");
  
so.addVariable("type","video");
  
so.addParam('allownetworking','all');
  
so.addVariable('controlbar','bottom');
  
so.addVariable("showdigits","true");
  
so.addVariable("showstop","true");
  
so.addVariable("stretching","uniform");
  
so.addVariable("smoothing","true");
  
so.addVariable("autostart","false");
  
so.write("player_{param}");

</
script

Example:
[rht]13072024774fe62[/rht]

Now, the good part.. How to get the real video ID? Basically, either go view page source, and type ".flv" in the search form, you'll get something like "13072024774fe62", just copy-paste that part, and wrap it in the rht bb code...

It'll look like this:
http://i.imgur.com/RRn84.png

I know thumbs aren't good as they don't save quality thumbs, but hey... At least the video is fully functional! ;P

pachel 06-05-2011 11:01 AM

Well frosty and me solved it through msn.
With the pakplayer we got it working.

I'd like to thanks frosty for being so generous to help.


All times are GMT. The time now is 01:47 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.00945 seconds
  • Memory Usage 1,730KB
  • 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_php_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