webdevstudios / chat-room Goto Github PK
View Code? Open in Web Editor NEWWordPress Chat Room plugin
WordPress Chat Room plugin
time based chats for X amount of time
manual trigger and override for admins if they want to keep open a bit longer
active chat indicator with direct link
--managed by widget and/or template tag
Pro addon
display current color via swatch
use built in js libs to offer color picking that saves to user meta field.
--user fix -- lines 164 and 177 with:
'html' => '<div class="chat-message-' . $new_message_id . '"><strong style="color: ' . $user_text_color . ';">' . $user->user_login . '</strong>: ' . $content . '</div>'
to
'html' => '<div class="chat-message-' . $new_message_id . '"><span class="time">(' . date("g:ia") . ')</span> <strong style="color: ' . $user_text_color . ';">' . $user->login . '</strong>: ' . $content . '</div>'
time offset
'<div class="chat-message-' . $new_message_id . '"><span class=time>(' . date("g:ia", time() + ( get_option( 'gmt_offset' ) * 3600 ) ) . ')</span> <strong style="color: ' . $user_text_color . ';">' . $user->nickname . '</strong>: ' . $content . '</div>',
contextual menu with basic user info?
hover/click button that does a js/css popup with user name?
filter?
Built in from WP? Extensible in directory somewhere? How to make and regex filter?
alt/cmd + enter
Prevent if both pressed.
textdomain all the strings, pot files.
JS is best idea so far. Hide after setting. How to handle typos? Perhaps minimize into UI somehow but allow clicking back into view.
Ask others who have free plugins + pro add-ons how they handle.
Especially if we're keeping the logged out ability.
Name:
Message:
Using Wordpress 3.7.1 only the last line appears in the chatroom.
While chatting everything seems ok, but once you revisit the chatroom all history is gone except for the last line.
Prevents spam.
Mention to hit enter to send.
Meta field for each chat room to allow non-logged in users or force log in.
From forum:
"Also, the chat rooms that I have aren't exceptionally active, but it seems that when someone does post something, all it takes is for another post to make their initial post to disappear at the top. In an ideal world the posts would start scrolling up when the chat box is or starts to get full but that's not that case. Is this a bug?"
Mostly a pro addon, if accomplishable.
Admin field that sets a setting that prevents certain users?
Hide chat controls if in disallowed list?
Warning: fopen(/Users/admin/Sites/wds/wp-content/uploads/chatter/testing-recent) [function.fopen]: failed to open stream: No such file or directory in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 196
Warning: filesize() [function.filesize]: stat failed for /Users/admin/Sites/wds/wp-content/uploads/chatter/testing-recent in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 197
Warning: fread() expects parameter 1 to be resource, boolean given in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 197
Warning: fclose() expects parameter 1 to be resource, boolean given in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 198
Warning: Invalid argument supplied for foreach() in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 105
Warning: array_values() expects parameter 1 to be array, null given in /Users/admin/Sites/wds/wp-content/plugins/chat-room/chat-room.php on line 109
null
Forum person had to alter a little bit. seems like we may not be returning all of the markup with this filter?
Create nice default, allow easy adding of others from user.
Pro addon idea: UI/settings page for list management.
Hi. I am using (trying) the free Chat Room on my website, before possibly upgrading. The latest (most recent) chat comes up at the bottom of the chats, and the user has to scroll down for the most recent chat. Is there a setting somewhere that I could reverse this, and post the most recent chat at the top? thank you
jack
Maybe I am missing a setting, but when the page is reloaded only several of the messages are still there and the rest is gone.
Is there a way to keep the chat rooms history for later reference ?
Update: I did some digging around and fount the chatter
folder in uploads
and I could just add a custom field with ACF to check if the chat is closed and than just pars the file myself.
كيف انشاء دردشه غرف ياريت رابط سهلون عليه
Translated: How to set up chat rooms
Pro add-on.
Ability to:
review log
delete log from server
features:
ban list management
peak user count stats
average user count stats
searchable?
widget/template for all chat rooms total, showing each.
specific chat room
This one will be interesting to do as we have no real way to track who's where.
Insert deliminator into chat log that marks where to stop. grab everything after only?
If we have a settings page of some sort, add a checkbox that hides ALL of the chats. Set to true by default
Offer meta box checkboxes in post type screen that will allow to override global setting. In the metabox, display what the current setting is, so that they know they don't need to click it if already open globally.
Sorry Eric.
Highlight on @user?
Activating the OpenGraph features (Facebook and Twitter cards) of the Yoast SEO plugin breaks the display of the chatroom comments. There are no js errors, but each contribution to the chat appears blank. The user's name shows up, but not the text of the comment.
With both plugins activated and the OG features on, the source code of a chatroom page has chatroom code inserted in a strange place, in the Head, but when the OG features are turned off, that chatroom code is found further down in the Body. See the attached screenshot of source when OG is on.
What's interesting here is that the chatroom code is replacing the og:description meta tag. So that's the issue... There are some filters working against each other... I'm not sure which, where, etc.
I stumbled upon a workaround.....
The Yoast SEO Plugin allows you to set a unique FB (open graph) description on a per post basis. And surprise, if you set a description for a chat, that description appears and the chatroom code in the moves down to where it's supposed to be, making everything work.
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.