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)
-   -   Major Additions - YouTube API Integration (lite) (https://vborg.vbsupport.ru/showthread.php?t=170106)

Andrew Green 02-09-2008 10:00 PM

YouTube API Integration (lite)
 
Note: Requires PHP 5 to run

This is a youtube integration modification. It integrates the youtube API into your website, allowing you to view, search and browse youtube's library from your site. It also includes a playlist system, allowing you and your users to create both public and private playlists. Private playlists can be edited and viewed only by their owners. Public lists are viewable by all, you can choose which user group can edit the public lists, and which can suggest videos, which are then approved or denied by the moderating group.

What this is not is a video hosting application, it works only off youTube's API, which is read only. You cannot upload video's, rate videos or otherwise post information too youtube.

In addition it creates a custom BBCode "[youtube]videoid[/youtube]" unless it already exists. At bottom of each video there will be the BBCode as with the video id plugged in for users to copy and paste into threads.

Live Demo: http://vbgaming.org/forum/yt.php

It is a "lite" version, but it's missing very little, just the ability for users to suggest videos for public lists without giving them full editing ability on them.


v 1.1 - Feb 17
- Some minor bug fixes
- Now includes "Related Videos"
- Now cache's XML files on playlists, greatly speeding up loading those pages

v 1.11 - Apr 1
- Some bug fixes related to playlists

April 7
- Minor fix preventing videos from being added properly fixed

S7rik3R 02-10-2008 03:10 AM

Cool ... will try it out to check the difference from the current one I'm using

Hornstar 02-10-2008 03:55 AM

Been waiting for this one for ages, as the last good one has an exploit in it, hopefully this one wont. thanks.

double_d 02-10-2008 04:02 AM

i would like to know the other you were using S7rik3R
does it automatically put videos in each catagory i make
or do i have to do this
it looks very good
but not exactly sure i want to install just yet

daniel d

Andrew Green 02-10-2008 04:04 AM

Quote:

Originally Posted by double_d (Post 1439810)
i would like to know the other you were using S7rik3R
does it automatically put videos in each catagory i make
or do i have to do this
it looks very good
but not exactly sure i want to install just yet

daniel d

The categories are done by YouTube, You can create Playlists which you add videos too manually.

itzxmikee 02-10-2008 05:15 AM

I get this message when trying to import the file in vb

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)

Andrew Green 02-10-2008 05:17 AM

Quote:

Originally Posted by itzxmikee (Post 1439829)
I get this message when trying to import the file in vb

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)

Yup, even says that in the first post ;)

The xml parsing routines used in it don't exist in older versions of PHP.

MiahBeSmokin420 02-10-2008 05:43 AM

i promise you that this is already been posted and the one that posted is alot better

what makes this one diffrent from the main one that was released??

~~~~~~~~~~~~~~~~~~~~~

Ok i see the diffrence now

this one got removed from the site cause i guess dude pissed paul off or something idk i didnt feel like reading all the drama

well man since this is like the only one posted on the site now i guess good shit lol

basketmen 02-10-2008 01:12 PM

hmm at least vbtube realesed again

edenx 02-10-2008 01:29 PM

If you add a comments system, this would be great

projectego 02-10-2008 03:20 PM

[high]* projectego clicks install :)[/high]

iogames 02-10-2008 08:17 PM

Great work as always! ;)

Roflstilzchen 02-11-2008 01:40 AM

great addon, works excellent :up:

jdelasko 02-11-2008 06:13 PM

Installed and working, except the youtube BBcode doesn't seem to have been installed.

Edit: Nevermind.........added my own code

Sandy-XXX 02-11-2008 08:13 PM

Its nice but i dont have PHP 5 :(

BadgerDog 02-12-2008 11:37 AM

Thanks ... :)

Installed for private testing before releasing to membership... :up:

Question: How do you restrict access to this page, so usergroups lile "guests" can't use it?

I see how the two options work under Usergroups, but now how access is controlled?

Thanks... nice work....

Regards,
Badger

Andrew Green 02-12-2008 12:45 PM

Access isn't really controlled, however if the goal is to stop guests you can do this for now:

On Line 40 is this:
Code:

$userid = $vbulletin->userinfo['userid'];
and below it add:
Code:

if(! $userid) print_no_permissions();
I'll add a "Can view" permission setting to both versions in the next little while.

Mecho 02-12-2008 01:17 PM

sorry i dont get one thing :

we should/can add videos manually ?
or
we just set some keywords and it will show all the videos that were using that keywords ?
or
both ?

thanks

Andrew Green 02-12-2008 01:26 PM

You can browse the standard feeds. "Most popular", "most viewed", etc.

You can browse by category.

And you can search, also by category.

You can't upload videos, it pulls everything straight from youtube, so anything that is there that allows embedding should be available to your site. The browsing / searching functions will work pretty much the same as on youtube.com, it uses their search engine.

GuaRRand 02-12-2008 01:39 PM

omg m8, this owns!
Casino and This are my two favorite addons/products!

BadgerDog 02-12-2008 10:47 PM

Questions....

1. If you add the same video twice to a Playlist, does it recognize that and overwrite the previous entry, or do you end up with duplicate entries?

2. I notice when you select a video poster's name, it presents a list of all videos by that YouTube poster. However, when there's more than one page and you select page 2 of the poster's video list, it goes to "Most Recent Videos" page?

Thanks... :)

Regards,
Badger

