vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vBTube (https://vborg.vbsupport.ru/showthread.php?t=160150)

TheBlackPoet 10-17-2007 03:08 PM

Quote:

Originally Posted by efc9 (Post 1359232)
in vBTube.php find:
Code:

if ((!$_GET['do'] || $_GET['do'] == ''))
{
        $_GET['do'] = 'featured';
}

and change to:
Code:

if ((!$_GET['do'] || $_GET['do'] == ''))
{
                $search='<insert search term>';
        $_GET['do'] = 'search';
}

replace <insert search term> with your search term and that'll show the search instead of the featured videos on the frontpage.

damn!! thanks.... i was wondering about this... much appreciated

jasculs 10-17-2007 03:19 PM

Is there anyway to have the vBTube.php file be only accessible to certain usergroups...How would I modify the file to do so. Thanks

lasto 10-17-2007 03:41 PM

this is deffo gonna win HOTM - well done m8

jasculs 10-17-2007 03:51 PM

Also does anyone know how I can make a direct link to a playlist?

efc9 10-17-2007 04:07 PM

Quote:

Originally Posted by jasculs (Post 1362380)
Is there anyway to have the vBTube.php file be only accessible to certain usergroups...How would I modify the file to do so. Thanks

Usergroup permissions will be a part of the next version, for now you can edit the vBTube.php file and add:

find:
Code:

require_once('./global.php');
add after:
Code:

if (is_member_of($vbulletin->userinfo, X, Y, Z))
{
        print_no_permission();
}

Replace the X,Y,Z with the usergroupids you don't wish to have access.

efc9 10-17-2007 04:08 PM

Quote:

Originally Posted by lasto (Post 1362391)
this is deffo gonna win HOTM - well done m8

Thanks :) Here's hoping.. Would be really cool to get MOTM and give me that push to keep developing the script to greater heights

efc9 10-17-2007 04:09 PM

Quote:

Originally Posted by jasculs (Post 1362397)
Also does anyone know how I can make a direct link to a playlist?

Create a link to:
Code:

vBTube.php?do=playlist&pid=<insert playlistid>

basketmen 10-17-2007 04:17 PM

Quote:

Originally Posted by Tulsa (Post 1362268)
For today anyway, as I have no idea how often google may change it, but change the IP address in vBTube_view template to 74.125.12.25. It worked this morning but the IP provided in the template worked yesterday and not today.

hi tulsa how do you found that ip address of youtube?


i try here http://www.domainwhitepages.com/ to search youtube ip address but i cant find 74.125.12.25, how do you find it??

Tulsa 10-17-2007 04:22 PM

It's a highly technical question but I'll try and answer it...

I went to youtube, loaded up a video and saw at the bottom left side of my browser FF2.x it say "loading from xx.xx.xx.xx" and tried it out..


Okay, maybe not so technical.. :D

MR.BOSS 10-17-2007 04:24 PM

hey efc9, u made a great hack.

after uploading everything. and after adding links to navbar, i just get a white black page. any hint.

please help


All times are GMT. The time now is 05:50 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.01671 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_code_printable
  • (5)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