A
A
Aslan2020-02-29 19:14:01
PHP
Aslan, 2020-02-29 19:14:01

Chat php login via vk?

Hello!
I have a question, how to write a chat in php? You may have seen a good video somewhere or something. I would be very happy, I had a VK login, I have such user data, I only need to make a chat so that each registered user can write, if there are such functions as it is impossible to write more messages at a certain time or else anything, blocking the chat, etc., it would be very good, I hope you understand my question... Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DARKENN, 2020-02-29
@DARKENN

Login via VK
Chat on php
I myself once did such a project with the help of them.
The time limit can be done like this: in the database you make the parameters (Time and date of the last message = x), (number of messages = y), (is it blocked? = a) and (Restriction time = b). when sending a message, look at x, compare with the current one, if everything is ok, add 1 to the value of y and save, when y = limit, then a = true, b = current time, then again when sending, check if the time has passed a = false .

N
Neogener, 2020-03-01
@Neogener

Insert the VK comment code, the crowd is already used to it, it is forever in their heads!
Do not torture yourself, this is what people all use every day - "VK-comments"
People have been in VK for a long time, no need to store comments, it was made from VK - "correctly"
It has long been written already, verified a hundred times! One big company - "vk" :)
You just define the pages and write the meaning of the topic for discussion on this html page.
For example, pages such as:
change what you want to what you want according to the "rules";
we answer questions to everyone on Mondays right in the morning, and on the rest of the days we are closed "not to stand under the doors";
discussion of a recent discussion or news or whatever you want right now or later.
If it is necessary that there is no chat, you remove the code :) Just remove the code and write instead of the "vk-chat" code: "We thank you for the content, we remember about you and carefully observe, but for now you can leave a review about this event, we will show reviews to others so that they know how cool it was" ... in whatever "design", font, picture, other graphics or even a YouTube video you want.
And if you need a chat theme to exist, you make an html page for centuries - you just don't delete it. This is if you have "Chats", please note.
PS: If you want more, look for forum engines, I can show you a good example - https://www.crypto.pro/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question