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)

LPH2004 10-13-2007 09:08 PM

Quote:

Originally Posted by efc9 (Post 1359232)
replace <insert search term> with your search term and that'll show the search instead of the featured videos on the frontpage.

Perfect !

Now when the page loads, only the Tablet PC and UMPC videos show immediately.

http://www.whatisnew.com/vBTube.php

Now I just need to figure out the menu on the left .. to add preselect search terms....

zuMzuM 10-13-2007 09:12 PM

i have get this error

Code:

Warning: file() [function.file]: URL file-access is disabled in the server configuration in /vBTube/includes/view.php on line 12

Warning: file(http://www.youtube.com/watch?v=E4VMntSUskg) [function.file]: failed to open stream: no suitable wrapper could be found in /vBTube/includes/view.php on line 12

Warning: implode() [function.implode]: Bad arguments. in /vBTube/includes/view.php on line 13


ogameclub 10-13-2007 09:17 PM

Bad searching, e.g: "fikrimin"

JadedSouls 10-13-2007 09:27 PM

So how is the problem with the bullets fixed when using FireFox?

ragtek 10-13-2007 09:28 PM

hi
for next version also delete define('NO_REGISTER_GLOBALS', 1); out from the php
it is not needed its for vb<3

LPH2004 10-13-2007 09:39 PM

This is a kludge but anyone wanting to change the categories in the left menu can go to the template for vBTube and modify.

For example, I added the following as menu options:
Code:

<img src="vBTube/img/12.gif" align="absmiddle">&nbsp;<a href="vBTube.php?do=search&search=UMPC">UMPC Videos</a>
Others may be added, too.

LPH2004 10-13-2007 10:01 PM

Is there a way to sort the videos?

such as by "sort=video_date_uploaded"

efc9 10-13-2007 10:22 PM

Quote:

Originally Posted by zuMzuM (Post 1359254)
i have get this error

Code:

Warning: file() [function.file]: URL file-access is disabled in the server configuration in /vBTube/includes/view.php on line 12

Warning: file(http://www.youtube.com/watch?v=E4VMntSUskg) [function.file]: failed to open stream: no suitable wrapper could be found in /vBTube/includes/view.php on line 12

Warning: implode() [function.implode]: Bad arguments. in /vBTube/includes/view.php on line 13


This is due to a setting on your server..

You can fix this by removing the following from vBTube/includes/view.php:
Code:

$videopage = file("http://www.youtube.com/watch?v=".$vidid);
$videopage = implode("", $videopage);
preg_match('/\/watch_fullscreen\?video_id=.*?&t=(.*?)"/', $videopage, $match);
$downloadurl = 'http://youtube.com/get_video.php?video_id='.$vidid.'&t='.$match[1];

only thing is the "download this video" link won't work for you right now, I've been looking at better ways of handling that anyways..

LPH2004 10-13-2007 10:42 PM

To remove the double // in the Video URL

This is the original code in vBTube_view

Code:

value="$vboptions[homeurl]/$vidurl"
and this is what it should be: (remove the /)

Code:

value="$vboptions[homeurl]$vidurl"

efc9 10-13-2007 10:48 PM

Quote:

Originally Posted by LPH2004 (Post 1359301)
To remove the double // in the Video URL

This is the original code in vBTube_view

Code:

value="$vboptions[homeurl]/$vidurl"
and this is what it should be: (remove the /)

Code:

value="$vboptions[homeurl]$vidurl"

Good Spot, although I actually handled the fix slightly differently it was using a Server Request URI to get the url but it really didn't need too as the $vidid info was also available. think I was getting sleepy when I did that bit *lol*


All times are GMT. The time now is 01:45 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.01268 seconds
  • Memory Usage 1,745KB
  • 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
  • (8)bbcode_code_printable
  • (3)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