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)

MagicThemeParks 03-15-2011 01:01 AM

Quote:

Originally Posted by mariocaz (Post 1816435)
Hi Jaxel.

I just installed your great mod but I have a very big problem, when I want to enter to the videos page, appears this error:

Fatal error: Cannot redeclare construct_category_url() in /home/allreef/public_html/inicio/includes/functions_vbglossar.php on line 945

Here you can see it:

www.all-reefs.com/inicio/video.php

But I see that the error appears to the users that I am giving permissions in the user group permissions panel in the ACP

And here is my file attached, please help me my friend.:(

I will be waiting your prompt answer!!

Mario

Quote:

Originally Posted by romolus (Post 1816475)
yes i confirmed. I have the same problem:

Fatal error: Cannot redeclare construct_category_url() (previously declared in /var/www/web3074/web/includes/functions_videodirectory.php:190) in /var/www/web3074/web/includes/functions_vbglossar.php on line 963

Quote:

Originally Posted by romolus (Post 1816477)
Oh oh !!

te problem is coming from the "lexikon" - vbglossary modul. make the crosslinking enabled to NO.

now the video modul is activ

Using cross-linking in vBglossary is causing an issue when adding a new video (and starting a new thread). Anyone found a fix for this yet?

MagicThemeParks 03-15-2011 02:01 AM

Great! Found the answer! :)

You have to edit the php files for both includes/functions_videodirectory.php and then the video.php file to ensure that they reference the 'new' name correctly. :up:


Quote:

Originally Posted by biocyberman (Post 1791897)
Fatal error: Cannot redeclare construct_category_url() (previously declared in /includes/functions_videodirectory.php:190) in /includes/functions_vbglossar.php on line 963

It conflicts with vbglossar. What's the fix?

Quote:

Originally Posted by biocyberman (Post 1791901)
I just did quick fix by changing all construct_category_url ocurrences to different name


haytham 03-21-2011 12:23 AM

Hi,
I am getting these errors at the top of the directory:

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

includes/init.php on line 107

includes/init.php on line 111

includes/init.php on line 119

includes/init.php on line 130

includes/init.php on line 134

includes/init.php on line 142

includes/init.php on line 211

includes/init.php on line 389

includes/class_core.php on line 2552

I got the same messages for the arcade but it was solved this way:

https://vborg.vbsupport.ru/showpost....postcount=5715

Can some one please help me correct this problem in the video directory? Thanks.

haytham 03-21-2011 12:26 AM

Ok. Did the same thing I did with arcade and now the warning messages are gone. So happy.

MR.BOSS 03-31-2011 05:23 PM

Hello,

Thank you for this mod, i have an issue, Members are not able to comment in Arabic characters. Is there a way to fix that?

Thanks

asking 04-11-2011 03:56 AM

Please where i can find facebook xml video hoster. Please for help?

Here is the sample facebook video link http://www.facebook.com/v/110451499036058

asking 04-12-2011 11:09 AM

Please someone knows about. I tried to make my xml, but its not working kindly please check and verify?

Quote:

<?xml version="1.0" encoding="ISO-8859-1"?>

