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)

abhimation 04-09-2009 12:55 PM

1 Attachment(s)
Hey,

Loved this mod. Just upgraded it to the latest and everything went all smooth. Only issue is, my videos are still showing in the same old smaller size instead of the large size thats in the Screenshots. Please help. I need to have large sized HD videos too.

I have installed and imported host settings and have got many HD videos.

I got vbMediaPlayer 1.2 installed too. Can that be a problem ?

GaRanT 04-09-2009 01:00 PM

what to do if Captcha not show digits for Unregistered / Not Logged In.. users?

lnxtr 04-10-2009 06:01 AM

Turkish video Don't true add

nasko 04-10-2009 07:40 PM

Quote:

Originally Posted by nasko (Post 1782563)
I have a problem. I get BLANK page when i open the link.
After a little debug i found the error on line 895 where:
PHP Code:

$announcement $bbcode_parser->parse($vbulletin->options['videodirectory_announcement']); 

Ideas how to fix this?

Please help me! What could be the problem?

tjmaxwell 04-10-2009 08:21 PM

Hi,

I followed these instructions and it appeared to be working fine, but now I'm getting random database errors in certain threads:

Code:

                SELECT *
                FROM video
                WHERE (userid = );

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
Error Number  : 1064

Any ideas why this might be happening? I really want to be able to use this.

Quote:

Originally Posted by CypherSTL (Post 1787216)
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.


CypherSTL 04-10-2009 11:03 PM

Sounds like it isn't properly carrying over the variable for the posts user id.

Try adding the video_postbit template to the cache_templates.

Stefanus 04-11-2009 04:58 PM

Errors found while checking this document as XHTML 1.0 Transitional!

The following sample of the code where the errors is found - can someone direct me to the correct area to "fix". the code is "do=viewdetails&videoid" and should read "do=viewdetails&amp;videoid"
PHP Code:

#  <td class="thead">Random Videos</td>
# </tr>
# <tr>
# <td class="alt1" align="center">
# <div style="position: relative;">
# <span style="position:absolute; bottom:0px; right:3px; font-size:12px; color:#FFFFFF; background-color:#000000; padding:2px;">
# <strong>7:26</strong>
# </span>
# <a href="video.php?do=viewdetails&videoid=13"><img src="videothumbnails/YouTube/-i57BB0IGWE.jpg" alt="xxxxxxxxxx" title="xxxxxxxxxx" style="width: 150px;" border="0" /></a></div>
# <div style="padding-top: 3px;"><span class="smallfont"><a href="video.php?do=viewdetails&videoid=13">xxxxxxxxxx</a></span></div> 

Thanks,
Stefanus

wicked80 04-11-2009 06:18 PM

Hi Friends,
I did an upgrade to 1.2.4 and all of a sudden none of my usergroups are able to view any videos.The strange thing is I am not able to check this settting under 'usergroup->video-directory permissions':

Can watch and view video details

Everytime, I say 'yes' and click save, it saves. But then when I try to view it again, it resets it automatically to 'No'.

Can someone help me, I am using 3.8.0 and I have appropriate permissions set for each category under 'Video->Manage Categories'.

Zarxrax 04-11-2009 07:24 PM

How can I set this up so that only certain user groups can post videos into a certain category, but general users can post videos in other categories? I want to have a category for "official" videos for my site, and separate categories for user-supplied videos.

Michael.A 04-13-2009 12:10 AM

well i have Video-directory on one of my forums and is working fin an tell today i trad to add a you tupe video and the img of the video did not show up so i went to look on the ftp and the img was there but the size of it was '' 0 '' so can u plzz help me fix this thank you.

forum url = http://coderz4life.com/forums/video.php


All times are GMT. The time now is 09:20 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.02874 seconds
  • Memory Usage 1,757KB
  • 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
  • (2)bbcode_php_printable
  • (2)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