Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 05-30-2009, 07:22 AM
l7azat l7azat is offline
 
Join Date: May 2009
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default how to add hoster to Video-Directory Remixed mod

hello all
i wanna to add a hoster to Video-Directory Remixed mod ,
Video-Directory Remixed - vBulletin.org Forum

like google video ... so how to make that ?

--------------- Added [DATE]1243727723[/DATE] at [TIME]1243727723[/TIME] ---------------

??????????
no reply
Reply With Quote
  #2  
Old 08-05-2009, 04:38 PM
thepowerofnow thepowerofnow is offline
 
Join Date: Mar 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah, anybody know how ?
Reply With Quote
  #3  
Old 08-06-2009, 07:08 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have questions/problems with a modification or style, then please post in the thread (or support forum/board) about that modification/style. Best chance to receive a reply from either the author or another member using the same modification/style.
Reply With Quote
  #4  
Old 04-11-2011, 04:13 AM
asking asking is offline
 
Join Date: Aug 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please where i can find facebook xml video hoster. Please for help?
Reply With Quote
  #5  
Old 04-13-2011, 07:01 AM
asking asking is offline
 
Join Date: Aug 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please someone reply. Just tell me if its possible or not?
I tried to make one but i dont know what to put in some of the portion of the files

Code:
<?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>
Reply With Quote
  #6  
Old 05-18-2011, 11:24 AM
asking asking is offline
 
Join Date: Aug 2008
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please someone can help us. How to make for facebook video.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03969 seconds
  • Memory Usage 2,212KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete