WebChat 2.0.3 BETA Download 2.0.3b

5.0
gb Kevin B 4 years ago

screenshot

This component adds a mobile-first, individually styled web chat module to OSSN. You need the Pusher Channels service for realtime updates.

You'll want to add the link to the main menu AND/OR redirect logins directly to WebChat using the Component Admin page:
Enable menu link and redirect

Latest Update

v2.0.3 BETA 16th Dec 2020

  • Feature request: Do not clear the message input field when you send a GIPHY
  • Changed component to store settings in the "site settings" rather than "component settings". Once set, these details will no longer need be input after ever install/upgrade.
  • Fixed incorrect case in ID name of ossn_com.xml
  • Moved "Web Chat" link to the "Links" section for better compatibility with OSSN standard installation.

Pre-Requisites:

OSSN >= v5.6
OssnMessages >= 5.4
OssnServices >= 6.4
Private Network >= 5.4

API Keys

GIPHY for animated GIFs that can be added to messages

FREE key from https://developers.giphy.com

Pusher - For the live chat feature

FREE Channels app-key from www.pusher.com

DEMO

https://kjbtech.co.uk/ossn
Demo site is running ossn 5.6, GreenByGreen theme and only has Private Network, API Services and WebChat components installed.

Near future updates

Add ossn credit
Message status dialog
Online status for group members
Block message content of blocked users
Hide blocked users from create new chat dialog
User is typing...
MP4 video uploads
Limits on number of images/videos people can upload
Allow to share images directly from profile
Add type to message table GIPHY, info, photo, profile image etc.
Implement OSSN blocked users
Migrate chat_api to ossn actions
Implement mobile notifications

TIDYING UP

Decide on consistent naming convention throughout. Is it Groups / Chats / WebChat etc. Need to keep language consistent throughout.
Remove ALL error_log / console.log and debug responses
Finish tidying up code and commenting (if I have time to kill)
CSS animations / transitions to make the experience feel more app-like.
Sounds for sending/receiving messages
White border on giphy thumbnail selection
change giphy default search as it keeps failing

NICE TO HAVES:

Encryption and Presence / Private Pusher Channels
Public/Private groups (to plan)
Voice and Video calls
Public Webcam broadcasts / channels
User Search by distance/gender etc
Who looked at me?
View and manage profile / galleries
View and post to walls

I'd be grateful for feedback on how I could improve the component. Any bugs or issues please also report here.

Older updates

Version history can be found in this Google Doc
WebChat Version History

Comments
gb Kevin B Replied 4 years ago

Hi arsalan
Thanks for the feedback. Yes I can make that change. I think my thought process was that anyone that installs the WebChat component is unlikely to use the in-built OSSN message system. I was even toying with removing it from the menu to make it a total replacement.

I think you're right though. It needs to be agnostic, so I'll look at adding the two URLs (there's a preview IMG and a full screen image) and then preg_match to trigger the display.

How does ossn message handle image URLs? Is it [URL]www.web.com/image.png[/URL] ?

Indonesian Arsalan Shah Replied 4 years ago

Ok I love the giphy integeration but the problem is:

  1. Messages text stored in database is JSON which is not recommended and will make issues in core OSSN chat and Messages.
    enter image description here

So the person not using webchat but using normal chat may see messages like this is not good.

What you can do is to simply store a actual gif image URL only to the message text and on retrieval end you may use a preg match to see if url contain giphy URL and have .gif somewhere in URL then you can use a method to show that gif image.

I hope you understand what I mean.

gb Kevin B Replied 4 years ago

I'll work on making it translatable towards the end.
If anybody would like to volunteer to look after any translations, please feel free to contact me - or just make a push request to the GitHub with the correct language file.
Thanks :)

German Michael Zülsdorff Replied 4 years ago

The trouble was caused due to a bug in PrivateNetwork.
It's fixed with release 5.4 now.

gb Kevin B Replied 4 years ago

Chome Version 86.0.4240.198
Windows 10

Android Chome browser
Huawei Smart Z Pro

gb Kevin B Replied 4 years ago

Hi ~Z~
Thanks for taking a look. I've set PN5.3 back to the 2 minute count.
If you make sure you are logged out first. Then visit this URL directly: demo site

It should redirect to logon fine.

Then when you logon, it goes straight into a redirect loop.

If you check the network GETs in Chrome, you should see a constant request to webchat/ with a 302 status. You should also see a cookie name visitedrestrictedurl

After 2 minutes, the page will load.

I just tried with /home as the first url too... and same thing happens.

German Michael Zülsdorff Replied 4 years ago

Running 1.4.1 on PC Windows 10 + Chrome
I can't reproduce that redirection issue on my site
1. I'm getting the 'you are required ...' message (when logged off)
2. I'm redirected to /webchat correctly (when logging in within 2 minutes)

Same procedure at your site (friend request still pending BTW)
I'm redirected to /home

gb Kevin B Replied 4 years ago

Ok good luck

us John Miller Replied 4 years ago

My programming skills are rather outdated, 2005 was my last venture.
That said, I found several issues that should have nothing to do with the component, though it l
Started with the last update.
The chmod of publhtml was changed, file sn folder ownerships were wrong and modrewrite is enabled on the server but not on the domain and there is of course the issues involving the hometools component.
I restored the ownership and permissions with no change.
I am restoring the server to a point before the issues began and going from there.
Thank you for your offer, and advice, I will update once the restore is complete.
Thanks,,,,
John.

gb Kevin B Replied 4 years ago

Just wanted to also clarify that all the error messages are stop errors during execution of code in the HomeTools component. It doesn't look like its actually anything to do with my component... but i'm a kind soul and love a challenge... so the offer of one-off assistance still stands.

Component

Developer: Kevin
License GPL v2
Type: Communication
Requires Ossn Version : 5.5
Latest Version: 2.0.3b
Last Updated 4 years ago
Repository Url View Repository

Versions