diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-11-01 20:42:44 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-11-01 20:42:44 +0000 |
commit | 049e37619a1ea7de4eed2695139645d6d6b9f397 (patch) | |
tree | aac510dfdcc9e771cd3448cc0f45e7a6fdfc0665 /h-source/Application/Views | |
parent | b006de42300a5671544e6fd3ea20ae7ce96da933 (diff) |
moderators can now block/unblock users - part 1
Diffstat (limited to 'h-source/Application/Views')
-rw-r--r-- | h-source/Application/Views/History/viewall.php | 8 | ||||
-rw-r--r-- | h-source/Application/Views/Meet/meet.php | 25 |
2 files changed, 28 insertions, 5 deletions
diff --git a/h-source/Application/Views/History/viewall.php b/h-source/Application/Views/History/viewall.php index 948a63d..9dc27c6 100644 --- a/h-source/Application/Views/History/viewall.php +++ b/h-source/Application/Views/History/viewall.php @@ -26,15 +26,15 @@ foreach ($res as $row) { $mess_count++; ?> -<div class="details_of_actions_inner"> - <div class="talk_message_item_date">this message has been <?php echo $md_action[$row['history']['action']];?> by <?php echo getLinkToUser($u->getUser($row['history']['created_by']));?> at <?php echo smartDate($row['history']['creation_date']);?> with the following motivation: +<div class="<?php echo $box_class;?>"> + <div class="talk_message_item_date">this <?php echo $object;?> has been <?php echo $md_action[$row['history']['action']];?> by <?php echo getLinkToUser($u->getUser($row['history']['created_by']));?> at <?php echo smartDate($row['history']['creation_date']);?> with the following motivation: </div> - <div class="deleted_message_show"><?php echo$row['history']['message'];?></div> + <div class="deleted_message_show"><?php echo $row['history']['message'];?></div> </div> <?php } ?> <?php if ($mess_count === 0) { ?> - <div class="details_of_actions_inner"> + <div class="<?php echo $box_class;?>"> there are no details.. </div> <?php } ?>
\ No newline at end of file diff --git a/h-source/Application/Views/Meet/meet.php b/h-source/Application/Views/Meet/meet.php index 127fe86..82b3d90 100644 --- a/h-source/Application/Views/Meet/meet.php +++ b/h-source/Application/Views/Meet/meet.php @@ -25,7 +25,30 @@ <div class="position_tree_box"> <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> » meet <b><?php echo $meet_username;?></b> </div> - + + <?php if ($ismoderator) { ?> + <div class="moderator_box"> + <?php if ($isBlocked) { ?> + This user has been blocked + + <a id="<?php echo $meet_id_user;?>" class="unblock_user block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/H2O/im-user.png">unblock the user</a> + + <?php } else { ?> + + <a id="<?php echo $meet_id_user;?>" class="block_user block_general" href="<?php echo $this->baseUrl."/home/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/H2O/im-ban-user.png">block the user</a> + + <?php } ?> + + <!--view details--> + <div class="show_hidden_box_ext"> + <div class="md_type">user</div> + <a id="<?php echo $meet_id_user;?>" class="hidden_message_view_details" href="<?php echo $this->baseUrl."/home/index/$lang";?>">view details</a> + <div class="moderation_details_box"></div> + </div> + + </div> + <?php } ?> + <div class="meet_contrib_link"> <u>Public profile of <?php echo $meet_username;?></u>. See all <a href="<?php echo $this->baseUrl."/meet/contributions/$lang/$meet_username";?>"><b><?php echo $meet_username;?></b> contributions</a> </div> |