The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
8WayRun.Com - Media Library Details »» | |||||||||||||||||||||||||||||||||||||||||
Don't forget to click INSTALL!
I'm an unemployed computer programmer... if you appreciate the work I have done on this mod, please don't hesitate in offering me a donation by clicking the "Support Developer" link to the right of this text. A donation of $50 or more automatically gives you the right to remove the copyright footer for this modification from a single forum. This is a new modification, spawning from the old VB 3.x Video Directory modifications. For all intents and purposes, both my old Video Directory Remixed mod, and Survivor's original Video Directory mod have been discontinued. Neither of us are maintaining these older versions, they will not receive any future updates and we will not be providing any support. This version has a new name because it has been completely rewritten from scratch and is not being built on Survivor's old code. Because of this, if you are upgrading to this new version, from the old version, be sure to read this entire post in order to understand the upgrade process. What is this mod? Simply put, this mod is a directory for media. It supports URL inputs, in order to extract meta data and directorize media into a simple and easy to understand library. Users can add their favorite media from a select few online distribution centers (such as Youtube or Vimeo) and categorize and tag them as they see fit. This mod offers rudimentary support for the hosting of local media. An administrator can upload a media to the /customVID/ (default) directory; then add the media to the library using the URL code of "local:filename". Media hosted locally will be displayed using JWPlayer, but will not provide meta data, so that kind of information will need to be entered manually. Demo: http://www.8wayrun.com/media.phpFeatures:
If you are upgrading from before version 1.1, please install that version first.
There is a conflict with this modification and some of Valter's VSA modifications that will prevent navbar permissions from being handled correctly. I don't know exactly who's fault it is; but I'm pretty sure there are no errors in my code that would be causing this problem. There is a work around for this however. Download Now
Show Your Support
|
17 благодарности(ей) от: | ||
8thos, Ahmet Turan, alhidaya, BlueCheri, hasidoo, InfoNirvana, Marcin_J_, Megaboost, misericorde, nacaruncr, owning_y0u, paulvev, RichieBoy67, romaszek, rootsxrocks, sodasusu |
Comments |
#1342
|
|||
|
|||
Your most welcome, although thanks should be given to the real author of this masterpiece; Jaxel.
|
#1343
|
|||
|
|||
A small problem still. If one inserts the BB code from the respective entry in a subject, this is translated to HTML. Thus it is no longer possible to edit a post. It would be better to install a BB Code, and the ads will be left to the parser. Thus, a contribution will be processed in spite of an embedded code.
|
#1344
|
|||
|
|||
Quote:
Jaxel, need your help for CMS Widget. |
#1345
|
|||
|
|||
Quote:
For the CMS widget just insert this into a php direct execution widget. Code:
global $vbulletin; require_once(DIR.'/media/media_functions_hrefs.php'); // %d $show_count = 5; $medias = $vbulletin->db->query_read(" SELECT media.*, media_service.* FROM " . TABLE_PREFIX . "media AS media LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID) ORDER BY media.dateline DESC LIMIT ".$show_count); $output = ' <style type="text/css"> .thumbnail img{ width: 90px; height: 70px; border: 1px solid #ccc; padding: 5px; margin: 5px; float: left; } .video_bit { min-height: 90px; } </style> '; while ($media = $vbulletin->db->fetch_array($medias)) { $media['thumbnail'] = $vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg"; $media['href'] = construct_href_details($media); extract($media); $title = substr($title,0,60); $mediabits .= sprintf('<div class="cms_widget_post_bit video_bit"><div class="thumbnail"><a href="%s"><img src="%s"></a></div><div class="cms_widget_post_header"><a href="%s">%s</a></div><div class="cms_widget_post_userinfo"><a href="member.php/u=%d">%s</a> On %s</div></div>',$href,$thumbnail,$href,$title,$userid,$username,date('F j, Y, g:i a',$dateline)); } $output .= $mediabits; add this to a new (php content type using template: " block html") forum block: Code:
global $vbulletin; require_once(DIR.'/media/media_functions_hrefs.php'); // %d $show_count = 13; $medias = $vbulletin->db->query_read(" SELECT media.*, media_service.* FROM " . TABLE_PREFIX . "media AS media LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID) ORDER BY media.dateline DESC LIMIT ".$show_count); $output = ' <style type="text/css"> .thumbnail img{ width: 135px; height: 90px; border: 1px solid #ccc; padding: 5px; margin: 5px; text-align: center; float: center; } .video_bit { text-align: center; min-height: 120px; } </style> '; while ($media = $vbulletin->db->fetch_array($medias)) { $media['thumbnail'] = $vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg"; $media['href'] = construct_href_details($media); extract($media); $title = substr($title,0,60); $mediabits .= sprintf('<div class="cms_widget_post_bit video_bit"><div class="thumbnail"><a href="%s"><img src="%s"></a></div><div class="cms_widget_post_header"><a href="%s">%s</a></div><div class="cms_widget_post_userinfo"><a href="member.php">%s</a> By %s</div></div>',$href,$thumbnail,$href,$title,$userid,$username,date('F j, Y, g:i a',$dateline)); } $output .= $mediabits; https://vborg.vbsupport.ru/showthread.php?t=244058 |
#1346
|
|||
|
|||
Thanks EquinoxWorld CMS widgetis now working fine.
The only problem I found is it showing incorrect URL of users. It shows: http://www.domain.com/member.php/u=0 Correct URL should be: http://www.domain.com/members/9542-Sehwag |
#1347
|
|||
|
|||
Quote:
|
#1348
|
|||
|
|||
Quote:
It exactly shows: Code:
http://www.domain.com/member.php/u=0 |
#1349
|
|||
|
|||
Quote:
|
#1350
|
|||
|
|||
CMS Widget currently on: http://www.8wayrun.com/
Code:
require_once(DIR.'/media/media_functions_hrefs.php'); $medias = vB::$vbulletin->db->query_read(" SELECT media.*, media_service.* FROM " . TABLE_PREFIX . "media AS media LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID) ORDER BY media.dateline DESC LIMIT 3 "); while ($media = vB::$vbulletin->db->fetch_array($medias)) { if ($media['length'] == 0) { $media['length'] = "???"; } else { $duration = $media['length']; $minutes = floor($duration / 60); $seconds = $duration % 60; $seconds = str_pad($seconds, 2, "0", STR_PAD_LEFT); $media['length'] = "$minutes:$seconds"; } $media['intrate'] = intval($media['rating']); $media['thumbnail'] = vB::$vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg"; $media['href'] = construct_href_details($media); $templater = vB_Template::create('8WR_media_WIDGET'); $templater->register('media', $media); $mediabits .= $templater->render(); } $output = $mediabits; |
#1351
|
|||
|
|||
Media URL contained invalid data.
Some Youtube Videos work, lots of others dont. No, not new videos, videos with 2+ Million views NO SEO activatted, just a standard install... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|