vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - PhotoBucket BB Code (https://vborg.vbsupport.ru/showthread.php?t=286770)

angeljs 08-16-2012 10:00 PM

PhotoBucket BB Code
 
1 Attachment(s)
Please mark as installed if you use this :)

I've been looking for a way to do this for a while, and though this code isn't perfect, it works with a small adjustment to the video link. If anyone can suggest a better way to do this, I'd be very pleased. :)

Note: When adding the video link from PhotoBucket, use the direct link and remove the following from it before adding it to your post:

Code:

?action=view&current=
It won't work if you don't do the above, which is the part I could use some help with. Then your link should look something like this:

Code:

http://s605.photobucket.com/albums/tt132/username/yourvideo.mp4
Anyhoo, here's the mod:

Title: PhotoBucket Video
BB Code Tag Name: pbv
Replacement:
Code:

<embed width="600" height="361" type="application/x-shockwave-flash" allowFullscreen="true" allowNetworking="all" wmode="transparent" src="http://static.photobucket.com/player.swf" flashvars="file={param}">
Example: [pbv]direct-link-to-video[/pbv]
Use {option}: No

I've attached a couple of images for you to use if you like.

angeljs 08-17-2012 05:30 PM

Reserved

WIJI SEJATI 01-04-2013 06:10 AM

Message
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.

<embed width="600" height="361" type="application/x-shockwave-flash" allowFullscreen="true" allowNetworking="all" wmode="transparent" src="http://static.photobucket.com/player.swf" flashvars="file={param}">

Toorak Times 01-04-2013 11:11 AM

Ignore that and keep going, that seems to be a bug in 4.2

DAMINK 01-04-2013 08:03 PM

I think you get that error because you did not enclose the {param} in double quotes.


All times are GMT. The time now is 06:53 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.00994 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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