Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Video-Directory Details »»
Video-Directory
Version: 1.1.0 RC 2, by Surviver Surviver is offline
Developer Last Online: May 2020 Show Printable Version Email this Page

Category: Major Additions - Version: 3.7.x Rating:
Released: 09-28-2008 Last Update: 11-14-2008 Installs: 350
DB Changes Uses Plugins Auto-Templates
Additional Files Translations Is in Beta Stage  
No support by the author.


What is this?

This add on gives your users the possibility to collect their favourite videos from some video-webpages (supported at the moment: MyVideo, YouTube, Sevenload and Metacafe) and to provide them in the forum. The videos can be commented and rated.

The Administrator has many possibilities of settings and can create video-categories and administrate the video-directory.

List of features:
  • Completely integrated in vBulletin
  • Many possibility of settings for the Administrator
    • Many possibilities of settings
    • permissions of usergroups
    • Administration of categories
    • Administration of video-webpages
      • Incl. import and export
  • Very simple installation
  • Homepage can be configured easily
  • Videos are integrated in the forum
    • Videos can be voted with AJAX
    • Commets to videos can be posted
    • Videos can be reported
    • User can see other members watching the video at the same time
  • Simple search-function
  • RSS-Feed of videos
  • Advanced WOL-integration
  • Advanced vBSEO-integration
Installation:
  1. Upload all files from the directory "root" (Keep the structure of folders)
  2. The directory of videothumbnails and includes/videoserviceapi needs 777 permissions
  3. Import the product-videodirectory.xml from the admin-controllpanel
  4. After importing the product DON'T close the window, follow the installiton instructions!
History:
  • 1.0.0 RC 1 - First release
  • 1.0.0 RC 2 - Improvements and correcting some errors - many thanks to Hapi for reworking the templates!
  • 1.0.0 RC 3 - Correting some bugs: 38409, 38496, 38548, 38611
  • 1.1.0 Beta 1 - "Major Release"
    • Correcting some bugs
    • New: Search function
    • New: Reporting funvtion for videos
    • New: Import/export funtion for Video-Webpages
    • New: Improvements for guests
    • New: Best voted videos on Mainpage
    • New: vBSEO-Integration
    • New: Simplified installation
  • 1.1.0 Beta 2 - Small Bugfix-Release
  • 1.1.0 RC 1 - New Feature (Members who are watching the same video at video details page), Bugfixes (Missing File for comments added, vBSEO CRR fixed)
  • 1.1.0 RC 2 - Added two new videohosters (sevenload and metacafe), added rss feed, added thumbnail-preview when adding a video, MyVideo Class optimized, some bugs fixed
Roadmap for Version 1.2.0:
  • Tag-function for videos
  • Favourite Videos (AJAX)
  • Watchlist (AJAX)
  • [s]User watching the same video at the moment[/s] - Added in Version 1.1.0 RC 1
  • Video-comments per AJAX, to avoid reload
  • "Video-Profile" for user
  • Moderation
  • [S]New Videos in forumhome[/S] (See addons)
  • [s]RSS-Feed for Videos[/s] - Added in Version 1.1.0 RC 2
  • Integration in statistic-block in profile
Developer notes:

Do you want to enhance the video-directory, but some hooks are missing? Do you want to enhance the templates and you need some template-hooks? No Problem! Send a PM and the hooks will be integrated in the next version!

Developer-Blog:

Feel free to check out our Developer-Blog at vBPoint.org!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #512  
Old 12-18-2008, 06:50 PM
kaptanblack's Avatar
kaptanblack kaptanblack is offline
 
Join Date: Mar 2007
Location: Turkey
Posts: 397
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by conker1 View Post
Example link : http://tr.sevenload.com/videolar/zZk...omik-hayvanlar

When click "Load Information" i get error messagess "This URL is invalid"

Thanks.
Yes, i have this problem me too.

@Surviver, can you add new video hosters ? (Google video, dailymotion etc..) or how can i add new video hoster for my forum ?
Reply With Quote
  #513  
Old 12-19-2008, 01:37 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've made some more changes to your code... I changed the way your script handles the $HTML tag, to include an $HTMLembed tag. This way I could move the actual video outside of the standard box area; I needed this because it allowed me greater space for high definition youtube videos. I also had to create a new template which I call "video_details_embed"...

http://www.8wayrun.com/video.php?do=...=109&styleid=3

Changes are more visible in attached screenshots...
Reply With Quote
  #514  
Old 12-19-2008, 01:49 AM
TriMe's Avatar
TriMe TriMe is offline
 
Join Date: Apr 2008
Location: Ottawa
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats just amazing
Reply With Quote
  #515  
Old 12-19-2008, 02:41 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since people are asking for all of my edits... The 3 files on attachments are my two youtube parsers (one for SD and one for HD) and my edited version of video.php. Simply overwrite your files with the ones I have and you will gain the functionality I have added to my forum... make the changes below FIRST...

CREATE a NEW template called "video_details_embed" with the following:
HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">
		<a href="$videourl" target="_blank">$videoinfo[title]</a>
	</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
		<div class="panel">
			$embedhtml
		</div>
	</td>
</tr>
</table>

<br />
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('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>

<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="$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_SHELL" template with the following:
HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - <if condition="$pagetitle">$pagetitle<else />$vbphrase[videos]</if></title>

<style type="text/css">
.nobullets {
	list-style: none;
	margin: 0px;
	padding: 0px;
}
</style>

$headinclude

<if condition="$vbulletin->options['videodirectory_rssfeed']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] $vbphrase[videos] RSS Feed" href="video.php?do=rss" />
</if>

</head>
<body>

$header
$navbar

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

<table cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr>
	<td style="width: 170px;" valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<tr>
			<td class="thead">$vbphrase[video_statistics]</td>
		</tr>
		<tr>
			<td class="alt1 smallfont">
				$vbphrase[categories_total]: <strong>$catcount</strong><br />
				$vbphrase[videos_total]: <strong>$totalvideos</strong><br />
				<if condition="$contributorbits">
					$vbphrase[top_contributors]:<br /><br />
					<span class="smallfont">
						$contributorbits
					<br /></span>
				</if>
			</td>
		</tr>
		<tr>
			<td class="thead">$vbphrase[video_categories]</td>
		</tr>
		<tr>
			<td class="alt1"><a href="video.php$session[sessionurl_q]">$vbphrase[video_homepage]</a><br /><br />
				<span class="smallfont">
					$catbits
				<br /></span>
			</td>
		</tr>
		<tr>
			<td class="thead">$vbphrase[search_videos]</td>
		</tr>
		<tr>
			<td class="alt1">
				<form action="video.php?do=search" method="post">
					<input type="hidden" name="do" value="search" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
					<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
					<input type="hidden" name="catid" value="$catid" />
					<input type="text" value="$search_query" name="q" class="bginput" style="width: 100px;" /> $gobutton
				</form>

			</td>
		</tr>
		</table>
		<br />
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
		<if condition="$show['bestratedvideos']">
			<tr>
				<td class="thead">$vbphrase[best_rated_videos]</td>
			</tr>
			$bestratedbits
		</if>
		<if condition="$show['bestratedsamecatvideos']">
			<tr>
				<td class="thead">$vbphrase[best_rated_videos_same_cat]</td>
			</tr>
			$bestratedscbits
		</if>
		<if condition="$show['relatedvideos']">
			<tr>
				<td class="thead">$vbphrase[related_videos]</td>
			</tr>
			$relatedbits
		</if>
		<if condition="$show['randomsamecatvideos']">
			<tr>
				<td class="thead">$vbphrase[random_videos_same_category]</td>
			</tr>
			$randomscbits
		</if>
		<if condition="$show['randomvideos']">
			<tr>
				<td class="thead">$vbphrase[random_videos]</td>
			</tr>
			$randombits
		</if>
		</table>
	</td>
	<td valign="top" style="width: 15px;">
		&nbsp;
	</td>
	<td valign="top">
		$HTML
	</td>
</tr>
</table>

$footer

</body>
</html>
REPLACE your "video_catbit_small" template with the following:
HTML Code:
&nbsp;&nbsp;&raquo; <a href="$cat[url]">$cat[title] (<acronym title="<phrase 1="$cat[videocount]">$vbphrase[this_category_contains_x_videos]</phrase>">$cat[videocount]</acronym>)</a><br />
REPLACE your "video_contributorbit" template with the following:
HTML Code:
&nbsp;&nbsp;&nbsp;&nbsp;&raquo; <a href="member.php?$session[sessionutl]u=$user[userid]">$user[musername] (<acronym title="<phrase 1="$user[videocount]">$vbphrase[this_contributor_has_added_x_videos]</phrase>">$user[videocount]</acronym>)</a><br />
Reply With Quote
  #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
  #517  
Old 12-19-2008, 04:03 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #518  
Old 12-19-2008, 10:30 AM
poromenos poromenos is offline
 
Join Date: May 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #519  
Old 12-19-2008, 12:22 PM
TriMe's Avatar
TriMe TriMe is offline
 
Join Date: Apr 2008
Location: Ottawa
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome work. A demo can be viewed here
THANKS!!
Reply With Quote
  #520  
Old 12-19-2008, 01:17 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you add Categories?

Thanks.
Reply With Quote
  #521  
Old 12-19-2008, 02:15 PM
TriMe's Avatar
TriMe TriMe is offline
 
Join Date: Apr 2008
Location: Ottawa
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post number 456 has the answer
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14662 seconds
  • Memory Usage 2,601KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete