PDA

View Full Version : Forum Home Enhancements - Video Directory FH List


Twilkey
11-14-2008, 10:00 PM
Video-Directory - developed by vBPoint.org (http://vbpoint.org/)

The Skinny
This mod is a beast in a small package. When I was working on this addition to the Video Directory (https://vborg.vbsupport.ru/showthread.php?t=192241) I kept trying to think of more things to add. But now that version 1.1.0 RC 2 is released, I figured it was time to release the first version of this mod.

What this mod does, is basically a couple things. You can list videos on your forum home in a vertical sidebar table (If you have a sidebar already then you may need help getting this to work that way.), or you can display the videos in one of two versions of a horizontal table. The first version is just a basic version. This version only displays the thumbnail image and the name of the video linked to the video post. The second version is a more detailed version. This version allows you to list the videos to blend with the forums. The table has information such as, thumbnail, linked title, description, view count, comment count, and last comment posted by.

Installation
1. Import the product in your admincp.
2. Search in your FORUMHOME template
Find:
$navbar
Add Below:
$fhlist_shell
Find:
$footer
Add Above:
<if condition="$vboptions[vert_horiz] > 0">
</td>
</table>
</if>

Uninstall
1. Uninstall the product from your admincp.
2. Search in your FORUMHOME template
Find and delete both:
$fhlist_shell
<if condition="$vboptions[vert_horiz] > 0">
</td>
</table>
</if>

Developer-Blog:

Feel free to check out our Developer-Blog at vBPoint.org (http://vbpoint.org/board/blog.php?u=1&blogcategoryid=6)!

Tilly
11-15-2008, 01:07 PM
First :D

Twilkey
11-15-2008, 01:14 PM
First :D
If you use this, you might want to click install. I plan to add things and if you click install, you will get an email.

Tilly
11-15-2008, 01:20 PM
If you use this, you might want to click install. I plan to add things and if you click install, you will get an email.

Done...installed, trying to tweak it though because I am a big module user of vbadvanced and dont have a navbar...and the sidebar is screwing up my forum display...cool though was wondering when you would add something like this

swissknife
11-15-2008, 02:19 PM
Hi!

I tried it and it works fine. BUT : This addon produceses some w3c-errors. is that a specific problem of my forum?

Please see here for the list auf errors. (http://www.boards-united.com/members/ky--albums-allgemeines-album-picture1909-invalid-markup-validation-of-http-www-boards.png)

Natea
11-15-2008, 03:34 PM
I have a sidebar in my forums. How I add latest videos below "recent screenshots" sidebar?

Look my style -> http://www.la-tia.com/foros/index.php

jiffylb1
11-15-2008, 06:40 PM
works fine but how can i get the forum intgeration that you have in the media thread and also ho wcan I make this or place the code or were si the code to use for portal integration. Ii woudl liek to have it on the portal insetad fo the forum what code woudl I use for a php block to pull the same info and remove it from forum?

www.clearwaterbiker.biz/forum

AWMGolfer
11-15-2008, 06:50 PM
I have it installed but for me it just is too much to have on the forum page but if anyone gets this working for vbadvanced can you post or send me a note on what you did. If I get some time in the next couple of weeks I will see what I can do but if someone does it first it would be much appreciated!!

Adam

Twilkey
11-15-2008, 08:36 PM
Hi!

I tried it and it works fine. BUT : This addon produceses some w3c-errors. is that a specific problem of my forum?

Please see here for the list auf errors. (http://www.boards-united.com/members/ky--albums-allgemeines-album-picture1909-invalid-markup-validation-of-http-www-boards.png)

All those errors are outside my templates, so it is your forum that is doing it.

works fine but how can i get the forum intgeration that you have in the media thread and also ho wcan I make this or place the code or were si the code to use for portal integration. Ii woudl liek to have it on the portal insetad fo the forum what code woudl I use for a php block to pull the same info and remove it from forum?

www.clearwaterbiker.biz/forum (http://www.clearwaterbiker.biz/forum)

Not sure I really understand most of that post, but Post in the Video Directory thread asking for the portal module. One has been made, I am just not sure it has been released yet.

I have it installed but for me it just is too much to have on the forum page but if anyone gets this working for vbadvanced can you post or send me a note on what you did. If I get some time in the next couple of weeks I will see what I can do but if someone does it first it would be much appreciated!!

Adam
Post in the Video Directory thread asking for the portal module. One has been made, I am just not sure it has been released yet.

Twilkey
11-15-2008, 08:40 PM
I have a sidebar in my forums. How I add latest videos below "recent screenshots" sidebar?

Look my style -> http://www.la-tia.com/foros/index.php
Sorry I skipped you. I am going to need to see the code from your forumhome template or whatever holds the sidebar code.

gcxboxps
11-15-2008, 08:58 PM
I will be installing this today myself. Does your instructions here list the code to make it "horizontal" like you have in the preview above? I want mine to be horizontal on my forum's homepage here: forums.hastyhost.com

I just asked about how to do this like 4 days ago and it's funny that you create this hehe :)

gcxboxps
11-15-2008, 09:03 PM
lol nevermind. Just insatlled it and it automatically made it horizontal. Sweet

Natea
11-15-2008, 10:08 PM
Sorry I skipped you. I am going to need to see the code from your forumhome template or whatever holds the sidebar code.

The code of sidebar is located in footer template. Here's the code:

$ad_location[ad_footer_start]

<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>

$spacer_close
<!-- /content area table -->

<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>

<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]<br />
<em>Designed by: </em><a href="http://www.la-tia.com/foros/member.php?u=1"><strong>Natea</strong></a>
</div>
</div>
<br />

<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" class="tborder" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="./archive/index.php">$vbphrase[archive]</a> -</if>
$template_hook[footer_links]
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>

</form>

$ad_location[ad_footer_end]

<!-- close the left content div -->
</div>
<div id="main_end">
<span class="main_endLeft"></span>
<span class="main_endRight"></span>
</div>

<div id="statusLegend" class="nopad">
<ul>
<li id="status1">$vbphrase[forum_contains_new_posts]</li>
<li id="status2">$vbphrase[forum_contains_no_new_posts]</li>
<li id="status3">$vbphrase[forum_is_closed_for_posting]</li>
</ul>
</div>
</div>
<!-- / close the left content div -->
<!-- Sidebar -->
<div id="right" class="nopad">
<h2 id="login">Membership Login</h2>
<div class="alt3" id="loginForm">
<if condition="$show['member']">
<div>
<strong><phrase 1="$bbuserinfo[username]" 2="http://www.la-tia.com/foros/member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />

<a href="http://www.la-tia.com/foros/profile.php?$session[sessionurl]do=editavatar"><img src="http://www.la-tia.com/foros/image.php?u=$bbuserinfo[userid]" alt="Tu avatar" border="0" /></a>
<br />
<br />

<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['notifications'] AND $show['popups']">
<div><span id="notifications"><a href="http://www.la-tia.com/foros/usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
<br />
<div style="line-height: 150%">
<a href="http://www.la-tia.com/foros/search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts]</a>: $newposts<br />
<a href="http://www.la-tia.com/foros/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a><br />
<a href="http://www.la-tia.com/foros/login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a>
</div>
<else />
<!-- login form -->
<form action="http://www.la-tia.com/foros/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<div>
<input type="text" class="loginput loginputuser" name="vb_login_username" id="navbar_username" accesskey="u" tabindex="101" />
<input type="password" class="loginput loginputpass" name="vb_login_password" id="navbar_password" tabindex="102" />
</div>
<div>
<label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" /> $vbphrase[remember_me]</label>
</div>
<div align="right">
<input type="submit" value=" " class="logingo" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" />
</div>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</if>
</div>
<div class="alt3end"><!-- corners --></div>

<h2 id="screenshots">Recent Screenshots</h2>
<div class="alt3">

<!-- screenshots script -->

</div>
<div class="alt3end"><!-- corners --></div>

</div>
<!-- / sidebar -->


<!-- close the container & background div -->
</div>
</div>
<!-- / close the background div -->

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

gcxboxps
11-15-2008, 11:00 PM
Hi,

For the horizontal method, is there a way to make it so that the table seperate them equally?

Meaning, if one video "text(title name)" is too long, it pushes the other videos over and makes the table look unbalanced.

I think this just helps the videos and forums flow well together if there is a way to keep the videos balanced or make the tables have the same width.

OR

Another method would be, taking the name out from underneath it, but I know most people would like to keep that there, but just in case, what would you do to just take the "text" out from under the video?

Thanks :)

Saint_I_Am
11-16-2008, 10:47 AM
nevermind, got it

Twilkey
11-16-2008, 09:30 PM
The code of sidebar is located in footer template. Here's the
I think it would be easier if I just did it for you. PM me an admin account to your site and I will take a look.

Hi,

For the horizontal method, is there a way to make it so that the table seperate them equally?

Meaning, if one video "text(title name)" is too long, it pushes the other videos over and makes the table look unbalanced.

I think this just helps the videos and forums flow well together if there is a way to keep the videos balanced or make the tables have the same width.

OR

Another method would be, taking the name out from underneath it, but I know most people would like to keep that there, but just in case, what would you do to just take the "text" out from under the video?

Thanks :)
Go in to your video_fh_bit template and delete the following code.
<br />
<span class="smallfont">
<a href="$video[url]">$video[title]</a>
</span>

Daky
11-18-2008, 03:36 PM
Thank you, love it!

gcxboxps
11-22-2008, 03:14 AM
Thanks!

1) Last thing, is there a way we can list more than just 3 videos on the horizontal style?
2) And is there a way to change the size of the videos that appear on the forum homepage?

Thanks again!

gcxboxps
11-22-2008, 03:24 AM
Nevermind found it. For others that want to know how, it's in the VBoptions area for the number of videos you want to show.

As for the height, you can find this in the same template file: video_fh_bit

jiffylb1
11-22-2008, 11:30 AM
i edited the videos to 4 in the vbulletin options it still only shows 3 on the forum?

how can i get the code to place the random videos in the portal home page in a module?
so I increased the height and is then better with only 3 in there.

jiffylb1
11-22-2008, 11:50 AM
All those errors are outside my templates, so it is your forum that is doing it.



Not sure I really understand most of that post, but Post in the Video Directory thread asking for the portal module. One has been made, I am just not sure it has been released yet.


Post in the Video Directory thread asking for the portal module. One has been made, I am just not sure it has been released yet.


well what I was trying to say is. I like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=89411&d=1226752758

and would like this feature in my forum topic multimedia but I have nto been able to get that part to work on clearwaterbiker.biz

jiffylb1
11-22-2008, 11:52 AM
will you add a mod for myspace videos

momo2
11-23-2008, 03:15 AM
works fine for me, but it only come in Text links no photos showing !! what should i do ?

I want to thumbnail showing !!!

valdet
11-25-2008, 01:10 PM
Great hack and thanks for your hard work.

Can you make a module to display Latest X videos for vBadvanced, similar to Latest Pictures module?

https://vborg.vbsupport.ru/showthread.php?t=193238

Regards.

FRANKTHETANK 2
11-29-2008, 11:53 PM
this works great. thanks alot. a module is a great idea for home page

Twilkey
11-30-2008, 12:04 PM
vBa module is in the works.

Ozidoggy
12-02-2008, 12:32 AM
What file do I edit to change the name "Videos" to "Random videos - click here for more"

valdet
12-02-2008, 10:22 AM
vBa module is in the works.

Great news.

Thank you very much for your time.
I look forward to your reply.

TriMe
12-02-2008, 07:30 PM
great stuff! Thanks for your hard work.

Installed

valdet
12-06-2008, 10:32 AM
Trying to make this into a vBAdvanced module for my site isn't working on my end atm..

I hope Twilkey comes up with a vBA module soon.

Thanks

TriMe
12-06-2008, 01:26 PM
Same here! :)

yakuza35
12-15-2008, 08:16 PM
how can I show this on vbadvanced portal?

ArnyVee
12-19-2008, 03:17 PM
I'd like to have it so that it blends in with the forums, is that done via options in admincp?

I haven't downloaded yet, just trying to find out beforehand as I'm in the process of setting up the VideoDirectory.

Edited: I just installed it and, yes, it's done through the admincp for the options. :)

ArnyVee
12-20-2008, 03:01 AM
Just thought of something....can you make the text "Videos" into a link like the categories? And if so, how do you do it?

See attachment for where I'd like to make a link.

burlesque
12-20-2008, 07:41 PM
I'm finding that the links are showing without the clean URLs that vbSEO creates. I've got the main mod working perfectly with vBSEO - any ideas on how to fix?

abhimation
12-22-2008, 01:55 PM
This is exactly what i was looking for. Thnx !

Instead of Random videos, can we have best rated or latest added ?

Artes_Marciales
12-22-2008, 04:43 PM
Install!! : )

But this mod show "uncached templates"
http://img125.imageshack.us/img125/7614/uncachedtemplatespi9.th.jpg (http://img125.imageshack.us/my.php?image=uncachedtemplatespi9.jpg)

Artes_Marciales
12-22-2008, 06:13 PM
Installed!!

ArnyVee
12-24-2008, 02:08 PM
Just thought of something....can you make the text "Videos" into a link like the categories? And if so, how do you do it?

See attachment for where I'd like to make a link.

Any thoughts on where I can find the piece to edit to get this changed to a link to the "video directory home page"?

Twilkey
01-02-2009, 04:53 PM
Ok guys, I just moved and have yet to get internet. When I get it, I will go over your replies and possibly recode this to make it better.

dascrow
01-09-2009, 05:38 PM
Any update on making it work with VBA?

ArnyVee
01-09-2009, 05:48 PM
dascrow,

There is already a mod for vBa ... https://vborg.vbsupport.ru/showthread.php?t=199084

:D

GlamRockTalk
01-11-2009, 03:08 AM
This mod rocks! :D

Veer
01-12-2009, 06:03 PM
Can you make it collapsible?

GlamRockTalk
01-23-2009, 06:40 PM
I noticed that this mod is showing the 'latest comments' as the first comment made and not the most recent.

I had a video a few days ago that showed with 2 comments, but instead of showing the username of the 'last comments', it showed the username of the person that made the first comments on the video.

How can we adjust that?

ArnyVee
03-18-2009, 01:59 AM
I'm using the Video-Directory Remixed mod and when using this mod with that one, it looks like the "latest comments" are showing as the original person posting and not the most recent person placing the comments. Is there a fix for this?

Here's an example...

http://www.waltdisneyboards.com/forums.php <--forum home where this mod is installed

http://www.waltdisneyboards.com/videos/?do=viewdetails&videoid=195 <--video in question from forum home (1st one listed)

ahmedipa
06-06-2009, 05:11 AM
good job but I want to know if I can put it in the memberinfo for the user or not

thank you very much

VonDoom
07-25-2009, 05:59 AM
Kick A** Replaced Random Album Pictures on FH. I would however like to see this above whats going on. Would this be as simple as moving the edits to another template? Actually id like to see an option to place this in alt locations. Same as Random Album Pictures options.

Either way *Installed* and lovin it!!!

RTMdotORG
07-26-2009, 02:06 PM
Also...
alot of your breaks are <br>

they should be <br />


and to change the "Videos" to a link...

go to video_fh_shell_detail

find:
$vbphrase[videos]

change to something like
<a href="video.php">$vbphrase[videos]</a>

ArnyVee
07-26-2009, 03:14 PM
Thank you RTMdotORG! :up:

RTMdotORG
07-27-2009, 03:50 PM
also if you dont have a footer image in
video_fh_shell_detail
find:

<tbody>
<tr>
<td class="tfoot" align="center" colspan="6">&nbsp;</td>
</tr>
</tbody>


and delete it.

VonDoom
07-27-2009, 04:43 PM
Anybody have any idea on how i can move this below forums, above whats going on?

RTMdotORG
07-30-2009, 05:07 PM
Here's my prob..... if you log out and look at the videos, it ONLY shows 1 video....anyway to change?

ArnyVee
09-27-2009, 04:33 AM
I found lots of validation errors with this mod. It looks like it's due to the videos having an ampersand "&" and not having the "amp;" which causes validation errors.

How do we fix that for this mod?