looks like chat has been neglected a bit recently
This commit is contained in:
parent
4fde0bf62e
commit
d2565d0f61
@ -91,7 +91,7 @@ function chatroom_destroy($channel,$arr) {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
create_sync_packet($channel['channel_id'],array('chatroom' => $r));
|
||||
build_sync_packet($channel['channel_id'],array('chatroom' => $r));
|
||||
|
||||
q("delete from chatroom where cr_id = %d",
|
||||
intval($r[0]['cr_id'])
|
||||
|
@ -94,9 +94,8 @@ EOT;
|
||||
|
||||
require_once('include/chat.php');
|
||||
$has_chats = chatroom_list_count(local_channel());
|
||||
if($has_chats) {
|
||||
$nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
|
||||
}
|
||||
$nav['usermenu'][] = Array('chat/' . $channel['channel_address'] . (($has_chats) ? '' : '/new'), t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
|
||||
|
||||
|
||||
require_once('include/menu.php');
|
||||
$has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK);
|
||||
|
@ -67,7 +67,7 @@ function chat_post(&$a) {
|
||||
intval(local_channel())
|
||||
);
|
||||
|
||||
create_sync_packet(0, array('chatroom' => $x));
|
||||
build_sync_packet(0, array('chatroom' => $x));
|
||||
|
||||
if($x)
|
||||
goaway(z_root() . '/chat/' . $channel['channel_address'] . '/' . $x[0]['cr_id']);
|
||||
|
@ -1,7 +1,7 @@
|
||||
{{if $rooms}}
|
||||
<div class="widget">
|
||||
<h3>{{$header}}</h3>
|
||||
<ul class="bookmarkchat">
|
||||
<ul class="bookmarkchat nav nav-pills nav-stacked">
|
||||
{{foreach $rooms as $room}}
|
||||
<li><a href="{{$room.xchat_url}}">{{$room.xchat_desc}}</a></li>
|
||||
{{/foreach}}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<form action="chat" method="post" >
|
||||
{{include file="field_input.tpl" field=$name}}
|
||||
<button id="dbtn-acl" class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;" >{{$permissions}}</button>
|
||||
<button id="dbtn-acl" class="btn btn-default" data-toggle="modal" data-target="#aclModal" onclick="return false;" >{{$permissions}}</button>
|
||||
{{$acl}}
|
||||
<div class="clear"></div>
|
||||
<br />
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{{if $is_owner}}
|
||||
<p>
|
||||
<a href="{{$baseurl}}/chat/{{$nickname}}/new">{{$newroom}}</a>
|
||||
<span class="btn btn-default"><a href="{{$baseurl}}/chat/{{$nickname}}/new">{{$newroom}}</a></span>
|
||||
</p>
|
||||
{{/if}}
|
||||
|
||||
|
Reference in New Issue
Block a user