Andrew Green 02-13-2008 02:00 AM

Quote:

Originally Posted by BadgerDog (Post 1441817)
Questions....

1. If you add the same video twice to a Playlist, does it recognize that and overwrite the previous entry, or do you end up with duplicate entries?

Shouldn't, it checks for duplicates based on the video ID. So if it was the same video uploaded twice with different ID's obviously it would go through, but the same ID should only go in once.

Quote:

2. I notice when you select a video poster's name, it presents a list of all videos by that YouTube poster. However, when there's more than one page and you select page 2 of the poster's video list, it goes to "Most Recent Videos" page?
I'll have a look into that in the next day or two, I've had a few suggestions I need to implement as well.

hilfe-forum 02-13-2008 09:06 AM

first: Great work!!!!
Q:
How can i ad a "No Video fund to search: [Keyword]" Message?
Only a blank site makes my User confused

A: ? :D

Powlo 02-16-2008 12:32 AM

Ive installed as per 'read me' but when i navigate to yt.php i get a blank white page. What could the reason for this be?

Andrew Green 02-16-2008 01:32 AM

Quote:

Originally Posted by hilfe-forum (Post 1442051)
first: Great work!!!!
Q:
How can i ad a "No Video fund to search: [Keyword]" Message?
Only a blank site makes my User confused

A: ? :D

I'll add one, got a few other additions as well, should be up fairly soon.

Quote:

Originally Posted by Powlo (Post 1444156)
Ive installed as per 'read me' but when i navigate to yt.php i get a blank white page. What could the reason for this be?

Upload the file again, make sure it made it in tact, ensure that the templates are there as well, you should have a new group called "youtube"

Powlo 02-16-2008 03:52 PM

There only appears to be two files to upload; yt.php & bitfield_youtubint.xml and also product-youtubint.xml to import. It seems a little incomplete, is everything ok with the download?

seangworld 02-17-2008 07:51 AM

3.7?

hilfe-forum 02-17-2008 08:07 AM

Quote:

Originally Posted by seangworld (Post 1444993)
3.7?

jup
http://musik.hilfe-forum.eu/yt.php

;)

SuperTaz 02-17-2008 08:36 AM

I'd like to use this mod, but I have php 4.4.4. So much for that.

CremeEgg 02-17-2008 10:22 AM

What can I change in the navbar template link to this so that it will work from the vBa CMPS page as well as the forum home?

S7rik3R 02-17-2008 11:07 AM

Quote:

Originally Posted by double_d (Post 1439810)
i would like to know the other you were using S7rik3R
does it automatically put videos in each catagory i make
or do i have to do this
it looks very good
but not exactly sure i want to install just yet

daniel d

For me I had install the vbtube (Lite) version but again that scripts seems to have lots of problems.

Here's the link : https://vborg.vbsupport.ru/showthread.php?t=168664

Cerbero1000 02-17-2008 11:09 AM

When I try to upload the product, vbulletin says:

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)

Andrew Green 02-17-2008 04:34 PM

Quote:

Originally Posted by Cerbero1000 (Post 1445087)
When I try to upload the product, vbulletin says:

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)


Yup, that it does. It uses functions that weren't introduced until php 5. If there is enough interest I could get a version working with php 4, but for now, you need PHP5.

hilfe-forum 02-17-2008 06:14 PM

The More Related Videos
on this Site:
http://vbgaming.org/forum/yt.php?v=4dneLQY6ZVk

Links to:
http://vbgaming.org/forum/yt.php?v=&get=related

;)

Andrew Green 02-17-2008 06:30 PM

Quote:

Originally Posted by hilfe-forum (Post 1445378)

typo in template, fixed now.

SBlueman 02-17-2008 06:49 PM

Quote:

Originally Posted by itzxmikee (Post 1439829)
I get this message when trying to import the file in vb

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)

Quote:

Originally Posted by Sandy-XXX (Post 1441003)
Its nice but i dont have PHP 5 :(

Quote:

Originally Posted by Warden-B- (Post 1445010)
I'd like to use this mod, but I have php 4.4.4. So much for that.

Quote:

Originally Posted by Cerbero1000 (Post 1445087)
When I try to upload the product, vbulletin says:

The following dependencies were not met:

1. This product is not compatible with version 4.3.11 of PHP. (Compatible starting with 5)

I'm in the same boat.....I'd love to use it but the site's not running on PHP 5.....:down::(

SuperTaz 02-18-2008 02:05 AM

I think php 4 is the one that is used the most so far.

hilfe-forum 02-18-2008 04:21 AM

how is the problem? Change to a new Hoster with PHP 5 if you want to use it

SBlueman 02-18-2008 06:30 AM

Change my host for one modification.....yeah.....follow that logic people....

hilfe-forum 02-18-2008 08:31 AM

Quote:

Originally Posted by SBlueman (Post 1445756)
Change my host for one modification.....yeah.....follow that logic people....

Fact: You can?t buy a Ferrari for $ 10.-
(are you writing to Ferrari about this? No? Why not?)

Fact: You can?t order Pizza at McDonalds.
(are you writing to McDonalds about this? No? Why not?)

Fact: You can?t use this Hack with PHP 4.
(are you writing here about this? Yes?? Why?)

Were is the Problem?
If u realy want to use the hack upgrade PHP.


All times are GMT. The time now is 04:18 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.01255 seconds
  • Memory Usage 1,827KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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