bubasuma / yii2-simplechat Goto Github PK
View Code? Open in Web Editor NEWA simple chat for your yii2 application
A simple chat for your yii2 application
Are there any instructions for using this extension without twig? I have read everything, including closed and open issue for several times, and still not able to get this to work...Only thing I managed to get is install everything through composer, but that is about it. I am guessing I need to make my own views since these ones are twig? Is there any example of that?
Hi Bubasuma,
I installed your plugin in our site, then I want to change some of the settings related to layout and validation, but maybe for unknown reason, It does not effect for me.
Could you please to take a look on it?
Thank and looking forward to hearing from you
Jason
I have installed the component and updated the config file and
I can not run it.
Do you know any clue?
Thanks!
Dear users,
What would you like to see in the next stable version v2.0.0 of yii2-simplechat
?
Fell free to comment!
this line
$this->clientOptions['selector'] = '.' . strstr($this->itemOptions['class'], ' ', true);
must be replaced by this
$class = explode(' ', $this->itemOptions['class']);
$this->clientOptions['selector'] = '.' . $class[0];
Used your reedme. Tried to change host/messages. It was so hard. Twig doesn't return asset to index.twig. I have bit problem with asset path. I changed vendor files 0_o. Please loot at new yii2 twig and register_asset_bundle function. It doesnt return any value to variable asset
Hi,
I am not able to send new messages. Other things works fine like mark as read, mark as unread, delete conversation. But I am not able to send new messages.
In the console I got this message,
"VM2400 message:800 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/."
Did anyone face this issue, should I change anything in my code.
Can you add a licence file?
MIT would be nice!
Hi.
How can i create a new conversation, if i don`t have any? For example, if i open "message" page first time after install module, i get an exception "You have no active conversations". There is no contact list or other? only archive conversations widget?
Thank you
found bug. on line 360 you get key "sender_id", but from server response "senderId". And thats why in messages list you get your receiver name instead sender name when send new message. But after page reload all names are displayed normal
Twig\Error\RuntimeError
An exception has been thrown during the rendering of a template ("Failed to instantiate component or class "yii\bootstrap\BootstrapAsset".").
↵
Caused by: Invalid Configuration – yii\base\InvalidConfigException
Failed to instantiate component or class "yii\bootstrap\BootstrapAsset".
in /var/www/html/hrhotlist/vendor/yiisoft/yii2/di/Container.php at line 449
↵
Caused by: ReflectionException
Class yii\bootstrap\BootstrapAsset does not exist
in /var/www/html/hrhotlist/vendor/yiisoft/yii2/di/Container.php at line 447
Can someone tell me about this error
I am installing the module simple chat and also installed the twig in yii2 app
but when i hit url basepath/message then above error show
Please help out of this error
this line
foreach (array_reverse($models) as $index => $model) {
must be replaced by this
foreach (array_reverse($models, true) as $index => $model) {
I am little bit confused is this chat is socket based chat ? can we perform live chat using this extension. No any description is written in detail for this extension. Can we use this for live chat ?
Can anyone help me setting up this extension. I followed the instruction as specified.
How should I use it in my application. I am not even able to display demo. Please help.
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'simplechat_user' doesn't exist
The SQL being executed was: SELECT * FROM simplechat_user
WHERE id
=1
Hello.
I installed your plugin successfully, created tables and added controllers and model files.
But it doesn't work me. I have 404 error when i try open message page.
But. if i created Autoindex function in Message Controller, i have't redirect to 404 error page and get echo result.
public function actionIndex()
{
echo 1;
}
Maybe can you explain to me, where am i wrong?
Thank you.
<?php
echo \app\modules\simplechat\ConversationWidget::widget([
'id' => 'check',
'user' => \Yii::$app->user->identity,
'clientOptions' => ['limit' => 10]
]);
?>
No example has been mentioned in the doc
Hi bubasuma,
first I want to say thank You cause of Your awesome work You have done. I love Your chat solution and I would be super happy if You try to make a HumHub Module for us cause HumHub has by default only a chat which is not more as a shoutbox, so no user to user private chat feature. Cause Your chat is based on Yii2 it should be not to hard to make a HumHub module cause HH is also using Yii2.
Here You can see our shoutbox like chat which we have done for HumHub. As You can see it lags on user to user private chat. Your chat is not so simple as You think 👍
I hope You`ll hear my begggging lol and You find the time to make it possible.
Kind regards, Andy
https://stackoverflow.com/questions/47216714/how-cofigure-simple-chat-widget-in-yii2 here is the link of the same problem which i have
I am following the instruction as given in github . but when I run given "yii simplechat" I got the error. how solve it where I am going wrong
this line
$this->clientOptions['selector'] = '.' . strstr($this->itemOptions['class'], ' ', true);
must be replaced by this
$class = explode(' ', $this->itemOptions['class']);
$this->clientOptions['selector'] = '.' . $class[0];
Hi Buba Suma is there any way to use this module without twig engine ?
You was wrote widgets but i cannot use these widgets is there any demo i didnt integrate can you help bro. Thanks
How i can migrate database tables for your extension.
An exception has been thrown during the rendering of a template ("The file or directory to be published does not exist: C:\xampp\htdocs\yii2-app-advanced/vendor\bower/twig.js") in "index.twig" at line 4.
↵
Caused by: Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist: C:\xampp\htdocs\yii2-app-advanced/vendor\bower/twig.js
in C:\xampp\htdocs\yii2-app-advanced\vendor\yiisoft\yii2\web\AssetManager.php at line 452
Hi bubasuma,
Thank you for creating such an awesome extension.
I want to you this extension in RESTful Yii2 build, can you put some documentation so I can configure it.
Cheers,
Wenceslaus Dsilva
use bubasuma\simplechat\controllers\ControllerTrait;
Is this still valid?
Also, not getting demo to display either. I followed everything in your instructions so i'm uncertain what I'm doing wrong.
also when I did the migration I noticed the following error:
C:\xampp\htdocs\yii>yii simplechat/start
Yii2 SimpleChat Demo
Yii Migration Tool (based on Yii v2.0.8)
No new migrations found. Your system is up-to-date.
Exception 'yii\db\Exception' with message 'SQLSTATE[42S02]: Base table or view n
ot found: 1146 Table 'yii.simplechat_audit_entry' doesn't exist
The SQL being executed was: UPDATE `simplechat_audit_entry` SET `duration`=0.158
19597244263, `memory_max`=5456376 WHERE `id`=42850'
in C:\xampp\htdocs\yii\vendor\yiisoft\yii2\db\Schema.php:633
Error Info:
Array
(
[0] => 42S02
[1] => 1146
[2] => Table 'yii.simplechat_audit_entry' doesn't exist
)
I'm using Yii2 Advance Framework.
Hi Bubasuma,
I installed your plugin in our site, then I want to change some of the settings related to layout and validation, but maybe for unknown reason, It does not effect for me.
Could you please to take a look on it?
Thank and looking forward to hearing from you
Jason
Uncaught ReferenceError: require is not defined at twig.js:13
Please help me
After submit a chat, the same message repeat continuously .
although just one record was save. Just the version 1.00 is avaliable to install.
I am little bit confused is this chat is socket based chat ? can we perform live chat using this extension. No any description is written in detail for this extension. Can we use this for live chat ?
The extension does not work with PostgreSQL.
Drops on this request:
SELECT COUNT (*)
FROM (
SELECT MAX ("id") AS "last_message_id", IF ("sender_id" = 1, "receiver_id", "sender_id") AS "contact_id", 1 AS "user_id"
FROM "simplechat_message" "c"
WHERE ("receiver_id" = 1) AND ("is_deleted_by_receiver" = FALSE)) OR (("sender_id" = 1) AND ("is_deleted_by_sender" = FALSE)) GROUP BY "contact_id"
) "C"
Error:
SQLSTATE[42883]: Undefined function: 7 ERROR: function if(boolean, integer, integer) does not exist
LINE 1: ...T(*) FROM (SELECT MAX("id") AS "last_message_id", IF("sender...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.