vb.org Archive

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

Romamo 07-23-2013 05:08 AM

If you have lost video thumbnails try this patch for 1.3.0.
Edit class_dm_video.php
PHP Code:

    function pre_save($doquery true)
    {
        
$this->thumbnail_save();

    function 
thumbnail_save()
    {
        require_once(
DIR '/includes/videoserviceapi/class_' strtolower($this->fetch_field('videoservice')) . '.php');
        
$classname "vB_VideoSharingService_".$this->fetch_field('videoservice');

        
$obj =& new $classname($this->registry);
        if (
$obj->verify_service($this->fetch_field('videourl')))
        {
            if (
$obj->prepare_data())
            {
                if (
$obj->fetch_thumbnailpath())
                {
                    
$obj->file_save_thumbnail();
                }
            }
        }

    } 

Edit & save each video with lost thumbnail.

umut17 12-04-2013 03:28 PM

There is a problem...after the installation if i give an url..it says invalid url

blind-eddie 12-05-2013 04:26 AM

looks like youtube switched it up again.. at one point we had to use the URL from the Share button for vids to show... now you have to use the full URL from the address bar.

skubaman 04-04-2014 05:02 AM

Hi Guys, I recently had to move to a new server that only runs PHP 5.3.8, so I had to upgrade by VBulletin so it would be compatible.

The video-directory is appearing but with some errors. I think related to the header, so it's also not dropping cookies, I believe.

These are the errors:

Quote:

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/snow07/public_html/forum/includes/class_core.php on line 2552
Could this be related to the fact I am not yet running the DNS for my domain name on the new server? I have instead changed the locahost file on my machine during testing.

Thanks

skubaman 04-06-2014 03:43 AM

Hi, I was really hoping to get some help here. Anyone?

Thanks

viper357 04-06-2014 05:00 AM

Quote:

Originally Posted by skubaman (Post 2491757)
Hi, I was really hoping to get some help here. Anyone?

Thanks

Open your init.php file with an editor like notepad++, (make a backup of it first), then go to all of those line numbers in your message above and look for this "=&" and delete just the "&" on all of those lines, then save and re-upload the file.

skubaman 04-06-2014 07:19 PM

Quote:

Originally Posted by viper357 (Post 2491764)
Open your init.php file with an editor like notepad++, (make a backup of it first), then go to all of those line numbers in your message above and look for this "=&" and delete just the "&" on all of those lines, then save and re-upload the file.

Thanks. Do you know why this happens?

Anyway, I made the change to the first line 55 to see if it would skip over that error. It ended up skipping all of them and showing this new one. Nothing is working now.

Quote:

Parse error: syntax error, unexpected T_LNUMBER in /home/snow07/public_html/forum/includes/init.php on line 12
So I actually went back and uploaded the backup file just to see if would go back to original errors. No, it now skips all errors and just keeps showing the one above.

But line 12 is blank as you can see below. Not sure what to do?


Quote:

1 <?php
2 /*================================================= =====================*\
3 || ################################################## ################## ||
4 || # vBulletin 3.8.7 Patch Level 4 - Licence Number VBFF7971A0
5 || # ---------------------------------------------------------------- # ||
6 || # Copyright ?2000-2014 vBulletin Solutions, Inc. All Rights Reserved. ||
7 || # This file may not be redistributed in whole or significant part. # ||
8 || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
9 || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
10 || ################################################## ################## ||
11 \*================================================ ======================*/
12
13 if (!defined('VB_AREA') AND !defined('THIS_SCRIPT'))
14 {
15 echo 'VB_AREA and THIS_SCRIPT must be defined to continue';
16 exit;
17 }
Please help.

Thanks

viper357 04-07-2014 07:11 AM

Not sure what that error means, sorry, when I changed all of the "=&" in my file it solved my problem for me, it's been working fine ever since.

skubaman 04-07-2014 03:55 PM

Quote:

Originally Posted by viper357 (Post 2491900)
Not sure what that error means, sorry, when I changed all of the "=&" in my file it solved my problem for me, it's been working fine ever since.

Seems to have been the stupid BBedit, which in general is a great editor.
Thanks

joeychgo 04-11-2014 06:55 AM

Quote:

Originally Posted by Romamo (Post 2434900)
If you have lost video thumbnails try this patch for 1.3.0.
Edit class_dm_video.php
PHP Code:

    function pre_save($doquery true)
    {
        
$this->thumbnail_save();

    function 
thumbnail_save()
    {
        require_once(
DIR '/includes/videoserviceapi/class_' strtolower($this->fetch_field('videoservice')) . '.php');
        
$classname "vB_VideoSharingService_".$this->fetch_field('videoservice');

        
$obj =& new $classname($this->registry);
        if (
$obj->verify_service($this->fetch_field('videourl')))
        {
            if (
$obj->prepare_data())
            {
                if (
$obj->fetch_thumbnailpath())
                {
                    
$obj->file_save_thumbnail();
                }
            }
        }

    } 

Edit & save each video with lost thumbnail.




Anyone have better instructions then this?


All times are GMT. The time now is 05:02 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.05601 seconds
  • Memory Usage 1,776KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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