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)

Alibass 06-23-2007 08:49 PM

Damn nice hack and thanks *installed*

Now if I could just figure out why I have always had problems with the audio from youtube when playing from embedded code. Audio plays fine from their website. :confused:

ayoko555 06-23-2007 08:50 PM

I'm using 3.6.7, but it's not embedding to youtube video automatiaclly, it's still showing the link???

Alibass 06-23-2007 08:51 PM

Works great for me and I am using 3.6.7PL1

mfyvie 06-23-2007 08:55 PM

Quote:

Originally Posted by ayoko555 (Post 1274874)
I'm using 3.6.7, but it's not embedding to youtube video automatiaclly, it's still showing the link???

Did you see post #13?

mfyvie 06-23-2007 09:04 PM

Ok - the first post in this thread has now been updated with a list of known issues and a list of things to give me if you are asking for support. Please read this and check back periodically, I'll be updating this first post as soon as I have more information.

vampireus 06-23-2007 09:14 PM

I saw an instruction on a site

http://www.mautam.org/forum/viewtopic.php?t=9253

They use a BB code quite different, one tag for movies from several sites and they are able to include Daily Motion, which is impossible to use with your code.

I'm not complaining for anything. Just thought I should post the instruction here for a reference.

Thx for your great mod.

mfyvie 06-23-2007 09:21 PM

Quote:

Originally Posted by vampireus (Post 1274886)
I saw an instruction on a site

http://www.mautam.org/forum/viewtopic.php?t=9253

They use a BB code quite different, one tag for movies from several sites and they are able to include Daily Motion, which is impossible to use with your code.

I'm not complaining for anything. Just thought I should post the instruction here for a reference.

Thx for your great mod.

If they can do daily motion with BB Code, then it could also be incorporated into this mod. Whoever has done that mod may know something I don't. If you could contact them for me and get the technical details (or point me to the mod that does it). Are you a user of that forum?

FleaBag 06-23-2007 09:42 PM

This is amazing! Thanks so much. :)

Edit: Working flawlessly! Editing old posts now. :)

Edit 2: I seem to have some issues with this mod fighting it out with vBSEO. New posts convert fine - editing posts results in vBSEO replacing the URL with the title of the page the link points to (an enabled feature). I'm guessing this has something to do with execution order of plugins. Maybe this one needs to be prioritised to resolve this?

Edit 3: Just read the first post lol. A big shame to lose original videos, but I can live with that. Thanks!

mfyvie 06-23-2007 10:00 PM

Fleabag - correct. I'm working on that now. Change execution order to 4 and I believe it will win over VBSEO. Don't bother updating your existing threads - I'm going to make some code that will do it for you. Keep an eye on this thread (it will be within a couple of days)

Everybody else - I've found a few things that I am ironing out. Youtube has a few different characters that I didn't expect, so I'm going to update all the search strings. This may have caused some of the issues from people who reported issues.

However, since only one person actually gave me the URLs that didn't work, I wasn't able to spot this until now.

I'll replace the download file and note that on this thread when I'm done. Watch this space.

nfn 06-23-2007 10:04 PM

Here is the first contribution.

http://videos.sapo.pt


Find AdminCP -> Plugins and Products -> Plugin Manager select the plugin "Parse/Replace New Post" under "Product: Automatic Embedded Video" and add:

Regular Expression:

Code:

// videos.sapo.pt
array_push($replace, '[sapovid]$1[/sapovid]');
array_push($patterns, '^\[URL\]http://videos\.sapo\.pt/(\w*)\[/URL\]^i');


Find AdminCP -> Custom BB Codes -> BB Code Manager and add:


Add BB Code:

Code:

Title: Sapo Embedded Video
Tag: sapovid
Replacement:
<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/{param}/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>
Example: [sapovid2]GnR4iyISmcKjJnRAj6cY[/sapovid2]
Description: Allows users to embed video from videos.sapo.pt



That's it
Now you may play videos from the Portuguese portal Sapo.pt.


All times are GMT. The time now is 07:39 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.01218 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)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