vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Major Additions - Video-Directory (https://vborg.vbsupport.ru/showthread.php?t=192241)

ArnyVee 12-19-2008 02:30 PM

Thanks for sharing Jaxel! :D

I might have to add this mod to both of my vB sites now! ;)

jlew24asu 12-19-2008 03:47 PM

great mod. wish I had use for videos though

Surviver 12-19-2008 04:00 PM

Quote:

Originally Posted by Jaxel (Post 1688483)
Okay a few new changes... included is a NEW video.php, and two updated templates...

These changes fix the formatting mistakes of Survivor's Comment Deletion system.

REPLACE your "video_details" template with the following:
HTML Code:

<if condition="$numberregistered">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('watching_members')"><img id="collapseimg_watching_members" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_watching_members].gif" alt="" border="0" /></a> <phrase 1="$totalonline" 2="$numberregistered" 3="$numberguest">$vbphrase[members_who_are_watching_this_video]</phrase>
        </td>
</tr>
<tbody id="collapseobj_watching_members" style="$vbcollapse[collapseobj_watching_members]">
<tr valign="top">
        <td class="alt1">
                $activeusers
        </td>
</tr>
</tbody>
</table>

<br />
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">
                <a style="float: $stylevar[right]" href="#top" onclick="return toggle_collapse('videocomments')"><img id="collapseimg_videocomments" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_videocomments].gif" alt="" border="0" /></a> <a name="comments"></a>$vbphrase[comments]
        </td>
</tr>
<tbody id="collapseobj_videocomments" style="$vbcollapse[collapseobj_videocomments]">
<if condition="!$videoinfo['commentcount']">
<tr valign="top">
        <td class="alt1" align="center">$vbphrase[there_are_no_comments_to_this_video]</td>
</tr>
<else />
        $commentbits
</if>
</tbody>
</table>

<if condition="$pagenav">
        $pagenav
</if>

<br />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">
                <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('videodetails')"><img id="collapseimg_videodetails" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_videodetails].gif" alt="" border="0" /></a> $vbphrase[video_details]
        </td>
</tr>
<tbody id="collapseobj_videodetails" style="$vbcollapse[collapseobj_videodetails]">
<tr valign="top">
        <td class="panelsurround" align="center">
        <div class="panel">
                <div align="center">
                        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="margin-bottom: 10px;">
                        <colgroup>
                                <col width="20%" />
                                <col width="80%" />
                        </colgroup>
                        <tr>
                                <td class="alt2" align="left" width="20%">
                                        $vbphrase[title]
                                </td>
                                <td class="alt2" align="left">
                                        $videoinfo[title]
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[video_category]
                                </td>
                                <td class="alt2" align="left">
                                        <a href="video.php?$session[sessionurl]do=viewcategory&amp;categoryid=$catinfo[videocategoryid]">$catinfo[title]</a>
                                </td>
                        </tr>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[rating]
                                </td>
                                <td class="alt2" align="left">
                                        <if condition="$show['videorating']">
                                                <div id="videorating">
                                                        <if condition="$show['popups']">
                                                                <if condition="$show['rating']">
                                                                        <a href="$show[nojs_link]" id="videorating_current"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$videoinfo[rating].gif" alt="<phrase 1="$videoinfo[ratingnum]" 2="$videoinfo[ratingavg]">$vbphrase[rating_x_votes_y_average]</phrase>" border="0" /></a>
                                                                <else />
                                                                        <a href="$show[nojs_link]" id="videorating_current">$vbphrase[rate_this_video]</a>
                                                                </if>
                                                                <script type="text/javascript"> vbmenu_register("videorating"); </script>
                                                        <else />
                                                                <!-- Non JS Stuff -->
                                                                <if condition="$show['rating']">
                                                                        <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$videoinfo[rating].gif" alt="<phrase 1="$videoinfo[ratingnum]" 2="$videoinfo[ratingavg]">$vbphrase[rating_x_votes_y_average]</phrase>" border="0" />
                                                                <else />
                                                                        $vbphrase[rate_this_video_entry]
                                                                </if>
                                                                <a name="goto_videorating"></a>
                                                                <form action="video.php?do=ratevideo&amp;videoid=$videoinfo[videoid]" method="post" style="display: inline">
                                                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                                                        <input type="hidden" name="s" value="$session[dbsessionhash]" />
                                                                        <input type="hidden" name="do" value="ratevideo" />
                                                                        <input type="hidden" name="videoid" value="$videoinfo[videoid]" />
                                                                        <select name="vote" onchange="this.form.submit()" style="width: 175px">
                                                                                <optgroup label="$vbphrase[choose_a_rating]">
                                                                                        <option value="5" $voteselected[5]>5 : $vbphrase[excellent]</option>
                                                                                        <option value="4" $voteselected[4]>4 : $vbphrase[good]</option>
                                                                                        <option value="3" $voteselected[3]>3 : $vbphrase[average]</option>
                                                                                        <option value="2" $voteselected[2]>2 : $vbphrase[bad]</option>
                                                                                        <option value="1" $voteselected[1]>1 : $vbphrase[terrible]</option>
                                                                                </optgroup>
                                                                        </select>$gobutton
                                                                </form>
                                                        </if>
                                                </div>
                                        </if>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[date]
                                </td>
                                <td class="alt2" align="left">
                                        $videoinfo[date], <span class="time">$videoinfo[time]</span>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[description]
                                </td>
                                <td class="alt2" align="left">
                                        $videoinfo[description]
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[by]
                                </td>
                                <td class="alt2" align="left">
                                        <a href="member.php?$session[sessionurl]u=$videoinfo[userid]">$videoinfo[musername]</a>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[video_service]
                                </td>
                                <td class="alt2" align="left">
                                        <a href="$videourl" target="_blank">$hostername</a>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[video_url]
                                </td>
                                <td class="alt2" align="left">
                                        <input type="text" class="bginput" size="70" onclick="this.focus(); this.select()" value="$videourl" readonly="readonly" />
                                </td>
                        </tr>
                <if condition="$videobbcode">
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[video_bbcode]
                                </td>
                                <td class="alt2" align="left">
                                        <textarea class="bginput" cols="70" rows="2" onclick="this.focus(); this.select()" value="$videobbcode" readonly="readonly">$videobbcode</textarea>
                                </td>
                        </tr>
                </if>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[embed_code]
                                </td>
                                <td class="alt2" align="left">
                                        <textarea class="bginput" cols="70" rows="6" onclick="this.focus(); this.select()" value="$embedcopy" readonly="readonly">$embedcopy</textarea>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[views]
                                </td>
                                <td class="alt2" align="left">
                                        <strong>$videoinfo[views]</strong>
                                </td>
                        </tr>
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[comment_count]
                                </td>
                                <td class="alt2" align="left">
                                        <strong>$videoinfo[commentcount]</strong>
                                </td>
                        </tr>
                <if condition="$show['editvideo'] OR $show['reportvideo']">
                        <tr>
                                <td class="alt2" align="left">
                                        $vbphrase[action]
                                </td>
                                <td class="alt2" align="left">
                                                                <if condition="$show['editvideo']"><a href="video.php?$session[sessionurl]do=editvideo&amp;videoid=$videoinfo[videoid]">[$vbphrase[edit]]</a></if> <if condition="$show['reportvideo']"><a id="report_video" href="">[$vbphrase[report_video]]</a><script type="text/javascript"> vbmenu_register("report_video", true); </script></if>
                                </td>
                        </tr>
                </if>
                        </table>
                </div>
        </div>
        </td>
