vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - vBTube LE 2.1.1 Media Library UPDATE vBulletin 4.2.x (https://vborg.vbsupport.ru/showthread.php?t=279864)

mocua 08-21-2012 07:08 AM

If use VBSEO for this version, please open
VBSEOCP >> Custom Rewrite Rules >> add below

Code:

'^media\.php\?do=cat&id=(.*)&o=(.*)&page=(.*)' => 'category/$1-$3-$2.html'
'^media\.php\?do=myfavs&u=(.*)&page=(.*)' => 'my-favorites/$2/$1.html'
'^media\.php\?do=mymedia&u=(.*)&page=(.*)' => 'my-media/$2/$1.html'

'^media\.php\?do=list&ctype=2' => 'photo-categories.html'
'^media\.php\?do=list&ctype=3' => 'adult-categories.html'

'^media\.php\?do=topvideos&page=(.*)' => 'top-videos-$1.html'
'^media\.php\?do=topphotos&page=(.*)' => 'top-photos-$1.html'
'^media\.php\?do=most_viewed&page=(.*)' => 'most-viewed-$1.html'
'^media\.php\?do=most_voted&page=(.*)' => 'most-voted-$1.html'
'^media\.php\?do=topvideos' => 'top-videos.html'
'^media\.php\?do=topphotos' => 'top-photos.html'
'^media\.php\?do=most_viewed' => 'most-viewed.html'
'^media\.php\?do=most_voted' => 'most-voted.html'
'^media\.php\?do=myfavs' => 'my-favorites.html'
'^media\.php\?do=mymedia' => 'my-media.html'
'^media\.php\?do=list' => 'video-categories.html'
'^youtube_browser\.php' => 'youtube-browser.html'
'^media\.php' => 'media.html'
'^vbtube_show\.php\?tubeid=(\d+)&sti=(.+)' => 'media/$1/$2.html'


mocua 08-21-2012 12:57 PM

1 Attachment(s)
If you want the URL that appears in the English character mode (For countries with individual characters), please do the following (I applied for Vietnam)

Please copy the file attached below, to override the installation directory of your forums ROOT

vbtube_functions.php

Note:
PHP Code:

$translite_simbols = array ( 
        
'#(?|?|ạ|ả|?|?|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)#'
        
'#(?|?|ẹ|ẻ|ẽ|?|ề|ế|ệ|ể|ễ)#'
        
'#(?|?|ị|ỉ|ĩ)#'
        
'#(?|?|ọ|ỏ|?|?|ồ|ố|ộ|ổ|ỗ|ơ|ờ|ớ|ợ|ở|ỡ)#'
        
'#(?|?|ụ|ủ|ũ|ư|ừ|ứ|ự|ử|ữ)#'
        
'#(ỳ|?|ỵ|ỷ|ỹ)#'
        
'#(đ)#'
        
'#(?|?|Ạ|Ả|?|?|Ầ|Ấ|Ậ|Ẩ|Ẫ|Ă|Ằ|Ắ|Ặ|Ẳ|Ẵ)#'
        
'#(?|?|Ẹ|Ẻ|Ẽ|?|Ề|Ế|Ệ|Ể|Ễ)#'
        
'#(?|?|Ị|Ỉ|Ĩ)#'
        
'#(?|?|Ọ|Ỏ|?|?|Ồ|Ố|Ộ|Ổ|Ỗ|Ơ|Ờ|Ớ|Ợ|Ở|Ỡ)#'
        
'#(?|?|Ụ|Ủ|Ũ|Ư|Ừ|Ứ|Ự|Ử|Ữ)#'
        
'#(Ỳ|?|Ỵ|Ỷ|Ỹ)#'
        
'#(Đ)#'
        
"/[^a-zA-Z0-9\-\_]/"
     ) ; 
        
$replace = array ( 
        
'a'
        
'e'
        
'i'
        
'o'
        
'u'
        
'y'
        
'd'
        
'A'
        
'E'
        
'I'
        
'O'
        
'U'
        
'Y'
        
'D'
        
'-'
     ) ; 
      
$title preg_replace($translite_simbols$replace$title); 
      $
$title preg_replace('/(-)+/''-'$title); 


mocua 08-22-2012 08:00 AM

Fix share link SEO(share on facebook, ....) for vBTube LE 2.1
Open:
vbtube_functions.php
Find
Code:

$link = $vbulletin->options['bburl']."/vbtube_show.php?".$vbulletin->session->vars['sessionurl']."tubeid=$id&sti=$seoreg2"
Chang to your share link
ex: my share link of my forum:
PHP Code:

$link $vbulletin->options['bburl']."/media/".$vbulletin->session->vars['sessionurl']."$id/$seoreg2.html" 

Example:
Code:

/vbtube_show.php?tubeid=82&sti=Nhung-tai-nan-khong-the-nhin-cuoi-
change to:
Code:

/media/82/Nhung-tai-nan-khong-the-nhin-cuoi-.html

metalguy639 08-31-2012 02:31 PM

After I installed this for a client I get this database error when I click on the link for the forum:

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

                SELECT        tubeid, title, username, userid, vidlang, link1img, thumb_type, aboutme, tube, mediatype,site,
                                views, votes, rates, rating, duration, keywords, reviewid, active, joindate
                FROM vbvbtube_tubes
                WHERE active=1 AND tube='' ORDER BY joindate DESC LIMIT 0,12;

MySQL Error  : Unknown column 'thumb_type' in 'field list'
Error Number  : 1054
Request Date  : Friday, August 31st 2012 @ 10:27:41 AM
Error Date    : Friday, August 31st 2012 @ 10:27:41 AM
Script        : http://xxxxx.com/forums/vbtube.php
Referrer      : http://xxxxx.com/forums/vbplaza.php
IP Address    : xx.xx.xx.xx
Username      : DamienDarwick
Classname    : vB_Database
MySQL Version : 5.1.63-cll

The only thing that works in the admincp is the settings link. I get this when I click the other links:

Code:

Database error in vBulletin 4.2.0:

Invalid SQL:

        SELECT categoryid, deleted
        FROM vbvbtube_categories
        WHERE deleted = 1
        LIMIT 1;

MySQL Error  : Unknown column 'deleted' in 'field list'
Error Number  : 1054
Request Date  : Friday, August 31st 2012 @ 10:29:40 AM
Error Date    : Friday, August 31st 2012 @ 10:29:40 AM
Script        : http://xxxx.com/forums/vbtube_admin.php?do=showcat_v
Referrer      : http://xxxx.com/forums/admincp/index.php?do=savenavprefs&nojs=0&navprefs=vbulletin_0,vbulletin_1,vbulletin_2,vbulletin_3,vbulletin_4,vbulletin_5,vbulletin_6,vbulletin_7,vbulletin_8,vbulletin_9,vbulletin_10,vbulletin_11,vbulletin_12,vbulletin_13,vbulletin_14,vbulletin_15,vbulletin_16,vbulletin_17,vbulletin_18,vbulletin_19,vbulletin_20,vbulletin_21,vbulletin_22,vbulletin_23,vbulletin_24,vbulletin_25,vbulletin_26,vbulletin_27,vbulletin_28,vbulletin_29,vbulletin_30,vbulletin_31,vbulletin_32,vbulletin_33,vbulletin_34,arcade_0,vbtube_0,vbbuxvbplaza_0,vbbuxvbplaza_1,vbbuxvbplaza_2,vbbuxvbplaza_3,vbbuxvbplaza_4,vbbuxvbplaza_5,vbbuxvbplaza_6,vbbuxvbplaza_7,vbbuxvbplaza_8,vbbuxvbplaza_9,vbbuxvbplaza_10,credits_0,rbs_0
IP Address    : xx.xx.xx.xx
Username      : DamienDarwick
Classname    : vB_Database
MySQL Version : 5.1.63-cll


Easy5s.net 09-02-2012 04:50 AM

I post the video successfully but access http://domain.com/vbtube.php as follows:

Quote:

Warning: require_once(vbtube/includes/sites/1.php): failed to open stream: No such file or directory in [path]\vbtube\includes\vbtube_autotube.php on line 41
Fatal error: require_once(): Failed opening required 'vbtube/includes/sites/1.php' (include_path='c:\server\bin\php52\pear') in E:\server\htdocs\testvb4\vbtube\includes\vbtube_au totube.php on line 41

Allcoll 09-05-2012 07:26 PM

hi,

it works good but there is no link in navbar.
how can we add vbtube link to the navbar?

Vick98 09-10-2012 04:38 AM

Quote:

Originally Posted by Allcoll (Post 2362974)
hi,

it works good but there is no link in navbar.
how can we add vbtube link to the navbar?

Log in to your AdminCP and under Settings>Navigation Manger change the tab name and order.

Vick98 09-10-2012 04:39 AM

Why am I getting this message when trying uploading videos?

'Please upload only Image Type Files! (jpg, gif, png)'

Vick98 09-10-2012 06:50 PM

^^^ Any Idea?

Athana 09-11-2012 03:27 AM

I am getting this trim error:

Quote:

Warning: trim() expects parameter 1 to be string, array given in [path]/vbtube_add.php on line 140
What can it be?


All times are GMT. The time now is 09:12 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.01638 seconds
  • Memory Usage 1,769KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)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