Quote:
Originally Posted by tbworld
Can you assemble it in a module that I can experiment with, so I do not have to recreate templates, plugins etc? I can look at this today, it is my last day off before I am back on my busy work schedule.
|
Here is my plugin code
PHP Code:
global $vbulletin, $post, $thread;
function video_api_thumb($vid){
$id = $vid;
$thumbnail_720_url='https://api.dailymotion.com/video/'.$id.'?fields=thumbnail_720_url';
$json_thumbnail = file_get_contents($thumbnail_720_url);
$get_thumbnail = json_decode($json_thumbnail, TRUE);
$thumb=$get_thumbnail['thumbnail_720_url'];
}
$thumb_url = video_api_thumb($v_code);
vB_Template::preRegister('bbcode_video',array('video_thumb_url' => $thumb_url));
I have used hook location "global_start"
I wanted to get video id from thread and parse to this plugin function so i can get video_thumbnail, video_title, video_length and other stuff from dailymotion using their api
--------------- Added [DATE]1398494509[/DATE] at [TIME]1398494509[/TIME] ---------------
Quote:
Originally Posted by Zachery
Enough that it would overwhelm us.
|
If critique of a loyal client who have referred many other clients to your product, and invested much of its time to help the community can "overwhelm"you, than i think i should leave such a community