</tr>
</tbody>
</table>

<if condition="$show['quickreply']">
        <!-- quick reply -->
        $vBeditTemplate[clientscript]
        <br />
        <script type="text/javascript" src="clientscript/vbulletin_quick_reply.js?v=$vboptions[simpleversion]"></script>
        <script type="text/javascript" src="clientscript/vbulletin_ajax_videocomment.js?v=$vboptions[simpleversion]"></script>

        <form action="video.php?do=postcomment&amp;videoid=$videoinfo[videoid]" method="post" name="vbform" onsubmit="return qr_prepare_video_comment_submit(this, $vboptions[videodirectory_commentminlength]);" id="qrform">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <thead>
                <tr>
                        <td class="thead" colspan="2">
                                <if condition="$show['quickreply_collapse']"><a style="float: $stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply')"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>
                                <phrase 1="$videoinfo[title]">$vbphrase[post_comment_to_video_x]</phrase>
                        </td>
                </tr>
        </thead>
        <tbody id="qr_error_tbody" style="display: none">
        <tr>
                <td class="thead">$vbphrase[errors_occured_when_submitted]</td>
        </tr>
        <tr>
                <td class="alt1" id="qr_error_td"></td>
        </tr>
        <tr>
                <td class="tfoot" align="center"><span class="smallfont"><a href="#" onclick="return qr_hide_errors()">$vbphrase[okay]</a></span></td>
        </tr>
        </tbody>
        <tbody id="collapseobj_quickreply" style="$vbcollapse[collapseobj_quickreply]">
        <tr>
                <td class="panelsurround" align="center">
                        <div class="panel">
                                <div align="$stylevar[left]" style="max-width: $stylevar[formwidth]; width: auto !important; width: $stylevar[formwidth]">
                                        <div class="smallfont">$vbphrase[message]:</div>
                                        <div id="$editorid" class="vBulletin_editor">$messagearea</div>
                                        $human_verify
                                </div>
                        </div>
                        <div style="margin-top: $stylevar[cellpadding]px">
                                <input type="hidden" name="fromquickreply" value="1" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <input type="hidden" name="do" value="postcomment" />
                                <input type="hidden" name="videoid" value="$videoinfo[videoid]" id="qr_videoid" />
                                <input type="hidden" name="postid" value="" id="qr_postid" />
                                <input type="hidden" name="parseurl" value="1" />
                                <input type="hidden" name="quickreply" value="0" id="qr_quickreply" />
                                <input type="hidden" name="preview" value="0" />
                                <input type="hidden" name="loggedinuser" value="$bbuserinfo[userid]" />
                                <input type="submit" class="button" value="$vbphrase[save_comment]" accesskey="s" title="(Alt + S)" name="sbutton" tabindex="2" id="qr_submit" onclick="clickedelm = this.value" />
                        </div>
                </td>
        </tr>
        </tbody>
        </table>
        </form>

        <if condition="!is_browser('ie') AND $show['wysiwyg']">
                <!-- Mozilla work around for focusing on QR in WYSIWYG mode -->
                <div id="qr_scroll"></div>
        </if>

        <script type="text/javascript">
        <!--
        // initialize quick reply
        qr_init();
        //-->

        </script>
        <!-- / quick reply -->
