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)

basilrath 08-06-2010 08:04 PM

Fantastic Mod ................. top mod in my opinion

I have no issues and would like to ask the following

1...The pm thats sent to admin to say theres a new video and would you like to comment - is there a way to send to registered members aswell

2...Is there a way to get latest comments to the thread or a thread or something etc

Thanks by the way for the fantastic work put into this

Dave

epsol 08-06-2010 08:12 PM

I noticed in the latest version of this mod that it was missing the localvideo and localaudio services. What you need to do is check the 'services' and if they are not there, add them. Otherwise what I did was uninstall the 1.5 and installed the 1.1, then I installed the 1.5 and it worked just fine. As for media url, it would be localvideo:blue_crab.flv

compact123 08-07-2010 08:21 AM

>>> dailyMotion videos cannot be thumbnailed :(

compact123 08-07-2010 08:26 AM

Quote:

Originally Posted by juhler (Post 2080101)
I had a problem getting this to import correct letters from YouTube. This could be: ???...

The reason this happens is that you made it to just import the data from YouTube (and thats ok if you are not using ??? or any other UTF-8 coding).

The way I fixed it works for import only:

In the file media/media_submit.php

Find:
Code:

        $feed = construct_feed_data($source);

        $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
        $xml->add_group('response');
        $xml->add_tag('thumbnail', $feed['thumbnail']);
        $xml->add_tag('title', $feed['title']);
        $xml->add_tag('description', $feed['description']);
        $xml->add_tag('taglist', $feed['taglist']);
        $xml->add_tag('minutes', $feed['minutes']);
        $xml->add_tag('seconds', $feed['seconds']);
        $xml->add_tag('embed', $feed['embed']);
        $xml->add_tag('source', $feed['source']);
        $xml->add_tag('serviceID', $feed['serviceID']);
        $xml->add_tag('serviceVAL', $feed['serviceVAL']);
        $xml->add_tag('serviceVAL2', $feed['serviceVAL2']);
        $xml->close_group();
        $xml->print_xml();

Replace:
Code:

        $feed = construct_feed_data($source);

        $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
        $xml->add_group('response');
        $xml->add_tag('thumbnail', $feed['thumbnail']);
        $xml->add_tag('title', utf8_decode($feed['title']));
        $xml->add_tag('description', utf8_decode($feed['description']));
        $xml->add_tag('taglist', utf8_decode($feed['taglist']));
        $xml->add_tag('minutes', $feed['minutes']);
        $xml->add_tag('seconds', $feed['seconds']);
        $xml->add_tag('embed', $feed['embed']);
        $xml->add_tag('source', utf8_decode($feed['source']));
        $xml->add_tag('serviceID', $feed['serviceID']);
        $xml->add_tag('serviceVAL', $feed['serviceVAL']);
        $xml->add_tag('serviceVAL2', $feed['serviceVAL2']);
        $xml->close_group();
        $xml->print_xml();

Hope this helps the others I have seen asking for an update that would allow special chars.

Edit: PS hope its ok that I changed you code to fit my needs ?

- juhler

still i have problem with korean special characters =/
http://www.youtube.com/watch?v=qRGOE-gE8FE

https://vborg.vbsupport.ru/

EquinoxWorld 08-07-2010 02:21 PM

Quote:

Originally Posted by compact123 (Post 2080440)
>>> dailyMotion videos cannot be thumbnailed :(

Have you tried this:


Quote:

Originally Posted by Jaxel (Post 2078697)
Change the daily motion thumbnail field to the following:

Code:

$arr['channel']['item']['media:thumbnail']['url']; $thu = substr($thu, 0, strpos($thu, '?'))


kho91 08-07-2010 05:59 PM

i dont't undersant woh i can creat playists?

EquinoxWorld 08-07-2010 06:55 PM

Quote:

Originally Posted by kho91 (Post 2080575)
i dont't undersant woh i can creat playists?

Check your permissions to see if you can create playlist ("can create playllist" set to yes). After giving permissions under the playlist drop down menu you will see "create playlist"

iJay 08-07-2010 11:24 PM

The side block doesn't seem to display on VB 4.0.5 :(
Any insight?

Code:

ob_start();
require_once(DIR.'/media/media_functions_hrefs.php');

$medias = vB::$vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "media ORDER BY 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_block');
        $templater->register('media', $media);
        $mediabits .= $templater->render();
}

$output = $mediabits;
ob_end_clean();


EquinoxWorld 08-07-2010 11:55 PM

do you have any other mods from VSA? this works for me on vb4.0.5 perfectly.

kho91 08-08-2010 05:18 PM

any idea to add adsense in side bar block?


All times are GMT. The time now is 12:49 AM.

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.03612 seconds
  • Memory Usage 1,756KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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