<videohoster varname="Facebook" classname="facebook" active="1">
<title>Facebook</title>
<regex />
<author>Test by Me</author>
<version>1.2.4</version>
<class_file><![CDATA[<?php
/**
* Class to fetch and handle Facebook
*
*/
class vB_VideoSharingService_Facebook extends vB_VideoSharingService
{
var $hostername = 'Facebook';

function vB_VideoSharingService_Facebook(&$registry)
{
parent::vB_VideoSharingService($registry);

$this->settings =& $this->registry->videohosters[$this->hostername]['settings'];
}

function verify_service(&$url)
{
$matches = array();

$this->url = $url;

if (preg_match('/http://www\.facebook\.com\/\?v([\w]+)&*[\w;=]*]/i', $url, $matches))
{
$this->video_id = $matches[1];
return true;
}

return false;
}

function prepare_data()
{
if (!$this->verify_videoid())
{
return false;
}

//Request Video Data
$vurl = new vB_vURL($this->registry);
$vurl->set_option(VURL_URL, 'idontknowwhattoputhere' . $this->video_id);
$vurl->set_option(VURL_USERAGENT, 'vBulletin/' . FILE_VERSION . ' | Video Directory');
$vurl->set_option(VURL_RETURNTRANSFER, 1);
$vurl->set_option(VURL_TIMEOUT, 30);
$result = $vurl->exec();

if ($vurl->fetch_error())
{
$this->set_error(VSS_ERROR_CONNECTION);
return false;
}

require_once(DIR . '/includes/class_xml.php');

$xmlobj = new vB_XML_Parser($result);

if(!$arr = $xmlobj->parse())
{
$this->set_error(VSS_ERROR_RESPONSE);
return false;
}

preg_match('/[\w+%.-]*'.$this->video_id.'([\w]*)[\w+%.-]*/i', $arr['ROW']['embed'], $image);

$this->thumbnailpath = 'idontknowwhattoputhere';
$this->videodescription = urldecode($arr['ROW']['description']);
$this->videotitle = urldecode($arr['ROW']['title']);
$this->taglist = urldecode($arr['ROW']['title']);
$this->timelength = $arr['ROW']['runtime'];

return true;
}

function file_save_thumbnail()
{
if (!$this->fetch_thumbnailpath() OR !$this->fetch_videoid())
{
return false;
}

require_once(DIR . '/includes/class_vurl.php');
$vurl = new vB_vURL($this->registry);
$vurl->set_option(VURL_URL, $this->fetch_thumbnailpath());
$vurl->set_option(VURL_RETURNTRANSFER, true);
$result = $vurl->exec();

$fp = fopen(DIR . '/' . $this->registry->options['videodirectory_thumbnaildir'] . '/' . $this->hostername . '/' . $this->fetch_videoid() . '.jpg', 'wb');
fwrite($fp, $result);
fclose($fp);
}

function fetch_embedcode($videoid = '', $autoplay = 1, $fullscreen = 1, $related = 0, $stats = 0)
{
$videoid = $videoid ? $videoid : $this->video_id;

if ($fullscreen == 1) { $fullscreen = 'true'; } else { $fullscreen = 'false'; }
if ($autoplay == 1) { $autoplay = 'true'; } else { $autoplay = 'false'; }

return '<embed src="http://www.facebook.com/v/' . $videoid . '" autoplay="' . $autoplay . '" type="application/x-shockwave-flash" allowfullscreen="' . $fullscreen . '" width="640" height="480"></embed>';
}

function fetch_videobbcode($vid, $videoid = '', $videotitle = '')
{
$videoid = $videoid ? $videoid : $this->video_id;
$videotitle = $videotitle ? $videotitle : $this->video_title;

if ($this->registry->options['videodirectory_bbcode'])
{
return '[video=' . $videotitle . ']' . $vid . '[/video]';
}
else
{
return '[' . $this->hostername . '=' . $videotitle . ']' . $videoid . '[/' . $this->hostername . ']';
}
}

function fetch_videourl($videoid = '')
{
$videoid = $videoid ? $videoid : $this->video_id;

return 'http://www.facebook.com/v/' . $videoid;
}
}

?>]]></class_file>
</videohoster>

asking 04-13-2011 12:00 PM

I am waiting 24 hours before replying to this post to avoid spam. But it seems i am spamming coz nobody answers my post.

3beidat 04-13-2011 11:03 PM

Hello, today when I tried to insert megavideo to video-directory i get this error
(The response of the video-server can't be read) !!!
how I can fix it?

and another question, can anybody made a xml file for duckload.com streaming?

Carlos X 04-15-2011 01:29 AM

I recently upgraded to vb4, so this is deleted.


All times are GMT. The time now is 02:57 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.03011 seconds
  • Memory Usage 1,762KB
  • 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_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