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)

m411b 04-07-2011 04:51 AM

How would I go about removing the "Media" tab? The tab is fine but I have my own tab system and want to use that instead.

Thanx in advance

EDIT: NM Got it thanx

m411b 04-07-2011 09:51 PM

New problem! I fixed my tab issue but now there is no sub menu for upload, admin, or anything. I have searched the entire thread for an answer but there is no resolution! I have added the "Known Bug" fix because I am using VSA Chatbox. The thing is, is that when I first install it. The submenu is there but when I refresh the page it goes bye bye.

Any help would be much appreciated.

mikem164 04-08-2011 07:45 PM

Quote:

Originally Posted by GRJoker (Post 2178548)
is there a way to change the width the stats area on the right hand side? If you can show me were to look I would really appreciate it.

Thank You
Joker
www.CircleIX.com

I too would like to know!

asking 04-11-2011 03:58 AM

Please where i can find facebook xml video hoster. Please for help?

Here is the sample facebook video link http://www.facebook.com/v/110451499036058

Please verify this:

Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<videohoster varname="Facebook" classname="facebook" active="1">
        <title>Facebook</title>
        <regex />
        <author>Test by Me</author>
        <version>1.2.4</version>
        <class_file><![CDATA[<?php
/**
 * Class to fetch and handle Facebook
 *
 */
class vB_VideoSharingService_Facebook extends vB_VideoSharingService
{
        var $hostername = 'Facebook';

        function vB_VideoSharingService_Facebook(&$registry)
        {
                parent::vB_VideoSharingService($registry);

                $this->settings =& $this->registry->videohosters[$this->hostername]['settings'];
        }

        function verify_service(&$url)
        {
                $matches = array();

                $this->url = $url;

                if (preg_match('/http://www\.facebook\.com\/\?v([\w]+)&*[\w;=]*]/i', $url, $matches))
                {
                        $this->video_id = $matches[1];
                        return true;
                }

                return false;
        }

        function prepare_data()
        {
                if (!$this->verify_videoid())
                {
                        return false;
                }

                //Request Video Data
                $vurl = new vB_vURL($this->registry);
                $vurl->set_option(VURL_URL, 'idontknowwhattoputhere' . $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;
                }

                preg_match('/[\w+%.-]*'.$this->video_id.'([\w]*)[\w+%.-]*/i', $arr['ROW']['embed'], $image);

                $this->thumbnailpath = 'idontknowwhattoputhere';
                $this->videodescription = urldecode($arr['ROW']['description']);
                $this->videotitle = urldecode($arr['ROW']['title']);
                $this->taglist = urldecode($arr['ROW']['title']);
                $this->timelength = $arr['ROW']['runtime'];

                return true;
        }

        function file_save_thumbnail()
        {
                if (!$this->fetch_thumbnailpath() OR !$this->fetch_videoid())
                {
                        return false;
                }

                require_once(DIR . '/includes/class_vurl.php');
                $vurl = new vB_vURL($this->registry);
                $vurl->set_option(VURL_URL, $this->fetch_thumbnailpath());
                $vurl->set_option(VURL_RETURNTRANSFER, true);
                $result = $vurl->exec();

                $fp = fopen(DIR . '/' . $this->registry->options['videodirectory_thumbnaildir'] . '/' . $this->hostername . '/' . $this->fetch_videoid() . '.jpg', 'wb');
                fwrite($fp, $result);
                fclose($fp);
        }

        function fetch_embedcode($videoid = '', $autoplay = 1, $fullscreen = 1, $related = 0, $stats = 0)
        {
                $videoid = $videoid ? $videoid : $this->video_id;

                if ($fullscreen == 1) { $fullscreen = 'true'; } else { $fullscreen = 'false'; }
                if ($autoplay == 1) { $autoplay = 'true'; } else { $autoplay = 'false'; }

                return '<embed src="http://www.facebook.com/v/' . $videoid . '" autoplay="' . $autoplay . '" type="application/x-shockwave-flash" allowfullscreen="' . $fullscreen . '" width="640" height="480"></embed>';
        }

        function fetch_videobbcode($vid, $videoid = '', $videotitle = '')
        {
                $videoid = $videoid ? $videoid : $this->video_id;
                $videotitle = $videotitle ? $videotitle : $this->video_title;

                if ($this->registry->options['videodirectory_bbcode'])
                {
                        return '[video=' . $videotitle . ']' . $vid . '[/video]';
                }
                else
                {
                        return '[' . $this->hostername . '=' . $videotitle . ']' . $videoid . '[/' . $this->hostername . ']';
                }
        }

        function fetch_videourl($videoid = '')
        {
                $videoid = $videoid ? $videoid : $this->video_id;

                return 'http://www.facebook.com/v/' . $videoid;
        }
}

?>]]></class_file>
</videohoster>


caracena 04-14-2011 01:33 AM

Hi Jaxel,

I use VDR on my 3.8 vB but I'm working (locally on my PC) on updating vB to 4.1.3. I've only imported the DB and made a fresh install of vB 3.8 and then update vB. I don't have the original VDR files installed and the plugin is gone too. What's my best shot at installing this new MOD without loosing all the videos my users have posted in the past?

Thanks for any advice!

kinhell 04-17-2011 09:05 PM

Can anyone tell me how I can do images with this?

YkudzA 04-18-2011 08:25 PM

1) How to delete category?
2) How to add New Service w/o xml?

EquinoxWorld 04-23-2011 12:54 AM

Can anyone get MegaVideo to retrieve thumbnails with the latest definitions? They work but not with ImageMagick..anyone else getting this?

vnairp11 04-24-2011 12:01 PM

1 Attachment(s)
I wanna say this is an excellent mod.. i just have one issue how can i clear the black backgrounds off menus and keep it plain? pic attached

tlwwolfseye 04-26-2011 07:49 PM

Quote:

Originally Posted by red-dna (Post 2158752)
You will have to...uninstall the latest version (leave the files on ur webeserver) and then install 1.1 (overwrite the files) and then install 1.7 (press yes on the adminpc and overwrite again the files) and then use the localvideo:video tag. For example if the video is 4.flv, use localvideo:4.flv - And so on :)

Tried that, had an .AVI Video (Xvid) but all I got was a nonstop video loading bar, nothing else happend.

So now I ditched all my recent videos added to make this work, and now it doesn't even work. Great.


All times are GMT. The time now is 08:44 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.03539 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_code_printable
  • (2)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