Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i have installed the socket.io webchat and I want to add moderation-functionality for the posted comments. Does anyone know how to do that? It should work like when i post a message, the moderator hast du either accept/approve or delete the message. When he approves it, the message will be visible in the chat, otherwise it will not be visible.
any help or suggestion is welcome!
Socket.io is more for real time communication. You actually need something between the data sending and receiving. So, I guess that you should avoid the web sockets and store the comments in a database. The moderator then will need to read them and approve/deny. However such implementation is not really good idea when you have a web chat.
You could also try to send the comments to only one user (the moderator). And if he approve the comment just to resend it with a flag approved. All the messages which don't have this flag should not be shown.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am working on an ERP System(Website) developed in php(Laravel).The requirement which i need to implement is that when ever there is no internet but if a user wants to submit data,he/she could do that and when internet comes and website start working.i want that offline data to be retrieved.
Happy Coding!
This maybe sound like a workaround. But you could do that by using localStorage of your browser. if you choose this path you have to check periodically whether the internet is available in the client machine. And also check the localstorage to look for data to submit. Of course you'll have to use javascript to check what i'm suggesting
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to send the wordpress username to a external file when the click on a button on my website.
I have test it with Post but then you can edit your username.
Hope you guys can help me
If you are worried about the user modifying the request, then the request must originate from your server rather than from the user's browser.
To do this, your button should call a script on your server. That script should then retrieve the username from user's current Wordpress session then send that directly to the other server using libcurl or a similar library.
Are you sure you don't just want to get the log in info to you? I think this might be an attempt scam people logging into your site. You aren't providing any coding info or nothing. Obviously something is wrong here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
This might be pretty far out there, but I thought I'd ask. I have developed a program in Laravel 4 where it is like forum where it emails the people. I was asked if there was a way to make it where the users can reply to the email and make it appear in the forum.
I know other sites have done that like Basecamp, but I didn't have to program it. Is there anyway to achieve this in Laravel?
Thanks!
Yes, it's possible, but you'll need more than just Laravel. You can pipe inbound emails to Laravel or you can use a third-party service like Mandrill's inbound email handling to accept and turn them into HTTP requests to your server.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Well im working on a small php script and i want to make a test to see if the visitor is logged to facebook in his computer using php.
I want to do it in these way:
If (USER IS CONNECTED){echo "yes";}else{echo "no";}
Is it possible? if yes how can i do it ?
There is no documented way to achieve this. The JS is there for a reason (AJAX requests).
The article you're referring to is exploiting redirects after login, and doesn't even work (fails to recognize you're logged into Twitter). Something that starts with "I found a way to abuse" shouldn't be taken into consideration.
That's unethical, it exploits a loophole that will be fixed sooner or later, and I call it cracking.
Why would you need this information anyhow?
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm making a CMS for one of my friends. She is a writer with a looots of ideas and notes. I just realized that she needs a note taking webapp inside that CMS that allows her to make notes by simply writing an e-mail to a specific e-mail address. Like Evernote: the subject would be the 'title' of the note and the body would be the content.
But I cannot figure it out how to do that – in the past few days I was thinking only and nothing came out. I need a 'trigger' which runs a PHP script but how? Do you guys have some ideas?
I would really appreciate that.
Thanks a lot.
You would need to create an email address that "pipes" to an application, such as PHP.
If you are on a WHM server, cPanel accounts can easily do this. See: http://docs.whmcs.com/Email_Piping