Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
8WayRun.Com - Media Library Details »»
8WayRun.Com - Media Library
Version: 4.1.7, by Jaxel Jaxel is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.x Rating:
Released: 04-16-2010 Last Update: 10-26-2010 Installs: 915
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

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.php

Features:
  • Integrated directly into the vBulletin user database and product manager.
  • Fully phrased and built on tempaltes for easy re-skinning and styling.
  • Simple to use administration features and usergroup permission settings.
  • Landing page with the most recent, most popular and highest rated media.
  • Ability to add media into a single category, while adding multiple tags.
  • Ability to browse media through categories, tags, and user contributions.
  • Summary tag cloud with a link to the entire list of tags in the system.
  • Comment and rating system based on AJAX including graceful degredation.
  • Individual RSS Feeds for newest videos, categories, tags and user media.
  • Search function for titles and descriptions.
Installation:
If you are upgrading from before version 1.1, please install that version first.
  1. Upload all the files in the "upload" directory of the attached zip file to your forum root.
  2. CHMOD the /customVID/thumbs/ directory to full read/write/execute 777 permissions.
  3. CHMOD the /customVID/sitemap/ directory to full read/write/execute 777 permissions.
  4. Import the product file called "product-medialibrary.xml" in the Product Manager of vBulletin.
  5. Set your usergroup permissions and media library settings in your administration control panel.
  6. OPTIONAL: Enable the "Generate XML Media Sitemap" scheduled task in your administration control panel.

    NOTES: Make sure you decide what you wish to use for your thumbnail quality setting. By default, thumbnails are saved at 50% quality. At 50%, thumbnails will only be 2kb in size, but at the expense of quality. At 100%, thumbnails will be about 15kb in size, but will have the highest quality. I recommend setting it to 80%, which would leave thumbnails at 5kb in size with still excellent quality.

    Every time you change your thumbnail quality setting, you will need to run the "Rebuild Media Thumbnails" to see any changes.
Upgrading from VDR:
  1. The "video*" tables from your previous installation of VDR need to exist in your database.
  2. Enable the "media ADMIN import" plugin in the plugin manager of your control panel.
  3. Run the "Import Media from VDR" process in your update counters menu in maintenance.
  4. Disable the "media ADMIN import" plugin in the plugin manager of your control panel.
  5. Run the "Rebuild Media Thumbnails" process in your update counters menu in maintenance.
  6. You may now uninstall VDR once you confirm everything has been imported as intended.

    NOTES: You will mostly likely get at least one error while rebuilding media thumbnails...

    When you get an error, click the details link for that media. If the media displays some sort of error such as "This video has been removed" or "This video no longer exist", then that means that media is gone and you'll be unable to generate a thumbnail for that particular media. Use the available options on that media's detail page to DELETE it from your library. Then go back to your browser window which is rebuilding thumbnails and click the "retry from this position" link.

    If you got an error for a media, but after clicking the details link you can find no obvious error with the video; then the error could have just been a simple syn/ack failure. Just click the "retry from this position" link and the system will try to rebuild that thumbnail again.
Known Bugs:
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.

Admin Control Panel > Plugins & Products > Plugin Manager > "media NAVTAB"

Find the code:
Code:
    $perms = media_permissions();
Replace with:
Code:
$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;
$perms['playlist'] = true;
 
if (is_member_of($vbulletin->userinfo, explode(',','5,6')))
{
    $perms['modtags'] = true;
    $perms['modcategory'] = true;
    $perms['modservice'] = true;
}

Download Now

