vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - 8WayRun.Com - Media Library (https://vborg.vbsupport.ru/showthread.php?t=240677)

Ragman68 10-15-2010 10:50 PM

I have added this excellent mod to my forum but it appear the template does not render properly and my videos do not site in neat tables like the sceenshots but instead look like the image, has anyone any ideas what has gone wrong?

http://www.vpsource.com/images/media.jpg

danyol1706 10-16-2010 04:26 AM

Nice mod! Where can I find the CMS widget code for this?

RobbieZ 10-16-2010 04:50 AM

Im sure its in this thread somewhere.

AdminCP > Widget > PHP

PHP 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


mondiuk 10-16-2010 09:48 AM

what this option das if anabled?

Should URLs within the media library be slugged for SEO? (htaccess required)

mondiuk 10-16-2010 09:53 AM

is posible to import more then one klip at the time?

l7azat 10-16-2010 01:35 PM

<font color="DarkOrange">whine i try to add video i have this error

Media URL contained invalid data.
</font>

betts02 10-16-2010 04:30 PM

For some reason its not posting the submitted media to my forums

Any help ?

Stupid....Thats all i can say,lol

Dint click the tab to create a thread,lol

Works great and loving the gametrailers

betts02 10-16-2010 07:16 PM

To note, On vb4.05 the above code works for a forum block also

ProFifaLeagues 10-16-2010 07:32 PM

Quote:

Originally Posted by betts02 (Post 2110788)
To note, On vb4.05 the above code works for a forum block also

Also fine on the forum blocks on Vb4.06 guys :up:

mondiuk 10-16-2010 10:14 PM

works for vb4.07 to. confirmed.

demo here

CharlieDelta 10-17-2010 02:12 AM

Quote:

Originally Posted by betts02 (Post 2110756)
Works great and loving the gametrailers

Betts did gametrailers work for you right out of the box? It sounds to me that you never had to import a xml service for it, am I right?

betts02 10-17-2010 07:00 AM

Just went to the media and add service
Uploaded it via here and worked a treat mate

dopeytjen 10-17-2010 04:25 PM

This might have been asked before but is there a way to use this as an image gallery instead?

mondiuk 10-17-2010 10:33 PM

Any one can get this to get google videos to?

hosam119 10-18-2010 05:19 AM

i want active search engine optimization with vbseo hack

i cant can help me

champendk 10-18-2010 11:58 AM

How du i add this media typeP

http://www.ea.com/uk/football/videos/ugc/39901007

RobbieZ 10-18-2010 04:32 PM

Quote:

Originally Posted by betts02 (Post 2110938)
Just went to the media and add service
Uploaded it via here and worked a treat mate

Where was your source for the XML you uploaded?

betts02 10-18-2010 05:44 PM

1 Attachment(s)
Its in the XML folder

Or use this below

STORMS 10-18-2010 06:02 PM

How do you edit the background colors and colors overall to the Media Library? What template do you go in to?

STORMS 10-18-2010 06:14 PM

Also, how do you add/edit Categories?

CharlieDelta 10-18-2010 06:45 PM

Quote:

Originally Posted by betts02 (Post 2110938)
Just went to the media and add service
Uploaded it via here and worked a treat mate

I feel a little bit of an idiot here but after reading your answer Betts, something struck me.
I only ever downloaded the latest zip file assuming all media xml's would be in there along with the newest updates, so I decided to download the 1.1 zip and low and behold under the xml folder is a number of xml's not in the 1.6 zip, including gametrailers.

Thanks for posting the gametrailers xml Betts.

RobbieZ I hope you are reading this.

CharlieDelta 10-18-2010 06:56 PM

Quote:

Originally Posted by STORMS (Post 2111394)
Also, how do you add/edit Categories?

Storm I suspect you are having the issue that Jaxel has posted about in this mod = "Known bugs" above. Look up at the bottom of this mod just above the download files and you will see the fix.

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;
}


STORMS 10-18-2010 07:26 PM

Hmmm, I just did this but still do not see where to add/edit Categories and also do you know how to change the colors of the Media Library?

CharlieDelta 10-18-2010 09:32 PM

Do you have your permissions set properly? Have you disabled the navtab?
I am not sure on the colors, maybe look at 8wr_Media_Library stylevars or templates.

STORMS 10-18-2010 09:49 PM

Should I disable the NavTab?

Also, as of now in both the style vars and templates I've only had a little luck editing the colors for the comment area. There's still a lot of white that I would like to turn black or dark grey.

RobbieZ 10-19-2010 08:03 AM

Quote:

Originally Posted by CharlieDelta (Post 2111403)
I feel a little bit of an idiot here but after reading your answer Betts, something struck me.
I only ever downloaded the latest zip file assuming all media xml's would be in there along with the newest updates, so I decided to download the 1.1 zip and low and behold under the xml folder is a number of xml's not in the 1.6 zip, including gametrailers.

Thanks for posting the gametrailers xml Betts.

RobbieZ I hope you are reading this.

Huh? Gametrailer xml is present in 1.6 / 1.1 and 1.5 from which I originally was using when Jaxel first released this mod.

MediaLibrary-1.x > Upload > media > xml > gametrailers

But it doesnt show on services,

Perhaps im missing something, if i uninstall and remove all file sand re-install it perhaps it will work.?!?

Sarab 10-19-2010 11:53 AM

Hello,

is their a way that let me but my own video link for streaming?

Best Regards,
Sarab

CharlieDelta 10-19-2010 02:48 PM

Quote:

Originally Posted by RobbieZ (Post 2111590)
Huh? Gametrailer xml is present in 1.6 / 1.1 and 1.5 from which I originally was using when Jaxel first released this mod.

MediaLibrary-1.x > Upload > media > xml > gametrailers

But it doesnt show on services,

Perhaps im missing something, if i uninstall and remove all file sand re-install it perhaps it will work.?!?

Sorry if I am being vague, but yes I uploaded the xml's I was missing from that folder through the "Administrative Services" and now gametrailers is working. For some reason the initial install did not add all the services.

CharlieDelta 10-19-2010 02:57 PM

Does any one have an xml for videos on Joystiq.com?

hosam119 10-20-2010 03:47 AM

i want active search engine optimization with vbseo hack

i cant can help me

مجلة شلة بنات

angkor408 10-20-2010 04:43 AM

Hi, will this mod work if I want just music upload like mp3, not video? I want to allow user able to upload music and delete. Thanks, KC

ForenOpfer 10-22-2010 07:44 AM

Hey there...

is there any chance to fix the profile bug in 4.0.8? The media tab looks strange, the tab will not be customized like the other tabs ATM.

Regards,
ForenOpfer

dawges 10-23-2010 12:17 AM

Hi, I uninstalled this weeks ago because i decided not to use it. However, I was just editing some style vars on my template and noticed the "8WR_Media_Library" are still in the styles. How do i get rid of this? thanks.

VBUsers 10-23-2010 03:51 AM

how do i remove the tab that was injected into my nav bar?

http://www.hydrocanna.com/forum.php

zelnik 10-23-2010 06:57 AM

When uninstalling this product (due to conflict with vbseo) it does not remove the styles vars.

any idea how to remove manually?

Riccardo83 10-23-2010 12:47 PM

I updated from 4.0.0 to 4.1.6. i get this error below... tried to follow all the steps in the how to...

http://www.alizee-forum.com/media.php?

Database error
Code:

Database error in vBulletin 4.0.8:

Invalid SQL:

                        SELECT media.*, media_service.*, media_category.*, IF(NOT ISNULL(user.userid), user.username, media.username) AS username
                        FROM media AS media
                        LEFT JOIN media_service AS media_service ON(media_service.serviceID = media.serviceID)
                        LEFT JOIN media_category AS media_category ON(media_category.categoryID = media.categoryID)
                        LEFT JOIN user AS user ON(user.userid = media.userID)
                        WHERE media_category.catOrder != '0'
                        ORDER BY media.favorites DESC, media.comments DESC, media.views DESC
                        LIMIT 3;

MySQL Error  : Unknown column 'media.favorites' in 'order clause'
Error Number  : 1054
Request Date  : Saturday, October 23rd 2010 @ 01:49:50 PM
Error Date    : Saturday, October 23rd 2010 @ 01:49:50 PM
Script        : http://www.alizee-forum.com/media.php
Referrer      : http://www.alizee-forum.com/forum.php
IP Address    : 178.25.26.37
Username      : Riccardo
Classname    : vB_Database_MySQLi
MySQL Version : 5.0.91-community


VBUsers 10-24-2010 10:53 PM

how can i remove the link in installs on my 2nd nav bar?

Veer 10-25-2010 07:29 AM

Waiting for a fix for Media Profile Tab bug introduced in 4.0.8

Jaxel 10-25-2010 09:29 AM

Quote:

Originally Posted by Veer (Post 2113873)
Waiting for a fix for Media Profile Tab bug introduced in 4.0.8

What bug?

compact123 10-25-2010 01:08 PM

megavideo don't work for me??


All times are GMT. The time now is 11:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05086 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete