Added : Comment Enable, Disable option for Video

This commit is contained in:
Arslan Hassan 2010-02-28 12:59:03 +00:00
parent 3dd2900da2
commit 29ac786926
5 changed files with 22 additions and 8 deletions

View file

@ -36,6 +36,7 @@ if(isset($_POST['update'])){
'closed' ,
'closed_msg',
'channel_comments',
'channels_list_per_page',
'channels_list_per_tab',
'captcha_type',

View file

@ -169,20 +169,26 @@ $(document).ready(function(){
<td valign="top"><input name="video_comments" type="checkbox" id="video_comments" value="1" {if $row.video_comments=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td valign="top"><label for="user_comment_own">User can comment on his/her own video</label></td>
<td valign="top"><input name="user_comment_own" type="checkbox" id="user_comment_own" value="1" {if $row.user_comment_own=='1'}checked=&quot;checked&quot;{/if} /></td>
<td valign="top">Allow Channel Comments</td>
<td valign="top"><input name="channel_comments" type="checkbox" id="channel_comments" value="1" {if $row.channel_comments=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td valign="top">Allow Guests to Comment</td>
<td valign="top"><input name="anonym_comments" type="checkbox" id="anonym_comments" value="yes" {if $row.anonym_comments=='yes'}checked{/if} /></td>
</tr>
<tr>
<td valign="top"><label for="max_comment_chr">Maximum Comment Characters</label></td>
<td valign="top"><input name="max_comment_chr" type="text" id="max_comment_chr" value="{$row.max_comment_chr}" size="15" maxlength="5" /></td>
</tr>
<tr>
<td><label for="comment_rating">Allow comments rating</label></td>
<td>Allow comments rating</td>
<td><input name="comment_rating" type="checkbox" id="comment_rating" value="1" {if $row.comment_rating=='1'}checked="checked"{/if} /></td>
</tr>
<tr>
<td colspan="2" valign="top" >&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td colspan="2" valign="top" class="settings_inner_title">Videos</td>
</tr>
@ -207,7 +213,7 @@ $(document).ready(function(){
</tr>
<tr>
<td>User can rate his/her video/channel</td>
<td><input name="video_comments3" type="checkbox" id="video_comments3" value="1" {if $row.video_comments=='1'}checked=&quot;checked&quot;{/if} /></td>
<td><input name="video_comments3" type="checkbox" id="video_comments3" value="1" {if $row.video_comments=='1'}checked{/if} /></td>
</tr>
</table>
</fieldset>

View file

@ -100,7 +100,7 @@
/**
* Function used to turn tags into links
*/
function tags($input,$type,$sep=',')
function tags($input,$type,$sep=', ')
{
//Exploding using comma
$tags = explode(',',$input);

View file

@ -118,7 +118,12 @@
<h2>{lang code='comments'}</h2>
<!-- Displaying Comments -->
{include file="$style_dir/blocks/comments/comments.html" id=$vdo.videoid type=v}
{include file="$style_dir/blocks/comments/add_comment.html" id=$vdo.videoid type=v}
{if $Cbucket->configs.video_comments=='1' && $vdo.allow_comments=='yes'}
{include file="$style_dir/blocks/comments/add_comment.html" id=$vdo.videoid type=v}
{else}
<div class="disable_msg" align="center">{lang code='comm_disabled_for_vid'}</div>
{/if}
<div class="clearfix"></div>
</div>
<!-- Video Comments -->

View file

@ -759,4 +759,6 @@ ul.upload_opts li.selected { cursor:pointer; background:none; border:1px solid;
.spam{color:#999; font-family:verdana; font-size:11px; font-weight:bold; border-top:1px solid #999; border-bottom:1px solid #999; padding:2px 0px; margin:5px 0px 10px 0px}
.contact_form label{font-size:16px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; color:#333; display:inline-block; width:150px; text-align:right; vertical-align:top; padding-right:15px}
.contact_form input[type=text],.contact_form textarea{border:1px solid #999; padding:2px; font-size:14px; width:300px}
.contact_form input[type=text],.contact_form textarea{border:1px solid #999; padding:2px; font-size:14px; width:300px}
.disable_msg{background-color:#F7F7F7; border:1px solid #CCC; padding:5px; margin:5px 0px}