vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Video-Directory (https://vborg.vbsupport.ru/showthread.php?t=192241)

NAZIA 11-21-2008 08:25 PM

In RC2 ...
There is bug that I feel...At my board...

For metacafe Videos...
We can only add the Videos Url with the Integer values in the address
like this http://www.metacafe.com/watch/1238559

But we can't share http://www.metacafe.com/watch/yt-8Tfh2PnvTnY
sort of videos... yt-8Tfh2PnvTnY i.e both Integers and alphabets in URL after /

What do you say?

KW802 11-21-2008 10:04 PM

I have been searching for a video mod, free & commercial, and have just a few questions...

- Is there a branding free option available?

- Is the current version a prelude to there being a commercial (aka: pay) version in the future?

- Does the API code recognize YouTube videos that are flagged with the option to prevent embedding? (So that users do not try to add videos that can not be remotely embedded.)

- Does it have to be installed in the same folder as vBulletin? (My preference is that I can install it in a different folder like "MySite.com/videos" instead of "MySite.com/forums/video.php"?)


Thanks. :)

Surviver 11-21-2008 10:17 PM

Quote:

Originally Posted by NAZIA (Post 1670259)
In RC2 ...
There is bug that I feel...At my board...

For metacafe Videos...
We can only add the Videos Url with the Integer values in the address
like this http://www.metacafe.com/watch/1238559

But we can't share http://www.metacafe.com/watch/yt-8Tfh2PnvTnY
sort of videos... yt-8Tfh2PnvTnY i.e both Integers and alphabets in URL after /

What do you say?

Mmh. It seems that videos not having a numeric url are only embeded video from other videohosters (in this cas youtube) ...

Quote:

Originally Posted by KW802 (Post 1670300)
I have been searching for a video mod, free & commercial, and have just a few questions...

- Is there a branding free option available?

- Is the current version a prelude to there being a commercial (aka: pay) version in the future?

- Does the API code recognize YouTube videos that are flagged with the option to prevent embedding? (So that users do not try to add videos that can not be remotely embedded.)

- Does it have to be installed in the same folder as vBulletin? (My preference is that I can install it in a different folder like "MySite.com/videos" instead of "MySite.com/forums/video.php"?)


Thanks. :)

@Branding Free: Sende me a PM
@"prelude": At the moment, its not planned, to release a commercial version of THIS hack :)
@Flaggs: Yes - if the video may not be embedded, the user'll get a error message (when he tries to add the video :))
@Folder: It's in the same directory as vBulletin. But i added vBSEO Reqrite Rules to this hack - if you use vBSEO and them, your users will think, that the video directory is not a part of the forum (Example Url: forum.com/videos/funny-videos-2/new-hit-46.html)

Regards
Surviver

NAZIA 11-22-2008 12:05 AM

Videos for youtube are working fine...

KW802 11-22-2008 02:37 AM

Quote:

Originally Posted by passwords (Post 1668472)
Is there any way to stop " related videos " from youtube ?

Quote:

Originally Posted by passwords (Post 1668519)
Hello ..
at the end of youtube videos it show the related videos ( attached pic ) , some times the related video is for adult ( sex, vlc, etc .. ) and i dont want to show that on my forum ..

:)

Quote:

Originally Posted by doc1975 (Post 1668598)
I second that, only to keep the adult videos from being displayed... haven't noticed any myself as of yet, but lord I'd hate to have a member stumble across one.

Quote:

Originally Posted by Surviver (Post 1668631)
That has nothing to do with this hack - we use the default YouTube player - you'd have ro ask youtube.com :)

Actually.... ;)

For those who want to turn of the related YouTube videos, modify your /forums/includes/xml/videohoster-YouTube.xml and scroll down to near the bottom (with the current version it is the second to last function in the file) and find this bit of code:
Code:

function fetch_embedcode($videoid = '')
 {
  $videoid = $videoid ? $videoid : $this->video_id;

  return '<object width="425" height="373"><param name="movie" value="http://www.youtube.com/v/' . $videoid . '&amp;rel=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $videoid . '&amp;rel=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed></object>';
 }

In that code several options are passed into the YouTube player via the query string. In this case, it is the "rel" option that needs to be changed. On the line that starts with "return" find the *two* instances of "&amp;rel=1" and change the "1" (true) to be a "0" (false) instead ("&amp;rel=0").

Save the file and refresh your page; the related videos should now be turned off. :)

KW802 11-22-2008 02:39 AM

Quote:

Originally Posted by Surviver (Post 1670311)
....

Thanks for the info; I'll get ya' on PM after I've had a chance to go through some of the options a bit more. :cool:

Daky 11-22-2008 02:54 AM

Quote:

Originally Posted by KW802 (Post 1670402)
Actually.... ;)

For those who want to turn of the related YouTube videos, modify your /forums/includes/xml/videohoster-YouTube.xml and scroll down to near the bottom (with the current version it is the second to last function in the file) and find this bit of code:
Code:

function fetch_embedcode($videoid = '')
 {
  $videoid = $videoid ? $videoid : $this->video_id;

  return '<object width="425" height="373"><param name="movie" value="http://www.youtube.com/v/' . $videoid . '&amp;rel=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/' . $videoid . '&amp;rel=1&amp;color1=0x2b405b&amp;color2=0x6b8ab6&amp;border=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed></object>';
 }

In that code several options are passed into the YouTube player via the query string. In this case, it is the "rel" option that needs to be changed. On the line that starts with "return" find the *two* instances of "&amp;rel=1" and change the "1" (true) to be a "0" (false) instead ("&amp;rel=0").

Save the file and refresh your page; the related videos should now be turned off. :)

It does not work for me.

KW802 11-22-2008 02:57 AM

Quote:

Originally Posted by Daky (Post 1670410)
It does not work for me.

Did you save the file on your server? Do a hard refresh in your browser to make sure you were not viewing a cached page?

Daky 11-22-2008 03:04 AM

I saved, and tried 3 different browsers.
I also cleaned all cached\cookies\temporary files etc.

.. still doesn't work for me.

lets see ... if somebody else try ... (might be something wrong i did.. but .. )

thanks tho

KW802 11-22-2008 03:38 AM

Quote:

Originally Posted by Daky (Post 1670414)
I saved, and tried 3 different browsers.
I also cleaned all cached\cookies\temporary files etc.

.. still doesn't work for me.

lets see ... if somebody else try ... (might be something wrong i did.. but .. )

thanks tho

As you can see here (http://www.coolscifi.com/forums/vide...ails&videoid=3) it does work. When viewing the page on your site, if you do a 'view source' are you seeing the "rel" option changed to 0? And you are definitely changing both of the values?


EDIT: Hold that thought for now... looks like I may have missed something since I'm getting inconsistent results now. I'll be back.


All times are GMT. The time now is 07:16 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.01902 seconds
  • Memory Usage 1,760KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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