vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - passiveVid - (YouTube, Myspace, Google...) Not BBCODE :D (https://vborg.vbsupport.ru/showthread.php?t=150761)

skariko 06-28-2007 06:57 AM

Quote:

Originally Posted by Coders Shack (Post 1278087)
wheres the other one?

I think he's talking about this:

https://vborg.vbsupport.ru/showthread.php?t=150472

Coders Shack 06-28-2007 07:22 AM

well i cant look at it anymore the coder removed it.

nfn 06-28-2007 08:23 AM

Hi,

Can you help me adding http://videos.sapo.pt/ ?

nfn 06-28-2007 08:49 AM

Ok,

After a little fight, here it is the code for http://videos.sapo.pt

Code:

                // Sapo Video
                $this->post['message'] = preg_replace('#<a href=\"http:\/\/videos.sapo.pt\/(.{20}?)(.*?)\" target=\"_blank\">(.*?)</a>#i','<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/${1}/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>',$this->post['message']);


Coders Shack 06-28-2007 06:42 PM

Quote:

Originally Posted by nfn (Post 1278304)
Ok,

After a little fight, here it is the code for http://videos.sapo.pt

Code:

                // Sapo Video
                $this->post['message'] = preg_replace('#<a href=\"http:\/\/videos.sapo.pt\/(.{20}?)(.*?)\" target=\"_blank\">(.*?)</a>#i','<embed src="http://imgs.sapo.pt/sapovideo/swf/flvplayer-sapo.swf?file=http://rd3.videos.sapo.pt/${1}/mov/1" type="application/x-shockwave-flash" width="400" height="325" wmode="transparent"></embed>',$this->post['message']);


nice i was abt to make it :D

Sapo Video and a few others are possible, still looking for a fast way to do sites like yahoo.

l SKN l CHRIS 06-28-2007 10:00 PM

nice hack man i love you

Coders Shack 06-28-2007 10:13 PM

lol, currently I'm working on a way to support other video sites that are harder.

ru55ian 06-28-2007 10:25 PM

very nice hack, Been using Inline, but will upgrade tonight. Thanks.

Coders Shack 06-28-2007 10:30 PM

this will be much better than my past hack what you see now is a sloppy version of what it can do.

Coders Shack 06-29-2007 06:03 AM

added a new way to get videos from links that wasn't possible before.

Basically when you submit a video link like yahoo's which doesn't have the actual ID inside of the url your server will request the yahoo page and find it, then reconstruct the link so it includes the ID. This will only happen on first submission of the link.

These are the newly supported sites in v1.01:
  1. Yahoo Video
  2. Koreus Video
  3. Sapo Video


All times are GMT. The time now is 05:09 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.03180 seconds
  • Memory Usage 1,734KB
  • 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
  • (3)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