Skip to content

Commit

Permalink
Shoutox, Readme
Browse files Browse the repository at this point in the history
- New readme-en.html, essential documentation in english
- New readme-de.html, essential documentation in german
- Fixed Shoutbox
- Fixed Moderator can see the link to Chat Logs
- Fixed Missing config for Custom Integration in src/config.php
  • Loading branch information
wintstar committed Jan 18, 2024
1 parent ec37c7b commit 03d55a4
Show file tree
Hide file tree
Showing 10 changed files with 1,464 additions and 503 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,25 +165,30 @@ To report bugs use github issues: https://github.com/Frug/AJAX-Chat

Planned changes in this repository
----------------------------------
- update readme.html to new Version

Changes in this repository
--------------------------
18.01.2024
- New readme-en.html, essential documentation in english
- New readme-de.html, essential documentation in german
- Fixed Shoutbox
- Fixed Moderator can see the link to Chat Logs
- Fixed Missing config for Custom Integration in src/config.php

15.01.2024
- New: Cookie [Samesite](http://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/)
- New setting in src/config.php "$config['sessioncookieSamesite']". Default set "Lax"
- New setting in public/js/config.js "cookieSamesite". Default set "Lax"
- New: Set Cookies after login and delete Cookies after logout

14.01.2024
- New: Optional use Composer
- Fixed: Issue [Typing errors mo3](https://github.com/Frug/AJAX-Chat/issues/293)
- Fixed: Deprecated elements in Javascript
- Fixed: Chat Logs (www.your.domain.self/?view=logs), new Layout, fixed Logout, added Button return to chat
- New: Language strings:
- public/js/lang/*.js "userMenuLogsview: 'Switch to the chat protocol',"
- src/lang/*.php "$lang['returnToChat'] = 'Return to chat';"
- Translators of your language **have yet to add this**. In english and german it is inserted

15.01.2024
- New: Cookie [Samesite](http://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/)
- new setting in src/config.php "$config['sessioncookieSamesite']". Default set "Lax"
- new setting in public/js/config.js "cookieSamesite". Default set "Lax"
- New: Set Cookies after login and delete Cookies after logout
- public/js/lang/*.js "userMenuLogsview: 'Switch to the chat protocol',"
- src/lang/*.php "$lang['returnToChat'] = 'Return to chat';"
Translators of your language have yet to add this. In english and german it is inserted

<sub>(* your language)</sup>
12 changes: 12 additions & 0 deletions changelog.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -904,3 +904,15 @@ New Features:
- New: Cookie Samesite
- New: Set Cookies after login and delete Cookies after logout
- Code cleaned up

Version 0.9.0-standalone-w1 (18.01.2024) Author wintstar
--------------------------------------------
New Features:
- New readme-en.html, essential documentation in english
- New readme-de.html, essential documentation in german

Bugfixes:
- Shoutbox. The old function was still included here.
- Fixed Moderator can see the link to Chat Logs
- Fixed Missing config for Custom Integration in src/config.php. With the new functions,
Frug has also added the activation of Custom integration. This "$config['integration']" was missing in the src/config.php.
37 changes: 20 additions & 17 deletions public/js/chat.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1204,20 +1204,20 @@ var ajaxChat = {
+ '</a></li>';
if (isInline) {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/invite '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuInvite']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/uninvite '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuUninvite']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whereis '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuWhereis']
+ '</a></li>';
+ encodedUserName
+ '\');">'
+ this.lang['userMenuInvite']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/uninvite '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuUninvite']
+ '</a></li>'
+ '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/whereis '
+ encodedUserName
+ '\');">'
+ this.lang['userMenuWhereis']
+ '</a></li>';
}
if(this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/kick '
Expand Down Expand Up @@ -1254,20 +1254,23 @@ var ajaxChat = {
+ this.lang['userMenuNick']
+ '</a></li>';
if(this.userRole === '1' || this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
+ this.lang['userMenuEnterPrivateRoom']
+ '</a></li>';
if(this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/bans\');">'
+ this.lang['userMenuBans']
+ '</a></li>'
+ '<li><a href="' + ajax_chat_url + '?view=logs">'
+ '</a></li>';
}
if (this.userRole === '3') {
menu += '<li><a href="' + ajax_chat_url + '?view=logs">'
+ this.lang['userMenuLogsview']
+ '</a></li>';
}
}
}
menu += this.getCustomUserMenuItems(encodedUserName, userID);

return menu;
},

Expand Down
Loading

0 comments on commit 03d55a4

Please sign in to comment.