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;
|
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",
|
q("delete from chatroom where cr_id = %d",
|
||||||
intval($r[0]['cr_id'])
|
intval($r[0]['cr_id'])
|
||||||
|
@ -94,9 +94,8 @@ EOT;
|
|||||||
|
|
||||||
require_once('include/chat.php');
|
require_once('include/chat.php');
|
||||||
$has_chats = chatroom_list_count(local_channel());
|
$has_chats = chatroom_list_count(local_channel());
|
||||||
if($has_chats) {
|
$nav['usermenu'][] = Array('chat/' . $channel['channel_address'] . (($has_chats) ? '' : '/new'), t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
|
||||||
$nav['usermenu'][] = Array('chat/' . $channel['channel_address'],t('Chat'),"",t('Your chatrooms'),'chat_nav_btn');
|
|
||||||
}
|
|
||||||
|
|
||||||
require_once('include/menu.php');
|
require_once('include/menu.php');
|
||||||
$has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK);
|
$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())
|
intval(local_channel())
|
||||||
);
|
);
|
||||||
|
|
||||||
create_sync_packet(0, array('chatroom' => $x));
|
build_sync_packet(0, array('chatroom' => $x));
|
||||||
|
|
||||||
if($x)
|
if($x)
|
||||||
goaway(z_root() . '/chat/' . $channel['channel_address'] . '/' . $x[0]['cr_id']);
|
goaway(z_root() . '/chat/' . $channel['channel_address'] . '/' . $x[0]['cr_id']);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{if $rooms}}
|
{{if $rooms}}
|
||||||
<div class="widget">
|
<div class="widget">
|
||||||
<h3>{{$header}}</h3>
|
<h3>{{$header}}</h3>
|
||||||
<ul class="bookmarkchat">
|
<ul class="bookmarkchat nav nav-pills nav-stacked">
|
||||||
{{foreach $rooms as $room}}
|
{{foreach $rooms as $room}}
|
||||||
<li><a href="{{$room.xchat_url}}">{{$room.xchat_desc}}</a></li>
|
<li><a href="{{$room.xchat_url}}">{{$room.xchat_desc}}</a></li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<form action="chat" method="post" >
|
<form action="chat" method="post" >
|
||||||
{{include file="field_input.tpl" field=$name}}
|
{{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}}
|
{{$acl}}
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<br />
|
<br />
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{if $is_owner}}
|
{{if $is_owner}}
|
||||||
<p>
|
<p>
|
||||||
<a href="{{$baseurl}}/chat/{{$nickname}}/new">{{$newroom}}</a>
|
<span class="btn btn-default"><a href="{{$baseurl}}/chat/{{$nickname}}/new">{{$newroom}}</a></span>
|
||||||
</p>
|
</p>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user