</if>

<if condition="$show['videorating'] AND $show['popups']">
        <!-- blog rating menu -->
        <div class="vbmenu_popup" id="videorating_menu" style="display: none">
        <form action="video.php?do=ratevideo&amp;videoid=$videoinfo[videoid]" method="post" id="video_videorate_form">
                <div class="thead" style="margin: 1px; white-space: nowrap">$vbphrase[rate_this_video]<a name="goto_videorating"></a></div>
                <if condition="$show['ratevideo']">
                        <div id="rating_ratedno">
                                <ul class="vbmenu_option nobullets" id="videorating_options" style="padding: 4px; margin: 1px; margin-top: 0px">
                                        <li class="smallfont"><label for="vote5"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_5.gif" alt="$vbphrase[excellent]" /><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label></li>
                                        <li class="smallfont"><label for="vote4"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_4.gif" alt="$vbphrase[good]" /><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label></li>
                                        <li class="smallfont"><label for="vote3"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_3.gif" alt="$vbphrase[average]" /><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label></li>
                                        <li class="smallfont"><label for="vote2"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_2.gif" alt="$vbphrase[bad]" /><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label></li>
                                        <li class="smallfont"><label for="vote1"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_1.gif" alt="$vbphrase[terrible]" /><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label></li>
                                </ul>
                                <div id="videorating_submit" class="vbmenu_option" align="center" style="padding: 4px; margin: 1px; margin-top: 0px">
                                        <input type="hidden" name="s" value="$session[dbsessionhash]" />
                                        <input type="hidden" name="do" value="ratevideo" />
                                        <input type="hidden" name="b" value="$videoinfo[videoid]" />
                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                        <input type="submit" class="button" value="$vbphrase[vote_now]" />
                                </div>
                        </div>
                        <if condition="!$vbulletin->options['votechange']">
                                <div id="rating_ratedyes" class="vbmenu_option" style="display:none; padding: 4px; margin: 1px; margin-top: 0px">$vbphrase[already_rated_this_video]</div>
                        </if>
                <else />
                        <div class="vbmenu_option" style="padding: 4px; margin: 1px; margin-top: 0px">$vbphrase[already_rated_this_video]</div>
                </if>
        </form>
        </div>
        <!-- / video rating menu -->

        <script type="text/javascript" src="clientscript/vbulletin_ajax_videorate.js?v=$vboptions[simpleversion]"></script>
        <script type="text/javascript">
        <!--
        vB_AJAX_VideoRate_Init('video_videorate_form');
        var videoid = $videoinfo[videoid];
        //-->

        </script>
</if>

<if condition="$show['popups'] AND $show['reportvideo']">
<div class="vbmenu_popup" id="report_video_menu" style="display:none" align="$stylevar[left]">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$vbphrase[report_video]</td>
        </tr>
        <tr>
                <td class="vbmenu_option" title="nohilite">
                        <form action="video.php?do=reportvideo" method="post">
                                <input type="hidden" name="do" value="reportvideo" />
                                <input type="hidden" name="s" value="$session[sessionhash]" />
                                <input type="hidden" name="videoid" value="$videoinfo[videoid]" />
                                <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                <div><input type="text" class="bginput" name="comment" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
                                <div style="margin-top:$stylevar[cellpadding]px">
                                        $report_categories_html
                                </div>
                        </form>
                </td>
        </tr>
        </table>
</div>
</if>

REPLACE your "video_deletecomment" template with the following:
HTML Code:

$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[add_new_video] - $catinfo[title]</title>
</head>
<body>

$header
$navbar

<form action="video.php?do=killcomment&amp;commentid=$videocomment[videocommentid]" method="post" name="vbform">

<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="commentid" value="$videocomment[videocommentid]" />
<input type="hidden" name="do" value="killcomment" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat">$vbphrase[delete_video_comment]</td>
</tr>
<tr>
        <td class="thead">$vbphrase[video_title]: <span style="font-weight:normal">$videoinfo[title]</span></td>
</tr>

<tr>
        <td class="panelsurround" align="center">
        <div class="panel">
                <div style="width:$stylevar[formwidth]" align="$stylevar[left]">

                <fieldset class="fieldset">
                        <legend>$vbphrase[deletion_options]</legend>
                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                        <tr>
                                <td>
                                        <div>
                                                <label for="rb_deletetype_0"><input type="radio" name="dodelete" value="0" id="rb_deletetype_0" checked="checked" />$vbphrase[do_not_delete_comment]</label>
                                        </div>
                                        <div>
                                                <label for="rb_deletetype_1"><input type="radio" name="dodelete" value="1" id="rb_deletetype_1" />$vbphrase[physically_remove_comment]</label>
                                        </div>
                                </td>
                        </tr>
                        </table>
                </fieldset>

                </div>
        </div>

        <div style="margin-top:$stylevar[cellpadding]px">
                <input type="submit" class="button" value="$vbphrase[delete_video_comment]" accesskey="s" />
                <input type="reset" class="button" value="$vbphrase[reset_fields]" accesskey="r" />
        </div>
        </td>
</tr>
</table>

</form>

$footer

</body>
</html>


Thanks you very much for sharing your changes!

Regards
Surviver

ArnyVee 12-19-2008 04:07 PM

Surviver, what is the process to have a brand-free option?

The Realist 12-19-2008 04:11 PM

I realised after I posted and see the section I needed.

Thanks.

Quote:

Originally Posted by TriMe (Post 1688788)
Post number 456 has the answer


Surviver 12-19-2008 04:17 PM

Quote:

Originally Posted by ArnyVee (Post 1688864)
Surviver, what is the process to have a brand-free option?

Send me a PM ;)

Jaxel 12-19-2008 06:37 PM

Quote:

Originally Posted by poromenos (Post 1688662)
hello,
I have the following problem:
I use Vbadvanced for the main page of my site (ninty.gr)
The link in the navigation bar goes to www.ninty.gr/video.php and not to www.ninty.gr/forum/video.php which is the correct adress
That happens only to the front page of my site ,in all other pages ,it has the correct link
I have added the video.php link to the list from vba panel but still nothing!
Any help??
Thanks in advance

ps. my site is www.ninty.gr

In your ADMIN CP... in the vBadvanced CMPS Default Settings... add "video.php" to the list of Navbar Replacements... that will fix your problem.

ArnyVee 12-20-2008 01:08 AM

Thanks Surviver and thanks for sharing your code Jaxel :D

Jaxel, how did you add the image right above the "views" on the video home?

Jaxel 12-20-2008 01:13 AM

ArnyVee... that is the rating of the video (0 - 5)... I set it up so that it ALWAYS shows the ratings... even if the rating is currently a 0 (which means no one has rated it yet). It just so happens that the default 0 rating image with VB is a blank image, the 0 rating image for my forum is an actual image.

TriMe 12-20-2008 01:24 AM

Jaxel, question for you.

If someone click on the video, they get re-directed to the youtube page... is there a way to get rid of that... so the embed video isn't actually 'clickable'?

Thanks for everything!

ArnyVee 12-20-2008 01:34 AM

Quote:

Originally Posted by Jaxel (Post 1689261)
ArnyVee... that is the rating of the video (0 - 5)... I set it up so that it ALWAYS shows the ratings... even if the rating is currently a 0 (which means no one has rated it yet). It just so happens that the default 0 rating image with VB is a blank image, the 0 rating image for my forum is an actual image.

Ahh..gotcha. Thanks for explaining that one! ;)

And, good point by TryMe, any way of fixing that?

TriMe 12-20-2008 01:35 AM

Quote:

Originally Posted by Jaxel (Post 1689261)
ArnyVee... that is the rating of the video (0 - 5)... I set it up so that it ALWAYS shows the ratings... even if the rating is currently a 0 (which means no one has rated it yet). It just so happens that the default 0 rating image with VB is a blank image, the 0 rating image for my forum is an actual image.

Is there a setting for that in vB or is there a hack I can download to do it as well? Its a great idea.

EDIT** Never mind.. I got it. Just make a gif and name it to rating_0.gif then upload :)

compact123 12-20-2008 02:30 AM

cool thx

ArnyVee 12-20-2008 03:51 AM

Quote:

Originally Posted by Jaxel (Post 1682035)
Okay... sub-categories are quickly becoming a MUST on my forums.

I'd have to agree that this is a must-have on this one. With certain forums (like my Disney-related site), I will have TONS of videos and from all sorts of things. So, if we don't get sub-categories, that list is going to be HUGE! :D

ArnyVee 12-20-2008 06:53 PM

Has anyone done anything with the categories to make them stand out or to help get some additional attention to them? The text seems sorta small, but I also didn't want to make it too large.

Anyone with any suggestions?

Marka Ragnos 12-20-2008 09:30 PM

well i'm working on making a new vbadvanced page strickly for the videos

http://www.kustmijnkloten.be/forum/c...p?pageid=video

the left navigation bar is for now just a copy of the homepage

i'm thinking of changing it to categories and small section for video of the week or something.

poromenos 12-21-2008 09:02 AM

Quote:

Originally Posted by Jaxel (Post 1688987)
In your ADMIN CP... in the vBadvanced CMPS Default Settings... add "video.php" to the list of Navbar Replacements... that will fix your problem.

I have already done this,but the problem remains!

Mr.samy 12-21-2008 07:25 PM

is any processing to active google video on it ?

rolandogomez 12-21-2008 11:50 PM

Quote:

Originally Posted by jlew24asu (Post 1688843)
great mod. wish I had use for videos though

You're kidding right? Here's my photography site with photoshop videos. Great for drawing traffic, more search engine listings, user's stay on the site longer, etc. I have almost 50 Photoshop videos on this link. Of course, now that I showed you, looks like we'll be competing for similar traffic (grins) All the best, really, this is a great mod for your site! My hat's off to everyone that's helping. Thanks, rg.

rolandogomez 12-21-2008 11:56 PM

Survivor, again, awesome product. I've just installed it on my newest site, http://www.phototherapy.org/forums/video.php and sent you payment for brand free--again! Two sites using your mod and I love it! Thanks! rg sends!

ForYou 12-22-2008 10:01 AM

Hello ,

Can the members upload there viedeo !!

I mean if the member have a video on his computer and need to upload on video directory !!

Regards

TriMe 12-22-2008 11:29 AM

Quote:

Originally Posted by ForYou (Post 1690966)
Hello ,

Can the members upload there viedeo !!

I mean if the member have a video on his computer and need to upload on video directory !!

Regards

No.

Leo Brazil 12-22-2008 02:11 PM

Quote:

Originally Posted by Jaxel (Post 1688987)
In your ADMIN CP... in the vBadvanced CMPS Default Settings... add "video.php" to the list of Navbar Replacements... that will fix your problem.

Quote:

Originally Posted by poromenos (Post 1690153)
I have already done this,but the problem remains!

Same to me here...

KW802 12-22-2008 02:37 PM

Quote:

Originally Posted by Jaxel (Post 1688987)
In your ADMIN CP... in the vBadvanced CMPS Default Settings... add "video.php" to the list of Navbar Replacements... that will fix your problem.

Quote:

Originally Posted by Leo Brazil (Post 1691099)
Same to me here...

Depending upon if you are using a custom style or not, and depending upon how that style was coded, you may need to put the replacement as a "header" replacement instead of a "navbar" replacement.

Leo Brazil 12-22-2008 05:44 PM

Quote:

Originally Posted by poromenos (Post 1688662)
hello,
I have the following problem:
I use Vbadvanced for the main page of my site (ninty.gr)
The link in the navigation bar goes to www.ninty.gr/video.php and not to www.ninty.gr/forum/video.php which is the correct adress
That happens only to the front page of my site ,in all other pages ,it has the correct link
I have added the video.php link to the list from vba panel but still nothing!
Any help??
Thanks in advance

ps. my site is www.ninty.gr

I've just got a fix for this, it helped for me.

Open navbar_videolink template

Find:

Code:

<td class="vbmenu_control"><a href="video.php$session[sessionurl_q]">$vbphrase[video_directory]</a></td>
and replace to:

Code:

<td class="vbmenu_control"><a href="/forum/video.php$session[sessionurl_q]">$vbphrase[video_directory]</a></td>
were: /forum/ is the location of your forum in case you use a different one

It worked for me, I hope it may help you.

TriMe 12-24-2008 04:18 AM

I tried my first YouTubeHD and had a thumbnail issue. It was because I had to create a folder called YouTubeHD in the site.com/videothumbnails/ folder and chmod it to 777.

ArnyVee 12-24-2008 02:27 PM

Quote:

Originally Posted by TriMe (Post 1692600)
I tried my first YouTubeHD and had a thumbnail issue. It was because I had to create a folder called YouTubeHD in the site.com/videothumbnails/ folder and chmod it to 777.

What a coincidence, I was just trying my first HD one as well. And, I got this message ....

Code:

Warning: fopen([path]/videothumbnails/YouTubeHD/xA9RIn2MNDk.jpg) [function.fopen]: failed to open stream: No such file or directory in [path]/includes/videoserviceapi/class_youtubehd.php on line 84

Warning: fwrite(): supplied argument is not a valid stream resource in [path]/includes/videoserviceapi/class_youtubehd.php on line 85

Warning: fclose(): supplied argument is not a valid stream resource in [path]/includes/videoserviceapi/class_youtubehd.php on line 86

So, I'm going to go ahead and add the folder and make sure that was the only issue. :)

Edited: Worked. Thanks TriMe :)

TriMe 12-24-2008 03:24 PM

[quote=ArnyVee;1692895

Edited: Worked. Thanks TriMe :)[/quote]

Good to hear. Merry Christmas. :)

ChipW 12-24-2008 09:23 PM

Just for anyone's information. I use 3.7 Beta 4. I changed the minimum version in the .xml file and it installed flawlessly and works great.

The only bug I have is no ACP links. But, I seen there was a video.php in the admincp folder and called it up. No problems.

Jaxel 12-24-2008 10:15 PM

Quote:

Originally Posted by Surviver (Post 1670493)
Thanks, i've updated the YouTube XML File for the next Release (Added an option to enable/disable the related videos)

If you don't want to wait for the next release, you can use the attached XML File!

Regards
Surviver

Survivor... the settings classes for videohoster XML files dont work... it gives an error in admincp/video.php

TriMe... I know what the problem is with your thumbnails not showing... send me a PM on AIM if you can.

Jaxel 12-25-2008 03:37 AM

I also have a question about this mod for Survivor...

Why do you store the uploader's username in the video table? Shouldn't the userid be enough? If you are reading the usernames from the video table, instead of the vbulletin user table, what happens when someone's username gets changed?

Jaxel 12-25-2008 05:33 AM

Okay... Merry Christmas Everyone! I have a whole bunch of new edits this time around... and I have made it easier by simply making them all into files for you...

The first file of course is "videoDirectory.XML"... this is simply my template edits. Just download the file and then import it into your style and you will get all my most recent updates. Don't forget of course to download the other files as some of my edits are dependant on them. This new version adds support for comment counting, and manages the new "isHD" variable I've created.

The next file is "video.php"... The core video script I have made a lot of changes to. Allow me to enumerate them...
  1. Added support for VIDEO-DETAILS-EMBED... this is the template I added so that the embedded video goes above the categories, isntead of to the right; this way there is more space for high definition videos.
  2. VideoBBCode now fetches the video title for bbcode embed tags.
  3. PageNav for comments on VIDEO-DETAILS now properly calls up construct_video_url. Why it was not doing this to begin with, when every other video url link was; is beyond me. SHAME ON YOU SURVIVOR! :D
  4. Per Survivor's hotfixes; RSS feeds are properly sanitized for IE and Opera.
  5. I have removed the "random" and "best rated" options for VIDEO-DETAILS. There is no reason to have these options for when people are viewing specific videos. I have left the "related video" options intact.
  6. The Delete Comment page is now constructed properly. It calls its own page, isntead of from the shell.

The new file this time around is "includes/functions_videodirectory.php"...
  1. The construct_video_bit function now has a new routine for handling the new isHD variable. Basically, if the video service for a video contains the word "HD" in it; it will mark the video as HD in the video_bit. (By default, I have this marking as a red "HD" tag). Now the HD tag will work for ANY high definition hosting service, as long as "HD" is in the $hostername (its inside the XML for the video-hoster).
  2. The construct_video_url and construct_category_url functions have been rewritten. For those of you using VBSEO, there will be no change for you. For everyone else, YOU NOW HAVE BASIC SEO! It's not perfect, its only for video and category links. You don't need TfSEO for this; it will work for anybody with Apache. To get the SEO functions, your .htaccess file must include the following:
    Code:

    RewriteEngine On

    #### VideoDirectory
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewdetails&videoid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewcategory&categoryid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)$ video.php?do=viewdetails&videoid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)$ video.php?do=viewcategory&categoryid=$3 [QSA,L]

  3. If you do not want to use the SEO functions (either you dont have an apache server, or dont have access to your .htaccess) delete or comment out the following line from video.php. You dont have to do this if you have VBSEO, since I set the priority to the function to search for VBSEO first, before it looks for this basic SEO... but you can delete the line if you so wish.
    Code:

    define('SEO_ENABLED', true);

Also included are new versions of YouTube.XML and YouTubeHD.XML.

Jaxel 12-25-2008 07:44 AM

Working on somethign new....

My video directory now has USER VIDEO PAGES....
http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=viewuser&userid=1
http://www.8wayrun.com/video-jaxel-u1

I'll upload this and further fixes to the basic SEO stuff later... Now EVERY link to videos, categories, and users is SEO.

Surviver 12-25-2008 09:29 PM

Quote:

Originally Posted by ChipW (Post 1693169)
Just for anyone's information. I use 3.7 Beta 4. I changed the minimum version in the .xml file and it installed flawlessly and works great.

The only bug I have is no ACP links. But, I seen there was a video.php in the admincp folder and called it up. No problems.

Can't confirm. Did you refresh the ACP?

Quote:

Originally Posted by Jaxel (Post 1693190)
Survivor... the settings classes for videohoster XML files dont work... it gives an error in admincp/video.php

TriMe... I know what the problem is with your thumbnails not showing... send me a PM on AIM if you can.

What error exactly do you get?

Quote:

Originally Posted by Jaxel (Post 1693285)
I also have a question about this mod for Survivor...

Why do you store the uploader's username in the video table? Shouldn't the userid be enough? If you are reading the usernames from the video table, instead of the vbulletin user table, what happens when someone's username gets changed?

The Column is for guests. If a guest posts a video, he has no id - we have to store the username in the video table ;)

Quote:

Originally Posted by Jaxel (Post 1693304)
Okay... Merry Christmas Everyone! I have a whole bunch of new edits this time around... and I have made it easier by simply making them all into files for you...

The first file of course is "videoDirectory.XML"... this is simply my template edits. Just download the file and then import it into your style and you will get all my most recent updates. Don't forget of course to download the other files as some of my edits are dependant on them. This new version adds support for comment counting, and manages the new "isHD" variable I've created.

The next file is "video.php"... The core video script I have made a lot of changes to. Allow me to enumerate them...
  1. Added support for VIDEO-DETAILS-EMBED... this is the template I added so that the embedded video goes above the categories, isntead of to the right; this way there is more space for high definition videos.
  2. VideoBBCode now fetches the video title for bbcode embed tags.
  3. PageNav for comments on VIDEO-DETAILS now properly calls up construct_video_url. Why it was not doing this to begin with, when every other video url link was; is beyond me. SHAME ON YOU SURVIVOR! :D
  4. Per Survivor's hotfixes; RSS feeds are properly sanitized for IE and Opera.
  5. I have removed the "random" and "best rated" options for VIDEO-DETAILS. There is no reason to have these options for when people are viewing specific videos. I have left the "related video" options intact.
  6. The Delete Comment page is now constructed properly. It calls its own page, isntead of from the shell.

The new file this time around is "includes/functions_videodirectory.php"...
  1. The construct_video_bit function now has a new routine for handling the new isHD variable. Basically, if the video service for a video contains the word "HD" in it; it will mark the video as HD in the video_bit. (By default, I have this marking as a red "HD" tag). Now the HD tag will work for ANY high definition hosting service, as long as "HD" is in the $hostername (its inside the XML for the video-hoster).
  2. The construct_video_url and construct_category_url functions have been rewritten. For those of you using VBSEO, there will be no change for you. For everyone else, YOU NOW HAVE BASIC SEO! It's not perfect, its only for video and category links. You don't need TfSEO for this; it will work for anybody with Apache. To get the SEO functions, your .htaccess file must include the following:
    Code:

    RewriteEngine On

    #### VideoDirectory
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewdetails&videoid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewcategory&categoryid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)$ video.php?do=viewdetails&videoid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)$ video.php?do=viewcategory&categoryid=$3 [QSA,L]

  3. If you do not want to use the SEO functions (either you dont have an apache server, or dont have access to your .htaccess) delete or comment out the following line from video.php. You dont have to do this if you have VBSEO, since I set the priority to the function to search for VBSEO first, before it looks for this basic SEO... but you can delete the line if you so wish.
    Code:

    define('SEO_ENABLED', true);

Also included are new versions of YouTube.XML and YouTubeHD.XML.

Quote:

Originally Posted by Jaxel (Post 1693336)
Working on somethign new....

My video directory now has USER VIDEO PAGES....
http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=viewuser&userid=1
http://www.8wayrun.com/video-jaxel-u1

I'll upload this and further fixes to the basic SEO stuff later... Now EVERY link to videos, categories, and users is SEO.

Very nice changes I hope, I'll be able to integrate some of them in Version 1.1.0. :)

But at the momenmt i don't have much time - i don't know when i'll be ready to release the next version ;)

I'm going to integrate the user's page in Version 1.2.0 :)

Regards
Surviver

PS: Sorry, that i replyed with a large delay - but as I said, i don't have much time at the moment ;)

puregraf 12-26-2008 02:33 AM

i tried to import the videoDirectory.xml file and my vbulletin said:

Importing Style, Please Wait...

[:]





vBulletin Message

This file was created using a different version of vBulletin from the one you are running.

Your version: 1.1.0 B 1
File version: 1.1.0 RC 2

Merry Christmas!!

Digital Jedi 12-26-2008 03:10 AM

Quote:

Originally Posted by puregraf (Post 1693746)
i tried to import the videoDirectory.xml file and my vbulletin said:

Importing Style, Please Wait...

[:]





vBulletin Message


This file was created using a different version of vBulletin from the one you are running.

Your version: 1.1.0 B 1
File version: 1.1.0 RC 2


Merry Christmas!!

Why are you trying to import a product through the Style Manager?

puregraf 12-26-2008 03:18 AM

because the directions said:

The first file of course is "videoDirectory.XML"... this is simply my template edits. Just download the file and then import it into your style

i imported as a product also and got same error

ArnyVee 12-26-2008 03:38 AM

Quote:

Originally Posted by Jaxel (Post 1693336)
Working on somethign new....

My video directory now has USER VIDEO PAGES....
http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=viewuser&userid=1
http://www.8wayrun.com/video-jaxel-u1

I'll upload this and further fixes to the basic SEO stuff later... Now EVERY link to videos, categories, and users is SEO.

I'll wait until this is added...great job Jaxel :D

I was going to do the update that you posted, but I'll wait and do everything at once. Thanks for sharing and for working on making this great mod even better! :up:

Digital Jedi 12-26-2008 08:47 AM

Quote:

Originally Posted by puregraf (Post 1693762)
because the directions said:

The first file of course is "videoDirectory.XML"... this is simply my template edits. Just download the file and then import it into your style



i imported as a product also and got same error

Oh, your talking about Jaxel's modifications. When you get a style conflict error, you have to set it to Ignore Style Version to get it to import.

Jaxel 12-26-2008 11:38 AM

Okay... here is my newest build information...

In efforts to make this easier, I have completely rebuilt the product file and enclosed all my changes in a zip file. Extract the zip, upload all the new files, then import the product. This is NOT a replacement product; its an ehancement. You must have Survivor's version first. There are of course several important notes you should read before doing anything...
  1. For some reason, when you re-install the Video-Directory, it does NOT save your previous settings for "Limits". Make sure you go into Videos > General Settings and record your settings in the "Limits" section. Everytime you upgrade, this stuff will be wiped out and I couldn't figure out how to fix Survivor's code to fix it.
    • I recommend the following settings for your limits...
    • 5 - 15 - 2 - 5 - 0 - 0 - 5 - 20 - 5
  2. When you re-install the Video-Directory, it also does not re-install your videohoster XML files. Simple, this means you need to re-import the two YouTube XML files I have included in the zip. Just import them and it will automatically overwrite your old YouTube XML files.
  3. You may need to update/revert your existing templates to get my new template edits.
  4. By default I have disabled the options for SEO-slugs. While yes, the SEO-slugs do work great; they inherintly break the Who's Online system. I don't know much about SEO or VBplugins, so chances are I wont be fixing this anytime soon. If you use VBSEO, the SEO-slug system doesn't affect you.
  5. If you so wish, you can enable the SEO-slugs as they are right now by uncommenting the following line in /video.php.
    Code:

    // define('SEO_ENABLED', true);
    And add the following to your .htaccess file:
    Code:

    RewriteEngine On

    #### VideoDirectory
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewdetails&videoid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-v([0-9]+)(.*)$ video.php?do=viewdetails&videoid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewcategory&categoryid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-c([0-9]+)(.*)$ video.php?do=viewcategory&categoryid=$3 [QSA,L]
    RewriteRule ^(.*)video-(.*)-u([0-9]+)(.*)&page=([0-9]+)$ video.php?do=viewuser&userid=$3&page=$5 [QSA,L]
    RewriteRule ^(.*)video-(.*)-u([0-9]+)(.*)$ video.php?do=viewuser&userid=$3 [QSA,L]

Okay... that was simple enough... now for my patch notes, once again being worked backwards with Beyond Compare 3

CHANGES TO product-videodirectory.xml from Survivor's Version
  • Fixed create table constructs to check for existance.
  • Added new column in videocategory for the indent level.
  • Rewrote ALL TEMPLATES to be more aestheticly pleasing.
  • Added templates "video_catbit_small_sub", "video_details_embed" and "video_user".
  • Added Who's Online information for video user pages.
  • Added missing phrases for many of the new features in my edits.
  • Rewrote the majority of the phrases in this mod for better English.
CHANGES TO /video.php from Survivor's Version
  • Added support for a basic SEO slug system.
  • Added support for a basic "sub-category" system. Its not actually sub categories; but I have made it so that you can define a "level" for each category. When listing categories on the sidebar, the system will now print out the contents of the template "video_catbit_small_sub" once for each level of the category. So by default, categories are level 0, and video_catbit_small_sub prints out 0 times. If you set a category to level 2, then the contents of video_catbit_small_sub will print out 2 times before it displays the category link. You can see an example of how this works here: http://www.8wayrun.com/video.php
  • Added support for contributor video pages. Very simple, click on the user link and it will go to a page listing all videos uploaded by that user.
  • Moved embed code to the top of the page using the template "video_details_embed". This gives more space for high definition video.
  • VideoBBCode now fetches the video title for bbcode embed tags.
  • PageNav for comments on VIDEO-DETAILS now properly calls up construct_video_url. Why it was not doing this to begin with, when every other video url link was; is beyond me. SHAME ON YOU SURVIVOR!
  • Per Survivor's hotfixes; RSS feeds are properly sanitized for IE and Opera. Firefox was displaying the broken RSS feed without issues; so most people didn't notice it.
  • I have removed the "random" and "best rated" options for VIDEO-DETAILS. There is no reason to have these options for when people are viewing specific videos. I have left the "related video" options intact.
  • The Delete Comment page is now constructed properly. It calls its own page, instead of from the shell.
  • I forced category display on all pages. In the original version, on certain pages, the category didn't show up in the videobit... now it always does.
CHANGES TO /admincp/video.php from Survivor's Version
  • Added support for the category "level" indenting system. In order to change the level of a category, you must do it in the category edit screen in your admincp. I tried to figure out how to do it from the display order screen; but as I said, I dont know much about VB plugins; so i couldn't figure it out.
  • Changed the videohoster "yesno" setting from "true : false" to "1 : 0"... The problem is that if you set something for true, it worked fine (it properly inputted "1" into the videohoster fields); but if you set something for false, it inputted a null instead of properly inputting "0". So now the "yesno" goes straight to the 1 or 0.
CHANGES TO /includes/class_dm_videocategory.php from Survivor's Version
  • Added support for the category "level" indenting system.
CHANGES TO /includes/functions_videodirectory.php from Survivor's Version
  • The construct_video_bit function now has a new routine for handling the new isHD variable. Basically, if the video service for a video contains the word "HD" in it; it will mark the video as HD in the video_bit. (By default, I have this marking as a red "HD" tag). Now the HD tag will work for ANY high definition hosting service, as long as "HD" is in the $hostername (its inside the XML for the video-hoster).
  • Added support for the contributor video pages.
  • Added support for the SEO slug system.
I've also rewritten the YouTube videohoster files, so that they have options for enabling/disabling fullscreen, autoplay and related video options.

@Survivor... you can pretty much incorporate ALL of my changes in your next version; this way at least you dont have to do much for the video user pages. You can download a program called Beyond Compare that will show you a line by line comparison to your files. Anyways, the biggest thing I want is a TAGGING system... get that asap! =P


All times are GMT. The time now is 02:01 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.02496 seconds
  • Memory Usage 2,144KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_html_printable
  • (25)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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