给AVS添加描述(how to add a description to a video)

UPDATE

you might need edit few files.

1. add the input field to the tpl file: /templates/frontend/yourcolor/upload_video.tpl
name the field as description

<div class="separator">
<label for="description">Description:</label>
<textarea name="description" id="upload_video_description">{$video.description} </textarea><br />
<span class="expl">Description of video required.</span><br />
<span id="video_tags_error" class="error" style="display: none;">{t c=‘upload.video_description_empty‘}</span>
</div>

2. edit : modules/upload/video.php

below this : $anonymous = $filter->get(‘video_anonymous‘);

add: $description = $filter->get(‘description‘);

below this: channel = " .$category. ", keyword = ‘" .mysql_real_escape_string($keywords). "‘,
add: description = ‘".mysql_real_escape_string($description)."‘,

3. edit video.php

find: $sql = "SELECT v.VID, v.UID, v.title, v.channel, v.keyword, v.viewnumber, v.type,

replace with: $sql = "SELECT v.VID, v.UID, v.title, v.channel, v.keyword, v.viewnumber, v.type, v.description,

4. edit: /templates/frontend/yourcolor/video.tpl

find:
<div class="video_addtime">
{insert name=time_range assign=addtime time=$video.addtime}
{$addtime}
</div>

below that add:
<div>
Description: {$video.description}
</div>

step 5

edit:
templates/backend/default/videos_edit.tpl

below
<label for="keyword">Keywords (tags): </label>
<textarea name="keyword">{$video[0].keyword}</textarea><br>

add:

<label for="description">Description: </label>
<textarea name="description">{$video[0].description}</textarea><br>

step 6

edit
siteadmin/modules/videos/edit.php

below:
$keyword = trim($_POST[‘keyword‘]);

add:
$description = trim($_POST[‘description‘]);

- next -
below:

elseif ( strlen($keyword) < 3 )
$errors[] = ‘Video keyword(tags) field cannot be blank!‘;

add:

elseif ( strlen($description) < 3 )
$errors[] = ‘Video Description field cannot be blank!‘;

- next -

AFTER:
keyword = ‘" .mysql_real_escape_string($keyword). "‘,

ADD:
description = ‘" .mysql_real_escape_string($description). "‘,

step 7

edit 
templates/frontend/your color/edit.tpl

find:

<div class="separator">
<label for="upload_video_keywords">{t c=‘global.tags‘}:</label>
<textarea name="keyword" id="upload_video_keywords">{$video.keyword}</textarea><br />
<span class="expl">{t c=‘upload.tags_expl‘}</span><br />
<span id="video_tags_error" class="error" style="display: none;">{t c=‘upload.video_tags_empty‘}</span>
</div>

add below:

<div class="separator">
<label for="description">Description:</label>
<textarea name="description" id="upload_video_description">{$video.description } </textarea><br />
<span class="expl">Description of video required.</span><br />
<span id="video_tags_error" class="error" style="display: none;">{t c=‘upload.video_description_empty‘}</span>
</div>

step 8

edit

public html/edit.php

find

$thumb = $filter->get(‘thumb‘, ‘INTEGER‘);

add below

$description = $filter->get(‘description‘);

find

if ( $keyword == ‘‘ ) {
$errors[] = $lang[‘upload.video_tags_empty‘];
} else {
$keyword = prepare_string($keyword, false);
}

add below

if ( $description == ‘‘ ) {
$errors[] = $lang[‘upload.video_description_empty‘];
}

find

keyword = ‘".mysql_real_escape_string($keyword)."‘,

add below

description = ‘".mysql_real_escape_string($description)."‘

step 9

edit
public_html/language/en_US.lang.php

find
$lang[‘upload.video_file_empty‘] = ‘Please selected a video file!‘;

add after
$lang[‘upload.video_description_empty‘] = ‘Please enter a video description!‘;

THIS LAST STEP WITH THE LANGUAGE NEEDS TO BE DONE WITH ALL THE LANGUAGES YOU WILL BE USING

thats all, i‘m not including any css part so you might have to adjust the position of the css layout your self. You can do this also for games, by default the game table inside the database dont have description field, you might try to add it your self.

Hope that help, good luck.

This needs to be done in the file 2 times.

Quote

4. edit: /templates/frontend/yourcolor/video.tpl

find:
<div class="video_addtime">
{insert name=time_range assign=addtime time=$video.addtime}
{$addtime}
</div>

below that add:
<div>
Description: {$video.description}
</div>

时间: 2024-10-15 22:08:01

给AVS添加描述(how to add a description to a video)的相关文章

向SQL Server 现有表中添加新列并添加描述.

注: sql server 2005 及以上支持. 版本估计是不支持(工作环境2005,2008). 工作需要, 需要向SQL Server 现有表中添加新列并添加描述. 从而有个如下存储过程. (先附上存储过程然后解释) 代码 /********调用方法********** 作用: 添加列并添加列描述信息 调用: exec [SetColumnInfo] '表名', '列名', N'列说明,描述','列类型{默认:NVARCHAR(50)}','列默认值{默认:NULL}' *********

Git下创建项目、添加描述并将本地项目关联远程仓库和上传

1.通过OSChina中创建项目 2.创建完成项目后,我想为项目加上相当详细的说,并且有截图,这样其实也很简单只需要添加一个 README.md文件就可以了.请点击此处输入图片描述 在里面你可以添加详细的描述,也可以上次图片.瞧下图效果 3.接下来我想将Git中的项目和本地项目关联 在源代码项目目录执行命令 git init,初始化一个空的git项目 接下俩执行git status 就可以看到很多新增的文件了 然后执行git add . / git add -A /git add 指定某个文件或

EF Database First 给字段添加描述

方法思路是通过T4模板生成类文件的时候增加字段描述,首先添加一个模板文件GetComments.ttinclude,如下 1.打开编写代码: <#@ template language="C#" hostspecific="True" #> <#@ assembly name="System.Core" #> <#@ import namespace="System.Text" #> <

如何给表字段添加描述信息

-----------创建表空间 create tablespace auctionDB datafile 'E:\OracleDB\System_TableSpace\auctionDB.dbf' size 10M Autoextend on ------------删除表空间 drop Tablespace auction ------------删除约束 alter table auctionRecord drop constraint FK_rec_REF_user; ---------

Python可迭代对象中的添加和删除(add,append,pop,remove,insert)

list: classmates = ['Michael', 'Bob', 'Tracy'] classmates.append('Adam') //添加在末尾,没有add()方法 classmates.insert(1, 'Jack') //在指定位置添加 classmates.pop(1) //在知道位置删除,参数是索引 del classmate[1] //删除第二个元素 classmates.remove('Bob') //参数是元素,删除第一个与Bob值匹配的元素,之后又相同元素不会删

添加故障转移(add failover)

运行单独的节点意味着有将会面对单点故障--没有冗余的数据备份.幸运的是我们可以启动另外的node来保护我们的数据.一个新的node,只要他的cluster name和已经存在的cluster节点的名称相同,就会自动加入这个cluster,并且能和其他的node进行通信. 增加第二个node之后,cluster将会如下图所示: 第二个node已经加入了cluster,三个replica shard也已经被分配到了对应的primary shard.这意味着,丢失任意一个node,我们的数据也是完整的

yii textInput 添加描述

<?= $form->field($model, 'url')->hint('http://www.jxcat.com/')->textInput(['maxlength' => true]) ?> 使用hint

添加一个index(add an index)

想ES中存储数据,需要index--存储数据的地方,实际上,index就是一个指向若干物理shard的逻辑命名空间. shard就是更底层的工作单元,每个shard是一个Lucene的实例,每个shard在其控制范围内都是一个完整的搜索引擎.我们的文档被存储,并且被index到shard,但是应用程序是不和shard直接对话的而是和index进行通信. 由于shard是真正储存数据的地方,因此shard表示了ES在你的cluster中是怎么分布数据的.文档被存储在shard中,shard被分配到

info.plist文件里面添加描述 -&gt; 配置定位,相册等

<key>NSAppleMusicUsageDescription</key> <string>App需要您的同意,才能访问媒体资料库</string> <key>NSBluetoothPeripheralUsageDescription</key> <string>App需要您的同意,才能访问蓝牙</string> <key>NSCalendarsUsageDescription</key&