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)

Jaxel 12-03-2008 03:34 PM

Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

msnhockey 12-03-2008 07:54 PM

can you add your own videos with this????

tecnozul 12-04-2008 02:18 AM

Excellent this one, but there does not exist the possibility that supports videoes google?.

Excuse my English evil...

valdet 12-04-2008 07:26 AM

Quote:

Originally Posted by Jaxel (Post 1677845)
Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

Jaxel, thats awesome work.

Any hope you can share those code hacks you made..?

GlamRockTalk 12-04-2008 11:04 AM

Jaxel, beautiful work! :D

Please share your work with us! :)

Surviver 12-04-2008 12:39 PM

Quote:

Originally Posted by Jaxel (Post 1677845)
Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

Nice :) (What exactly did you change? Looks great, but seems not to be modified very hard :)

@BBCode Support: I prepared this already (You'd only have to add a method to the Hoster specific class file ;))

Quote:

Originally Posted by msnhockey (Post 1677997)
can you add your own videos with this????

No.

puregraf 12-04-2008 10:03 PM

1. thumbnails not being created , folder chmod to 777
2. how to check safemode is on or off?
3. can you create for next version unique meta tags to show for title of video as meta tag for page description?
4.ability to add more categories?
5. made the videos show wider,bigger
6. add tags


if you can help me fix my thumbnail it would really help out!

please, thanks!:D

winstone 12-05-2008 12:19 AM

would it be possible for you to share a sample video-hoster.xml file which not uses any API, for example adding videos from URLs like "domain.com/video.flv"

which should probably be easy for you, steps would be:
- match the domain,
- grab the video file from URL ($video-file)
- put the $video-file within spesific video embedding code or specify $video-type to later use in templates (for flash, windows media or silvelight video files)

puregraf 12-05-2008 01:44 AM

Quote:

Originally Posted by puregraf (Post 1678701)
1. thumbnails not being created , folder chmod to 777
2. how to check safemode is on or off?
3. can you create for next version unique meta tags to show for title of video as meta tag for page description?
4.ability to add more categories?
5. made the videos show wider,bigger
6. add tags


if you can help me fix my thumbnail it would really help out!

please, thanks!:D

ah yes, you need to chmode the folders inside videotumbnails for the thumbnails to show! at least for me now it works, maybe you should add that to the installation so other people that have this problem too!

thanks

Surviver 12-05-2008 04:09 AM

Quote:

Originally Posted by puregraf (Post 1678701)
1. thumbnails not being created , folder chmod to 777
2. how to check safemode is on or off?
3. can you create for next version unique meta tags to show for title of video as meta tag for page description?
4.ability to add more categories?
5. made the videos show wider,bigger
6. add tags


if you can help me fix my thumbnail it would really help out!

please, thanks!:D

2. phpinfo()
3. Maybe
4. Yes

Quote:

Originally Posted by winstone (Post 1678757)
would it be possible for you to share a sample video-hoster.xml file which not uses any API, for example adding videos from URLs like "domain.com/video.flv"

which should probably be easy for you, steps would be:
- match the domain,
- grab the video file from URL ($video-file)
- put the $video-file within spesific video embedding code or specify $video-type to later use in templates (for flash, windows media or silvelight video files)

No, each api is completely different, and many hosters don't have one. There's also another was to integrate them, but that could be very cpmplex.

Quote:

Originally Posted by puregraf (Post 1678795)
ah yes, you need to chmode the folders inside videotumbnails for the thumbnails to show! at least for me now it works, maybe you should add that to the installation so other people that have this problem too!

thanks

Yes, I'll do :)

winstone 12-05-2008 08:53 AM

Quote:

Originally Posted by Surviver
No, each api is completely different, and many hosters don't have one. There's also another was to integrate them, but that could be very cpmplex.

my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

Edit:
if interested to use this, after installation create a folder called "WeGame" (case sensitive) in "videothumbnails" folder and give it write(777) permission

Surviver 12-05-2008 11:42 AM

Quote:

Originally Posted by winstone (Post 1678920)
my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

Very nice! This XML Page i called api (it's not a full api, but it's eneught).

I'll modify it a bit and integrate it into the next release!

Regards
Surviver

TriMe 12-05-2008 01:31 PM

Quote:

Originally Posted by Jaxel (Post 1677845)
Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

That's amazing! Please share your work with us!

TriMe

puregraf 12-05-2008 02:41 PM

I cant figure out out to add /edit the categories can you please help?

Thanks

Surviver 12-05-2008 02:49 PM

Quote:

Originally Posted by puregraf (Post 1679062)
I cant figure out out to add /edit the categories can you please help?

Thanks

You can just add some via the ACP Menu?!

TriMe 12-05-2008 04:27 PM

Quote:

Originally Posted by puregraf (Post 1679062)
I cant figure out out to add /edit the categories can you please help?

Thanks

Make sure your administrator usergroup has permissions set.

and as Survivor said - in your admincp

puregraf 12-05-2008 08:33 PM

ah! i totally missed that, thank you!!! this contrib rocks!

nightbloom 12-06-2008 11:23 PM

Quote:

Originally Posted by winstone (Post 1678920)
my question was having a sample plugin code (sample hoster) which does not uses any API, you simply get the URL, extract the variable from it and finally wrap the variable with html stuff, that shouldn't be complex

btw I saw a guy who wanted a WeGame hoster, I made one for it however it requires PHP5 with SimpleXML libraries (couldn't get the built-in vbulletin XML class to work, perhaps you can fix it Surviver and maybe include in future releases)

When I tried to use it, I got an error and the thumbnail creation failed. *frustrated* So close.... The video shows tho and will play but I uninstalled it.

Ooooooh someone fix it for me! My forum members are gathering the pitchforks and torches.......
PHP Code:

Warningfopen([path]/videothumbnails/WeGame/SRO_s_Original_Trailer.jpg) [function.fopen]: failed to open streamNo such file or directory in [path]/includes/videoserviceapi/class_wegame.php on line 95

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

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

 
/** * vBulletin 3.7.4 CSS * Style: 'Fly's 1337 skin'; Style ID: 3 */ @import url("clientscript/vbulletin_css/style-ffaa9bb7-00003.css"); 


winstone 12-07-2008 03:29 AM

Quote:

Originally Posted by nightbloom (Post 1679933)
When I tried to use it, I got an error and the thumbnail creation failed.

all you need to do is, creating a folder called "WeGame" (case sensitive) in "videothumbnails" folder and giving it write(777) permission

as for PHP5 question, it seems you already have PHP5 with SimpleXML libraries

winstone 12-07-2008 03:34 AM

a feature request to Survivor,

-> multi-level categories

all that needs to be done is adding "parentid" to cats and creating a function to show them all in right structure

by the way I modified the code to have maximum 3 level cats but it's not worth sharing as its just a nested while loop

cheers

nightbloom 12-07-2008 03:38 AM

*muah* I feel dumb. That WORKED! ^^

winstone 12-07-2008 06:36 AM

now supports PHP4 and uses built-in vbulletin XML class :) (minimum PHP 4.3.0)

Surviver 12-07-2008 07:37 AM

Quote:

Originally Posted by winstone (Post 1680024)
a feature request to Survivor,

-> multi-level categories

all that needs to be done is adding "parentid" to cats and creating a function to show them all in right structure

by the way I modified the code to have maximum 3 level cats but it's not worth sharing as its just a nested while loop

cheers

It's not that easy ;)

1.1.0 will containiing all necessary Database Columns for this.

Quote:

Originally Posted by winstone (Post 1680071)
now supports PHP4 and uses built-in vbulletin XML class :) (minimum PHP 4.3.0)

A WeGame Class using the vBulletin Defaultclasses will be integrated in the next release ;)

F0xy 12-08-2008 07:15 PM

Quote:

Originally Posted by Jaxel (Post 1677845)
Survivor... I've made a crap ton of changes to your code on my own forums... in the scripts, and in the templates... This is what I have now:

http://www.8wayrun.com/video.php
http://www.8wayrun.com/video.php?do=...ls&videoid=230

I changed a lot of the formatting, so that it looks less generic and can display more information a single screen... plus, on the video details pages, hacked your code up to support BB Code for [youtube] tags.

are you going to release this update and if not Surviver are you going to implement bbcode in the next update and when can we expect the next update?

Jaxel 12-09-2008 12:53 AM

Okay... here is how you add BBCode... (I'm doing this with BeyondCompare3, so if I forget something, I'm sorry)

in VIDEO.PHP FIND:
PHP Code:

$videobbcode $obj->fetch_videobbcode($videoinfo['videoidservice']); 

REPLACE WITH:
PHP Code:

$videobbcode $obj->fetch_videobbcode($videoinfo['videoidservice'], $videoinfo['title']); 

FIND:
PHP Code:

$xml->add_tag('source'$hostername, array('url' => $videourl)); 

REPLACE WITH:
PHP Code:

$xml->add_tag('source'$hostername, array('url' => htmlspecialchars_uni($videourl))); 


In STYLES -> VIDEO-DETAILS REPLACE WITH:
PHP Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat">
        <
a href="$videourltarget="_blank">$videoinfo[title]</a>
    </
td>
</
tr>
<
tr>
    <
td class="panelsurround" align="center">
        <
div class="panel">
            
$embedhtml
        
</div>
    </
td>
</
tr>
</
table>

<if 
condition="$numberregistered">

<
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('watching_members')"><img id="collapseimg_watching_members" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_watching_members].gif" alt="" border="0" /></a> <phrase 1="$totalonline2="$numberregistered3="$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>
</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]>$vbphrase[excellent]</option>
                                            <
option value="4" $voteselected[4]>$vbphrase[good]</option>
                                            <
option value="3" $voteselected[3]>$vbphrase[average]</option>
                                            <
option value="2" $voteselected[2]>$vbphrase[bad]</option>
                                            <
option value="1" $voteselected[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="$videourltarget="_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="$videourlreadonly="readonly" />
                </
td>
            </
tr>
            <
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="$videobbcodereadonly="readonly">$videobbcode</textarea>
                </
td>
            </
tr>
            <
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="$embedcopyreadonly="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>

<
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('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">
    <
br />
    
$pagenav
</if>

<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="$editoridclass="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> 

Attached are the two YouTube XML files required for all this... (YouTube and YouTubeHD)
You don't have to use the YouTubeHD.xml, but you MUST use the included YouTube.xml

Here is my version of STYLES -> VIDEO-BIT if you care...
(The HD tag will only work if you are using the included YouTubeHD.xml)
PHP Code:

<tr>
    <
td class="alt2" width="1%" align="center"><a href="$video[url]"><img src="$video[thumbnailpath]alt="$video[title]title="$video[title]style="height: 54px;" border="0" /></a></td>
    <
td valign="top" class="alt1">
        <
span class="smallfont">
            <
span style="float: $stylevar[right]; text-align: right;"><small>
                <
a href="$video[caturl]">$video[cattitle]</a><br />
                
$video[date]<br /><span class="time">$video[time]</span><br />
                
$vbphrase[by] <a href="member.php?$session[sessionurl]u=$video[userid]">$video[musername]</a>
            </
small></span>
            <
strong><if condition="$video[videoservice]=='YouTubeHD'"><span style="color: #FF0000;">HD </span></if><a href="$video[url]">$video[title]</a></strong><br />
            
$video[description]
        </
span>
    </
td>
    <
td class="alt2" width="1%" align="center">
        <
img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$video[rating].gif" border="0" /><br />
        <
span class="smallfont"><small>$vbphrase[views]</small></span><br />
            <
big><strong>$video[views]</strong></big>
    </
td>
</
tr


Surviver 12-09-2008 04:07 AM

Quote:

Originally Posted by F0xy (Post 1681170)
are you going to release this update and if not Surviver are you going to implement bbcode in the next update and when can we expect the next update?

No, that will not be officially integrated!

Quote:

Originally Posted by Jaxel (Post 1681345)
Okay... here is how you add BBCode... (I'm doing this with BeyondCompare3, so if I forget something, I'm sorry)

in VIDEO.PHP FIND:
PHP Code:

$videobbcode $obj->fetch_videobbcode($videoinfo['videoidservice']); 

REPLACE WITH:
PHP Code:

$videobbcode $obj->fetch_videobbcode($videoinfo['videoidservice'], $videoinfo['title']); 

FIND:
PHP Code:

$xml->add_tag('source'$hostername, array('url' => $videourl)); 

REPLACE WITH:
PHP Code:

$xml->add_tag('source'$hostername, array('url' => htmlspecialchars_uni($videourl))); 


In STYLES -> VIDEO-DETAILS REPLACE WITH:
PHP Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat">
        <
a href="$videourltarget="_blank">$videoinfo[title]</a>
    </
td>
</
tr>
<
tr>
    <
td class="panelsurround" align="center">
        <
div class="panel">
            
$embedhtml
        
</div>
    </
td>
</
tr>
</
table>

<if 
condition="$numberregistered">

<
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('watching_members')"><img id="collapseimg_watching_members" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_watching_members].gif" alt="" border="0" /></a> <phrase 1="$totalonline2="$numberregistered3="$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>
</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]>$vbphrase[excellent]</option>
                                            <
option value="4" $voteselected[4]>$vbphrase[good]</option>
                                            <
option value="3" $voteselected[3]>$vbphrase[average]</option>
                                            <
option value="2" $voteselected[2]>$vbphrase[bad]</option>
                                            <
option value="1" $voteselected[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="$videourltarget="_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="$videourlreadonly="readonly" />
                </
td>
            </
tr>
            <
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="$videobbcodereadonly="readonly">$videobbcode</textarea>
                </
td>
            </
tr>
            <
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="$embedcopyreadonly="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>

<
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('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">
    <
br />
    
$pagenav
</if>

<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="$editoridclass="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> 

Attached are the two YouTube XML files required for all this... (YouTube and YouTubeHD)
You don't have to use the YouTubeHD.xml, but you MUST use the included YouTube.xml

Here is my version of STYLES -> VIDEO-BIT if you care...
(The HD tag will only work if you are using the included YouTubeHD.xml)
PHP Code:

<tr>
    <
td class="alt2" width="1%" align="center"><a href="$video[url]"><img src="$video[thumbnailpath]alt="$video[title]title="$video[title]style="height: 54px;" border="0" /></a></td>
    <
td valign="top" class="alt1">
        <
span class="smallfont">
            <
span style="float: $stylevar[right]; text-align: right;"><small>
                <
a href="$video[caturl]">$video[cattitle]</a><br />
                
$video[date]<br /><span class="time">$video[time]</span><br />
                
$vbphrase[by] <a href="member.php?$session[sessionurl]u=$video[userid]">$video[musername]</a>
            </
small></span>
            <
strong><if condition="$video[videoservice]=='YouTubeHD'"><span style="color: #FF0000;">HD </span></if><a href="$video[url]">$video[title]</a></strong><br />
            
$video[description]
        </
span>
    </
td>
    <
td class="alt2" width="1%" align="center">
        <
img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$video[rating].gif" border="0" /><br />
        <
span class="smallfont"><small>$vbphrase[views]</small></span><br />
            <
big><strong>$video[views]</strong></big>
    </
td>
</
tr


Maybe I'll integrate some of your changes (in the class file) in the next release.

Regards
Surviver

Jaxel 12-10-2008 12:58 AM

Okay... sub-categories are quickly becoming a MUST on my forums...

Also, anyone should be able to make categories.

winstone 12-10-2008 10:14 AM

I think this is a bug, even tho I have vbseo (latest gold version) installed and running on my forum, I can't get video urls to rewrite

general settings page of video directory in admincp shows:
Quote:

Obviously you have installed vBSEO, but the video-directory isn't integrated in vBSEO yet.

To rewrite the links of the video-directory, add in your vBSEO-control center in "user definded rewrite rules" what follows:

'video.php?do=viewdetails&categoryid=(d+)&category title=(.*)&videoid=(d+)&videotitle=(.*)'=>'videos/$2-$1/$4-$3.html' 'video.php?do=viewcategory&categoryid=(d+)&categor ytitle=(.*)&page=(d+)'=>'videos/$2-$1/$3/' 'video.php?do=viewcategory&categoryid=(d+)&categor ytitle=(.*)'=>'videos/$2-$1/' 'video.php'=>'videos/'

After you have done that, this remark will disappear.
I've done what it says but this message is not disappearing and the only working URL is "video.php" one which becomes "/video/"
all other links are still the old style, e.g. "http://localhost/forums/videos/?do=viewdetails&categoryid=1&categorytitle=general &videoid=6&videotitle=xingmpeg-player-test-video"

@Jaxel,
I've done the necessary changes to have 3level categories but it's a repeated while loop within couple of files, I can share it if you want but its messy, it's better to have a function to do this or maybe use or copy one of the built-in vbulletin category functions

conker1 12-11-2008 04:35 PM

How can i see RSS feeds for videos ?

Thanks.

Surviver 12-12-2008 11:32 AM

Quote:

Originally Posted by conker1 (Post 1683242)
How can i see RSS feeds for videos ?

Thanks.

video.php?do=rss

Mr.samy 12-12-2008 10:47 PM

also here when i add vBSEO-Integration code nothing happen same as winstone https://vborg.vbsupport.ru/showpost....&postcount=468

TriMe 12-12-2008 10:55 PM

Quote:

Originally Posted by Mr.samy (Post 1684180)
also here when i add vBSEO-Integration code nothing happen same as winstone https://vborg.vbsupport.ru/showpost....&postcount=468

same here

Mr.samy 12-13-2008 12:09 AM

Note also metacafe url every time i put it appear to me invalid URL

Daky 12-13-2008 04:54 AM

Quote:

Originally Posted by TriMe (Post 1684182)
same here

for me as well ..

Surviver 12-13-2008 07:09 AM

Quote:

Originally Posted by Mr.samy (Post 1684215)
Note also metacafe url every time i put it appear to me invalid URL

Quote:

Originally Posted by Daky (Post 1684343)
for me as well ..

Maybe not all urls work properly.

Which urls did you try?

raiderlax 12-13-2008 08:23 AM

The best video mod I've seen!

Mr.samy 12-13-2008 10:56 AM

Quote:

Originally Posted by Surviver (Post 1684373)
Maybe not all urls work properly.

Which urls did you try?

Hello ,

some url is http://www.metacafe.com/watch/yt-IKA...affassy_ajami/

and also http://www.metacafe.com/watch/1723919//


.... and what about vbseo integration problem ???!!

conker1 12-13-2008 01:46 PM

RSS feeds link is wrong.

http://www.mydomain.com/video.php?do...amp;videoid=77

true link should be : http://www.mydomain.com/video.php?do...ils&videoid=77


Without amp;

Thanks.

TomJames 12-13-2008 01:51 PM

Wow this looks awesome, gonna try installing it on my test forum later ;)

yakuza35 12-13-2008 08:46 PM

I have a problem
1. I installed the product it Worked very nice
2. I uninstalled product
3. I wanted to install again I upload all files and then I installed product but I cant see anyvideo-hoster there is just a button "[Import video-hoster]" now what can I do about this problem help me pls


All times are GMT. The time now is 01:01 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.03312 seconds
  • Memory Usage 2,590KB
  • 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
  • (13)bbcode_php_printable
  • (26)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