Code Monkey home page Code Monkey logo

yii2-simplechat's People

Contributors

bubasuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yii2-simplechat's Issues

Not able to configure

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?

Can not change setting layout and other thing in template...

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

Unknown command: simplechat

I have installed the component and updated the config file and
I can not run it.
Do you know any clue?
Thanks!

Can't reproduce

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

Synchronous XMLHttpRequest Deprecation

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.

new conversation

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

bug in yiiSimpleChat.js

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

error after installing simplechat and twig in yii2

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

usage

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.

Page Not Found

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.

How to use Conversation and Message widgets ?

 <?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

HumHub integration

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.

HumHub Module Documentation

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 👍

HumHub Basic Chat

I hope You`ll hear my begggging lol and You find the time to make it possible.
Kind regards, Andy

without twig

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

Runtime Error when i Try to run the demo

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

Documentation for using the extenstion in REST

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

Not able to get your extension to work?

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.

Can not change setting layout and other thing in template...

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

submit problem

After submit a chat, the same message repeat continuously .
although just one record was save. Just the version 1.00 is avaliable to install.

Unable to use twig template

Hi there,

I've a problem with twig template. It doesn't render the form and i can't press the send message button ( in demo mode )
schermata 2017-04-26 alle 12 25 31

As you can see it only render the textarea and not a form.

It's possible have a simple view for the php please? I'm not very familiar with twig.

Thanks in advance

Not support PostgreSQL

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...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.