vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Show Thread Enhancements - Automatic Embedded Video (youtube, plus many more) (https://vborg.vbsupport.ru/showthread.php?t=150472)

InTeNsE-HuMoR 06-26-2007 12:48 PM

Post edited because of new arrangement with the mod author. This code has been PM'd to the mod author to be included.

mfyvie 06-26-2007 12:58 PM

Good work, but you may not be out of the woods just yet... Did you notice the s172 and vid172? You should check a lot of different photobucket videos and see if this changes - it does! I have one that uses s178! This means two things need to be extracted...

It might be better to extract just enough info to use in the bbcode rather than the entire URL (this is what I usually do). This particular bbcode will need to use the option option in order to pass the second bit of information.

Note how I've changed things below:

Code:

<embed width="430" height="389" type="application/x-shockwave-flash" wmode="transparent" src="http://vid{option}.photobucket.com/remix/player.swf?videoURL=http://s{option}.photobucket.com/{param}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
[photobucketvid=172]albums/w11/77086dm/89fc6002.pbr[/photobucketvid]

Notice that I am using the convention with vid on the end of bbcode tags. This is to make sure there is no conflict with other tags with the same name!

I would then make a regular expression to pull out the data and feed it into the bbcode tag. This is why it is also important for each service to figure out if other domain names or host names are also possible from the same domain - for example youtube can be:

youtube.com, www.youtube.com, or in future it may even be youtube.de, youtube.co.uk, etc. This also happened with google. Youtube also uses two completely different formats, so I have to trap both of those as well.

That's why for some of these services you have a try a few different ones and see if the details change slightly!

For these codes it's probably best if you start to put them all into a text file, rather than posting them one by one. They won't be of any use to anyone in this mod until I write the regular expressions to match them. If you see post #1 I wrote some info on this - but to be honest they are a little tricky, so probably best if I do the regular expressions for the bbcode you make :-)

That way it would be better not to clutter up the thread - or maybe send me a PM with the details. When they are in a forum that others can use, the best thing is that I roll them up into a new version.

InTeNsE-HuMoR 06-26-2007 01:12 PM

Ok, just to be clear. I make the BB Code and you do the expression bit? Does the bb code have to work completely or just enough to embed? For example: the clipshack one wont work with the mod unless the Clip.aspx is changed to player.swf by your mod.

So if I am able to get it to embed, you will be able to convert it alright?

mfyvie 06-26-2007 01:14 PM

I just also wanted to mention that The Geek has been kind enough to help me out with some large chunks of code which I'll be incorporating into the new version. I just wanted to publicly acknowledge that, as a lot of the code in the new version will probably be his! Maybe you can go and visit his site and buy some of his cool mods: http://www.thevbgeek.com/

mfyvie 06-26-2007 01:51 PM

Quote:

Originally Posted by InTeNsE-HuMoR (Post 1276924)
Ok, just to be clear. I make the BB Code and you do the expression bit? Does the bb code have to work completely or just enough to embed? For example: the clipshack one wont work with the mod unless the Clip.aspx is changed to player.swf by your mod.

So if I am able to get it to embed, you will be able to convert it alright?

yep - I'll do the regular expression. In some cases I may rework your bbcode to make it more efficient, or to work better with the regular expression. The main part where you can help me out is to figure out the smallest possible embed code for use in the bbcode. To check if it is working you should be able to play the video from the example listed in the bbcode manager. Then change the example to another one and that should work too. If you can get that far, you've probably cracked it - just check that there aren't different formats of the URL out there - that often happens with some of these guys.

Please don't release those BBCODES publicly - why? Because in the next version I won't be using the same bbcodes, and I don't want to have more bbcode floating about before v1.2 is released! I'll convert those bbcodes to the new arrangement.

Saviour 06-26-2007 02:07 PM

Excellent Hack! Installed! MOTM??? It's got my vote!

InTeNsE-HuMoR 06-26-2007 02:15 PM

Quote:

Originally Posted by mfyvie (Post 1276957)
yep - I'll do the regular expression. In some cases I may rework your bbcode to make it more efficient, or to work better with the regular expression. The main part where you can help me out is to figure out the smallest possible embed code for use in the bbcode. To check if it is working you should be able to play the video from the example listed in the bbcode manager. Then change the example to another one and that should work too. If you can get that far, you've probably cracked it - just check that there aren't different formats of the URL out there - that often happens with some of these guys.

Please don't release those BBCODES publicly - why? Because in the next version I won't be using the same bbcodes, and I don't want to have more bbcode floating about before v1.2 is released! I'll convert those bbcodes to the new arrangement.

Ok. Sent you a PM with some more BB Codes. In total that is six BB Codes, including the 2 in my signature and the photobucket code.

IGN Code - in my signature.
Game Trailers Code - in my signature.
Photobucket code - posted a few posts back.
Clipshack - sent by PM.
Sharkle - sent by PM.
Current - sent by PM.

mlucek 06-26-2007 03:15 PM

Sweet !!! Installed on 2 sites now :D

Would be even sweeter to pick up old posts and convert those links to new BBCODE's automagically !!

The Geek 06-26-2007 04:31 PM

the version I submitted will.

Lizard King 06-26-2007 05:39 PM

Which version you submitted Sam ?


All times are GMT. The time now is 07:00 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.01360 seconds
  • Memory Usage 1,748KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete