Thread: Major Additions - Video-Directory
View Single Post
  #516  
Old 12-19-2008, 02:42 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The following changes will give you the look of how I did my video listings: (completely optional!)

REPLACE your "video_home" template with the following:
HTML Code:
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="2">8WayRun.Com Video Directory Uploading Guidelines</td>
	</tr>
	<tr>
		<td class="alt1" colspan="2">We have just added support for YouTube High Definition! This is <em>not</em> an automatic process, so you must conciously make the decision to add the HD version of your video into the directory. If you have a YouTube HD Video, simply add <strong><font color="red">fmt=22&</font></strong> before the <strong>v=</strong> in your link when you are submitting your video. You should never invoke this setting for videos that were not uploaded in HD, as you will break playback of the video.<br />
<br />
So <strong>youtube.com/watch?v=uXHZzyujkqE</strong> becomes <strong>youtube.com/watch?<font color="red">fmt=22&</font>v=uXHZzyujkqE</strong></td>
	</tr>
	</table>

	<br />

<if condition="$vboptions['videodirectory_limits']['recent']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="3">$vbphrase[recent_videos]</td>
	</tr>

	<if condition="!$recentbits">
		<tr>
			<td class="alt1" colspan="2">$vbphrase[there_are_no_videos_to_display]</td>
		</tr>
	</if>

	$recentbits
	</table>

	<br />
</if>

<if condition="$vboptions['videodirectory_limits']['top_rated']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="3">$vbphrase[top_rated_videos]</td>
	</tr>

	<if condition="!$top_ratedbits">
		<tr>
			<td class="alt1" colspan="2">$vbphrase[there_are_no_videos_to_display]</td>
		</tr>
	</if>

	$top_ratedbits
	</table>

	<br />
</if>

<if condition="$vboptions['videodirectory_limits']['most_viewed']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat" colspan="3">$vbphrase[most_viewed_videos]</td>
	</tr>

	<if condition="!$most_viewedbits">
		<tr>
			<td class="alt1" colspan="2">$vbphrase[there_are_no_videos_to_display]</td>
		</tr>
	</if>

	$most_viewedbits
	</table>

	<br />
</if>
REPLACE your "video_category" template with the following:
HTML Code:
<if condition="$show['catdesc']">
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="alt1" width="100%"><strong>$catinfo[title]</strong> <span class="smallfont">$catinfo[description]</span></td>
	</tr>
	</table>
	<br />
</if>

<if condition="$show['newvideo']">
<if condition="is_browser('ie')">
	<div style="margin-bottom: 1px" align="$stylevar[left]">
<else />
	<div style="margin-bottom: 4px" align="$stylevar[left]">
</if>
	<a href="video.php?$session[sessionurl]do=addvideo&amp;categoryid=$catinfo[videocategoryid]"><img src="$stylevar[imgdir_button]/newvideo.gif" alt="$vbphrase[add_video]" title="$vbphrase[add_video]" border="0" /></a>
</div>
</if>

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="3">
		<phrase 1="$catinfo[title]">$vbphrase[videos_in_category_x]</phrase>
	</td>
</tr>

<if condition="!$videobits">
<tr>
	<td class="alt1" colspan="3">
		$vbphrase[there_are_no_videos_to_display]
	</td>
</tr>
</if>

$videobits

</table>

$pagenav

<if condition="$show['newvideo']">
<div style="margin-top: 4px" align="$stylevar[right]">
	<a href="video.php?$session[sessionurl]do=addvideo&amp;categoryid=$catinfo[videocategoryid]"><img src="$stylevar[imgdir_button]/newvideo.gif" alt="$vbphrase[add_video]" title="$vbphrase[add_video]" border="0" /></a>
</div>
</if>
REPLACE your "video_bit" template with the following:
HTML 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">
		<div class="smallfont">
			<span style="float: $stylevar[right]; text-align: right;">
				<small><a href="$video[caturl]">$video[cattitle]</a></small><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>
			</span>
			<strong>
				<if condition="$video[videoservice]=='YouTubeHD'"><span style="color: #FF0000;">HD</span></if>
				<a href="$video[url]">$video[title]</a><br />
				<span class="smallfont">$video[description]</span>
			</strong>
		</div>
	</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>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01227 seconds
  • Memory Usage 1,830KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete