vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   BB Code Request (https://vborg.vbsupport.ru/showthread.php?t=318437)

EasyEazy 04-26-2015 10:18 PM

BB Code Request
 
Looking for some help if possible.

This website http://xboxclips.com contains all gaming clips from xbox live. Could someone generate a BB code so we can embed the videos into the vBulletin much like some have done with You Tube?

So for example http://xboxclips.com/y0gurt%20m4/4ae...c781b790/embed

That video into a forum post when we wrap BB Code tags around it.

Thanks in advance

PinkMilk 04-27-2015 01:49 AM

1 Attachment(s)
It could be done with iframe...

Title:xboxclips
BB Code Tag Name:xbc
Replacement:
Code:

<iframe src="{param}" width="560px" height="324px" frameborder="0" scrolling="no"></iframe>
Example:
Code:

[xbc]http://xboxclips.com/dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba/embed[/xbc]
Description: Whatever you like
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

However...This could be abused and anything/any page put into it.

The fix for this would be to make members only enter curtain parts of the embed url such as the part highlighted in red:
Code:

http://xboxclips.com/dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba/embed
and change replacement to:
Code:

<iframe src="http://xboxclips.com/{param}/embed" width="560px" height="324px" frameborder="0" scrolling="no"></iframe>
and example to:
Code:

[xbc]dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba[/xbc]
...however this is not a "simple" cut and paste thing for members and most will probably just paste the full link and then wonder why it didn't work. I'm not saying members are stupid but 99.9% would assume/expect it to be a case of the full url not just a part of it.

EasyEazy 04-27-2015 05:17 AM

Quote:

Originally Posted by PinkMilk (Post 2544264)
It could be done with iframe...

Title:xboxclips
BB Code Tag Name:xbc
Replacement:
Code:

<iframe src="{param}" width="560px" height="324px" frameborder="0" scrolling="no"></iframe>
Example:
Code:

[xbc]http://xboxclips.com/dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba/embed[/xbc]
Description: Whatever you like
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes

However...This could be abused and anything/any page put into it.

The fix for this would be to make members only enter curtain parts of the embed url such as the part highlighted in red:
Code:

http://xboxclips.com/dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba/embed
and change replacement to:
Code:

<iframe src="http://xboxclips.com/{param}/embed" width="560px" height="324px" frameborder="0" scrolling="no"></iframe>
and example to:
Code:

[xbc]dylan%20is%20white/ce62cb9d-6029-4810-b5cd-99f6927afcba[/xbc]
...however this is not a "simple" cut and paste thing for members and most will probably just paste the full link and then wonder why it didn't work. I'm not saying members are stupid but 99.9% would assume/expect it to be a case of the full url not just a part of it.

Thank you so much for your time. It works perfectly. My users will be able to use the second option you posted as thats how we do our You Tube & Vine clips.

Thanks again.

Black Snow 05-01-2015 11:45 AM

They are pulling the content from this website:
Code:

http://gameclipscontent-t2004.xboxlive.com


All times are GMT. The time now is 07:17 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.01444 seconds
  • Memory Usage 1,727KB
  • 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
  • (11)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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