vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - Video-Directory Remixed (https://vborg.vbsupport.ru/showthread.php?t=200819)

Zarxrax 04-05-2009 09:15 PM

There is a bug in the youtube module which prevents some videos from working.

Here is an example video:
http://www.youtube.com/watch?v=_lxakVAaAJY

Youtube displays the following embed code:
HTML Code:

<embed src="http://www.youtube.com/v/_lxakVAaAJY&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed>
However video directory remixed displays the following embed code:
HTML Code:

<embed src="http://www.youtube.com/v/_lxakVAaAJY&autoplay=1&fs=1&rel=0&ap=%2526fmt=18" type="application/x-shockwave-flash" allowfullscreen="true" width="480" height="385" wmode="transparent"></embed>
If I visit the actual url from the video directory's embed code, then as expected, the video does not play. This url is http://www.youtube.com/v/_lxakVAaAJY...ap=%2526fmt=18

However, if you look at the end of the url, you will see &ap=%2526fmt=18
Now I don't know what this is supposed to be... but if I change that part to &fmt=18
then everything works fine.

c.c. 04-06-2009 02:06 PM

Why is the New Video called "Neues Video"? Is there a gif that has New Video in english?

c.c. 04-07-2009 07:39 PM

Is anyone that is using Firefox not able to view the videos. I have a user that just shows the spinning dial. It won't load for them, but if they go directly to youtube.com it loads fine? Any ideas? His IE8 works fine.

Al-Mothafar 04-07-2009 10:31 PM

Quote:

Originally Posted by c.c. (Post 1786001)
Is anyone that is using Firefox not able to view the videos. I have a user that just shows the spinning dial. It won't load for them, but if they go directly to youtube.com it loads fine? Any ideas? His IE8 works fine.

Sometimes happened to me and I am using FF3 ..
its not depend on browser , i guess its from youtube service , and I note sometimes take some time to start load video (app. about 10 - 15 sec.) .

c.c. 04-08-2009 11:52 AM

Quote:

Originally Posted by Al-Mothafar (Post 1786143)
Sometimes happened to me and I am using FF3 ..
its not depend on browser , i guess its from youtube service , and I note sometimes take some time to start load video (app. about 10 - 15 sec.) .

He figured it out. He reinstalled Flash and it works fine.

Vital Signs 04-08-2009 01:35 PM

We installed everything properly using 3.8.2 and it displays on the navbar, however when we click the link in the navbar to go to the "Video Directory" it says

Quote:

you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
How do we fix this? Are forums are currently turned off since the site hasn't launched yet however we are all Admins so it should still sow up for us. Any ideas what to check? Thanks

compact123 04-08-2009 02:11 PM

Sir,

i'm upgrade 123 to 124 but i have this error;

http://img14.imageshack.us/img14/1616/adszewz.png

dbirosel 04-08-2009 05:44 PM

What changed from the new update? U didn't tell us what's fixed, new, removed from the mod?

alessai 04-08-2009 09:33 PM

Hello, i found a bug in megavideo.....

there is a new feature in megaupload... that if u upload a video file it will automatically upload it to megavideo,,, and i noticed any video was uploaded through megaupload ... cant be added....

CypherSTL 04-09-2009 09:01 AM

Alright, seen a few of you asking for this, and I wanted something like this as well for an Off-Road 4x4 Forum I'm working on.

To add a "View My Videos" link to your postbit, only if the user has videos, here is the following template, and plugin.

View My Video's Link:
TEMPLATE
--------
Title: video_postbit

Template Code:
Code:

<!-- show vid link -->
<div>
<br>
<a href="video.php?do=viewuser&userid=$post[userid]">View My Videos</a><br />
</div>
<!-- /show vid link -->

PLUGIN
------
Name: Video Directory - Display Video Link in Profile
Hook Location: postbit_display_start
Execution Order: 5

Plugin PHP Code:
Code:

if ((THIS_SCRIPT == 'showpost') OR (THIS_SCRIPT == 'private') OR (THIS_SCRIPT == 'showthread') OR (THIS_SCRIPT == 'announcement') OR (THIS_SCRIPT == 'newreply'))
{
    global $db, $vbulletin;
    {
        if (THIS_SCRIPT == 'private')
        {
            $this->post['userid'] =& $post['fromuserid'];
        }
            $alluservideos =  $db->query_read("
                SELECT *
                FROM " . TABLE_PREFIX . "video
                WHERE (userid = ".$this->post['userid'].")
                ");

            $db->num_rows($alluservideos);

            if ($db->num_rows($alluservideos) > 0)
            {
                eval('$template_hook[\'postbit_userinfo_right\'] .= "' . fetch_template('video_postbit') . '";');
            }
                $db->free_result($alluservideos);
    }
}


Navigation Link Suggestion:
Since the link is added to the navigation bar via plug-ins and some people have vbAdvanced, or another form of CMS/Portal page, this edit for that plugin will automatically add the Forum URL to the link.

Plug-In Name: Navbar-Link
Product: Video-Directory
Code:

if ($vbulletin->options['videodirectory_navbarlink_hook'] == 1)
{
    $template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="'.$vbulletin->options['bburl'].'/video.php'.$session['sessionurl'].'">'.$vbphrase['video_directory'].'</a></td>';
}

if ($vbulletin->options['videodirectory_navbarlink_hook'] == 2)
{
    $template_hook['navbar_quick_links_menu_pos1'] .= '<tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/video.php'.$session['sessionurl'].'">'.$vbphrase['video_directory'].'</a></td></tr>';
}

if ($vbulletin->options['videodirectory_navbarlink_hook'] == 3)
{
    $template_hook['navbar_community_menu_end'] .= '<tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/video.php'.$session['sessionurl'].'">'.$vbphrase['video_directory'].'</a></td></tr>';
}

Jaxel, feel free to add these to the mod if you would like.


All times are GMT. The time now is 11:55 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.03165 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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