Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2011, 06:42 PM
pachel pachel is offline
 
Join Date: Dec 2007
Location: Netherlands
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 06-04-2011, 09:56 PM
Frosty Frosty is offline
 
Join Date: Apr 2011
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 06-05-2011, 11:01 AM
pachel pachel is offline
 
Join Date: Dec 2007
Location: Netherlands
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:24 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.08035 seconds
  • Memory Usage 2,190KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete