Fixed : group topic spam fixed

Fixed : user videos fixed
This commit is contained in:
Arslan Hassan 2011-05-20 13:25:18 +00:00
parent 5f4dfee67a
commit 0910cd7eed
3 changed files with 13 additions and 1 deletions

View file

@ -493,6 +493,8 @@ if(!empty($mode))
$type = mysql_clean($_POST['type']);
$typeid = mysql_clean($_POST['typeid']);
if($_POST['type'] != 't')
update_last_commented($type,$typeid);
echo json_encode($ajax);

View file

@ -5271,7 +5271,7 @@
case "t":
case "topic":
case "topics":
$db->update(tbl("group_topics"),array('last_post_time'),array(now()),"videoid='$id'");
$db->update(tbl("group_topics"),array('last_post_time'),array(now()),"topic_id='$id'");
break;
}

View file

@ -16,9 +16,19 @@
{section name=v_list loop=$videos}
{include file="$style_dir/blocks/video.html" video=$videos[v_list]}
{/section}
<div class="clearfix"></div>
{include file="$style_dir/blocks/pagination.html"}
</div>
</div>
<div class="clear" style="height:10px"></div>
<div id="footer" class="clearfix" style="margin-top:0px;">
<div class="footer">
&copy; {$title} {$smarty.now|date_format:"%Y"}
</div>
</div
</body>
</html>