The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Video-Directory Details »» | |||||||||||||||||||||||||
What is this? This add on gives your users the possibility to collect their favourite videos from some video-webpages (supported at the moment: MyVideo, YouTube, Sevenload and Metacafe) and to provide them in the forum. The videos can be commented and rated. The Administrator has many possibilities of settings and can create video-categories and administrate the video-directory. List of features:
Do you want to enhance the video-directory, but some hooks are missing? Do you want to enhance the templates and you need some template-hooks? No Problem! Send a PM and the hooks will be integrated in the next version! Developer-Blog: Feel free to check out our Developer-Blog at vBPoint.org! Supporters / CoAuthors Show Your Support
|
Comments |
#602
|
|||
|
|||
Yes, but that was a few days ago!
|
#603
|
|||
|
|||
I said a WEEK a few days ago... a few days from now...
I'm waiting to figure out this ajax stuff before I release my new version. Does anyone know how this crap works? |
#604
|
||||
|
||||
Take your time Jaxel, I think that the new layout and the TAG CLOUD (Woo hoo! ) will be worth the wait.
You are taking Survivor's awesome mod to the next level my friend! :up: |
#605
|
||||
|
||||
Quote:
http://www.w3schools.com/Ajax/Default.Asp I don't know if this will be helpful or not but here you go |
#606
|
|||
|
|||
Can anyone add sub-categories feature to this???
|
#607
|
||||
|
||||
Jaxel Hooked it up already here in this thread. Here's the post.
https://vborg.vbsupport.ru/showpost....&postcount=560 when you go to manage categories in the AdminCP, you'll see a new column named Display Order. You would use that to create sub-categories. :up: |
#608
|
|||
|
|||
Okay... I'm having trouble getting some new data from the YouTube API... maybe someone can help me...
For adding new videos, I have two new fields
Code:
function prepare_data() { if (!$this->verify_videoid()) { return false; } //Request Video Data $vurl = new vB_vURL($this->registry); $vurl->set_option(VURL_URL, 'http://gdata.youtube.com/feeds/api/videos/' . $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; } if (isset($arr['yt:noembed'])) { $this->set_error(VSS_ERROR_NOEMBEDING); return false; } $this->thumbnailpath = $arr['media:group']['media:thumbnail'][0]['url']; $this->videodescription = $arr['media:group']['media:description']['value']; $this->videotitle = $arr['media:group']['media:title']['value']; $this->taglist = $arr['media:group']['media:keywords']['value']; $this->timelength = $arr['media:group']['yt:duration']['seconds']; return true; } Code:
function request_videoinfo() { if (!fetch_object('videourl').value) { return false; } YAHOO.util.Connect.asyncRequest("POST", "video.php?do=videoinfo", { success: handel_videoinfo, failure: vBulletin_AJAX_Error_Handler, timeout: 15000 }, SESSIONURL + 'securitytoken=' + SECURITYTOKEN + "&url=" + PHP.urlencode(fetch_object('videourl').value) + "&wysiwyg=" + vB_Editor[editor_id].wysiwyg_mode); fetch_object('videoajaxbutton').value = vbphrase['requesting_information_please_wait']; fetch_object('videoajaxbutton').disabled = true; return false; } function handel_videoinfo(ajax) { if (ajax.responseXML) { // check for error first var error = ajax.responseXML.getElementsByTagName('error'); if (error.length) { fetch_object('thumbnail').setAttribute('src', ''); fetch_object('thumbnail_border').style.display = 'none'; alert(error[0].firstChild.nodeValue); } else { try { var description = ajax.responseXML.getElementsByTagName('description')[0].firstChild.nodeValue; vB_Editor[editor_id].insert_text(description); } catch (e) { } try { var title = ajax.responseXML.getElementsByTagName('title')[0].firstChild.nodeValue; fetch_object('videotitle').value = title; } catch (e) { } try { var keywords = ajax.responseXML.getElementsByTagName('keywords')[0].firstChild.nodeValue; fetch_object('taglist').value = keywords; } catch (e) { } try { var duration = ajax.responseXML.getElementsByTagName('duration')[0].firstChild.nodeValue; fetch_object('timelength').value = duration; } catch (e) { } try { var videothumbnailpath = ajax.responseXML.getElementsByTagName('thumbnailpath')[0].firstChild.nodeValue; fetch_object('thumbnail').setAttribute('src', videothumbnailpath); fetch_object('thumbnail_border').style.display = ''; } catch (e) { } } } fetch_object('videoajaxbutton').value = vbphrase['request_videoinfo_from_service']; fetch_object('videoajaxbutton').disabled = false; } |
#609
|
|||
|
|||
ok here is a dumb question. how do I add categories?
|
#610
|
|||
|
|||
does anyone have this on CMPS?
|
#611
|
|||
|
|||
Works perfectly with CMPS.
Categories can be added via the admin. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|