File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)
File Type: (21.3 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2752  
Old 05-29-2012, 06:05 PM
waldvb waldvb is offline
 
Join Date: Mar 2011
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by michal72 View Post
to disable the "old" menu go to admincp->product and plugins-> manage plugins and turn off media NAVTAB plugin. Then install my product: https://vborg.vbsupport.ru/showpost....postcount=2745
I'll upgrade forum to 4.2 tomorrow. I'll check your Mod
Reply With Quote
  #2753  
Old 05-29-2012, 06:51 PM
GhostHunter2010 GhostHunter2010 is offline
 
Join Date: Nov 2010
Location: London UK
Posts: 259
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any videogallery like this one plz if yes pm me link so i can download thankyou
Reply With Quote
  #2754  
Old 05-29-2012, 08:10 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by michal72 View Post
I think I know what is the problem
The extensions of the image files on godtube are .jpg but the files are png inside.

See: http://ht2.salemweb.net/godtube/2012...981-003-tn.jpg

Replace Thumbnail line with :
Code:
 $vbulletin->options['bburl']."/media/media_audio.jpg"
and try again
Could you please help me out on this piece? I edited the host section for godtube and still get the same error.
Reply With Quote
  #2755  
Old 05-29-2012, 08:47 PM
michal72 michal72 is offline
 
Join Date: Nov 2010
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes indeed there is some problem with thumbs on godtube.com, so I have prepared the xml service with standard 8WR Media thumbnail. It works for me. Please find enclosed, install and check again.

Regards
Attached Files
File Type: (21.4 KB, 9 views)
Reply With Quote
Благодарность от:
Chadi
  #2756  
Old 05-29-2012, 09:04 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. So there is no way around this, at all?
Reply With Quote
  #2757  
Old 05-30-2012, 04:12 AM
michal72 michal72 is offline
 
Join Date: Nov 2010
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chadi View Post
Thanks. So there is no way around this, at all?
in media/media_function_build.php replace:
Code:
		preg_match('#([\w]+)$#i',$thumbnail,$filetype);

		switch ($filetype[1])
		{
			case "png":		$oldImage = imagecreatefrompng($target);		break;
			case "gif":		$oldImage = imagecreatefromgif($target);		break;
			case "jpg":
			default:		$oldImage = imagecreatefromjpeg($target);		break;
		}
with
Code:
		$filetype = exif_imagetype($thumbnail);

		switch ($filetype)
		{
			case IMAGETYPE_PNG:		$oldImage = imagecreatefrompng($target);		break;
			case IMAGETYPE_GIF:		$oldImage = imagecreatefromgif($target);		break;
			case IMAGETYPE_JPEG:
			default:		            $oldImage = imagecreatefromjpeg($target);		break;
		}
and try to use the previous xml.
Reply With Quote
  #2758  
Old 05-30-2012, 01:10 PM
lafsunlmtd lafsunlmtd is offline
 
Join Date: Jul 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found that if you have vbSEO there are some modifications to the php files that have to be made that will include the titles in the non friendly URL so that you can use custom rewrite rules in the vbSEO control panel to make this work properly.

I am undergoing the changes with the php file and writing the custom rewrite rules. I'll report back with the file and the rewrite rules if it's successful.

Update:

It is in fact working as I planned and will update the thread with the file to update as well as the custom rewrite rules you can copy and paste in your vbSEO control panel so the SEO Friendly URL's will work with your board and vbSEO.
Reply With Quote
  #2759  
Old 05-30-2012, 03:00 PM
lafsunlmtd lafsunlmtd is offline
 
Join Date: Jul 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you use vbSEO

Add the following Custom Rewrites via your vbSEO control panel area. Once finished, turn on friendly URL's via the VB Settings > Options > 8WayRUn.com Details

Code:
//   # Media Library
'^media\.php\?do=tags_edit&mid=(\d+)&title=(.*)'=>'media/m$1-$2/tags'
'^media\.php\?do=details_edit&mid=(\d+)&title=(.*)'=>'media/m$1-$2/edit'
'^media\.php\?do=report&mid=(\d+)&title=(.*)'=>'media/m$1-$2/report'
'^media\.php\?do=comment_edit&cmt=(.*)&mid=(\d+)&title=(.*)'=>'media/m$2-$3/c$1'
//'^media\.php\do=details&mid=(\d+)&title=(.*)&pid=(\d+)'=>'media/m$1-$2/p$3'
'^media\.php\?do=details&mid=(\d+)&title=(.*)'=>'media/m$1-$2' 
// '^media/p(\d+).*/edit$ media.php?do=playlist_edit&pid=$1 [QSA]'
// '^media/p(\d+).* media.php?do=playlist&pid=$1 [QSA]'
'^media\.php\?do=playlist&pid=(\d+)'=>'media/p$1'
'^media\.php\?do=category&cid=(\d+)&title=(.*)'=>'media/c$1-$2'
'^media\.php\?do=user&uid=(\d+)&title=(.*)'=>'media/u$1-$2'
'^media\.php\?do=tag&tid=(.*)'=>'media/tag/$1' 
'^media\.php\?do=results&query=(.*)'=>'media/results/$1' 
'^media\.php\?do=advresults&query=(.*)'=>'^media/advresults/$1'
'^media\.php\?do=letter&query=(.*)'=>'media/letter/$1'
'^media\.php\?do=browse'=>'media/browse'
'^media\.php\?do=search'=>'media/search'
'^media\.php\?do=random'=>'media/random' 
'^media\.php\?do=submit'=>'media/submit'
'^media\.php\?do=tagcloud'=>'media/tagcloud'
'^media\.php\?do=playlists'=>'media/playslists'
'^media\.php\?do=playlists_create'=>'media/pcreate'
'^media\.php\?do=playlists_mine'=>'media/pmine'
'^media\.php\?do=favorites'=>'media/favorites'
'^media\.php\?do=subscriptions'=>'media/subscriptions'
// '^media/admin/edit/s(\d+).* media.php?do=admin_host_edit&sid=$1 [QSA]'
// '^media/admin/delete/s(\d+).* media.php?do=admin_host_delete&sid=$1 [QSA]'
// '^media/admin/export/s(\d+).* media.php?do=admin_host_export&sid=$1 [QSA]'
// '^media/admin/(\w+).* media.php?do=admin_$1 [QSA]'
You'll notice I have the playlists and admin area's commented out.

I couldn't figure out the playlist custom rewrites properly but don't even have these navigation items active as that is not the purpose of the directory for us. If you can figure it out, feel free to do so and update for others.

In regards to the administrate options. I left this as is because I manually added the navigation links for these already in my navbar and didn't bother with them.

No edits to any PHP file were needed to make these friendly links work, just redoing the .htaccess file listings to make them in the proper format for vbSEO.

Hope this helps someone.

You can view the friendly URL's working here: http://www.iplaycod.com/forums/media.php
Reply With Quote
2 благодарности(ей) от:
Chadi, michal72
  #2760  
Old 05-31-2012, 01:59 PM
lafsunlmtd lafsunlmtd is offline
 
Join Date: Jul 2005
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add Facebook Like and Send option for each media listing:

First step is to go to https://developers.facebook.com/docs.../plugins/like/ and set up your settings as you would like. I chose the Like & Send option.

Add the code they mention to add right after the body tag in the header template. The code where you want to display the like button:

Style Manager > Edit Templates > 8WayRun.com Media Library Templates > 8WR_media_details

Find:

Code:
			<b>{vb:phrase media_tags}:</b><br />
			<ul class="commalist">
				{vb:raw media.tags}
			</ul>
Add After:

Code:
<br /><br />
 <div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
Should result in: http://gyazo.com/fc481f72d40f0f0099f59b8f32039dcd

Reply With Quote
2 благодарности(ей) от:
CharlieDelta, Taurus1
  #2761  
Old 05-31-2012, 03:18 PM
Bergler Bergler is offline
 
Join Date: Dec 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have a link to the current files to install this mod, thanks in advance, cheers.
Reply With Quote
Reply


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 01:37 AM.


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.07673 seconds
  • Memory Usage 2,399KB
  • Queries Executed 26 (?)
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
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (21)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete