dfa3272008
Forum Replies Created
-
Make sure you chmod 777 bp-chat/config.
Did you chmod 777 bp-chat/config?
php 5 is strict on references, but it’s just a notice, nothing more so ignore for now as chat works on older versions of php for compatibility.
I’ll take a look.
Forum: Plugins
In reply to: [Buddypress-Ajax-Chat] [Plugin: Buddypress-Ajax-Chat] Cleaner markup?Chat uses flash in full blown chat. Use shoutbox to get around it.
HTML 5 isn’t mainstream yet so flash it is.Post the changes and I’ll add them in.
Let me guess…you upgraded?
Did you chmod 777 the bp-chat/config dir? If not do so and log in as admin to make the upgrade work by clicking on the dashboard link as admin.
To enter private chat both you and the user need to be logged on. Then you click on the user’s name in Full blow chat and go to private channel. Where just you two will chat away. The method to get there is via clicking a link when within the full blown chat window. Currently there is no method to take you from one html page to the full blow page AND get you to that link. Plus if the person is not logged in you nor them get the notification.
I really want to be notified if someone tried to talk to me and I missed them. That is a feature I want.
Hi,
Excellent job in the details! I just uploaded the changes now in to 1.3.8. Thank you for your help. I hope everything is going well now.
Thanks,
Dave:)Man, this one is a b-tch!
I spent hours on it and there’s no nice (aka easy) way to make it happen without making a messaging system of some sort.
Now if this messaging system was in place then I could possibly use it to notify people of missed chat requests and stuff like that. Something I’ve always wanted.
I’ve been thinking on and off for more than a year now as to how I should do this, but it’s a big endeavor and I’ve been focused on other projects. So it’s on hold for now. Sorry:(
Awesome job flips:)
I just checked in the fix 1.3.7. Darn DNS tricked me up. I have it coded that 127.0.0.1 and localhost will now not use the domain and tested it on windows/xampp as well.
Enjoy,
Dave:)Hi,
Hmm, I tried it on xampp on windows and real server and both worked fine. I used Firefox to check the cookie creation as well.
Here’s the new code:
from bp-chat.php -> setupChatCookies()
…
$domain = ($_SERVER[‘SERVER_NAME’] != ‘127.0.0.1’) ? $_SERVER[‘SERVER_NAME’] : false;
$path = ($_SERVER[‘SERVER_NAME’] != ‘127.0.0.1’) ? ‘/’ : false;setcookie(“loggedin_user_fullname”, $bp_chat_username, time()+90000,$path, $domain);
setcookie(“loggedin_user_id”, $bp->loggedin_user->id, time()+90000,$path, $domain);
setcookie(“loggedin_user_role”, $role, time()+90000,$path, $domain);
setcookie(“xml_logout_url”, $bp_chat_logout_url, time()+90000,$path, $domain);If it still fails for you perhaps you could try a test?
Make a new file called test.php
then echo $_SERVER[‘SERVER_NAME’] in it with php tags wrapped around it. If it is not 127.0.0.1, then I need to know what, in order to get you the code you need. HTTP_HOST isn’t always reliable, but SERVER_NAME is.Thanks,
DaveHi,
You lost me a little bit. I’m confused as to what worked for you and what didn’t.
On the dynamicendeavorsllc.com site there’s a contact form now and you can send me the translation that way:)
Thanks,
DaveHi,
Your info is very helpful. I think this will fix the chat ??? issue.
in bp-chat/chat/lib/class/AJAXChatDataBase.php replace the original function for connect with this:
// Method to connect to the DataBase server:
function connect(&$dbConnectionConfig) {
$this->_connectionID = @mysql_connect(
$dbConnectionConfig[‘host’],
$dbConnectionConfig[‘user’],
$dbConnectionConfig[‘pass’],
true
);
if(!$this->_connectionID) {
$this->_errno = null;
$this->_error = ‘Database connection failed.’;
return false;
}
#This handles Russian characters
mysql_query(“SET NAMES ‘utf8′”);
return true;
}Thanks,
DaveHi,
Hmm, there may be yet another place things are stored without utf8 and set names. You need to call that line out for each mysql connection in order for it to work.
For kicks did you notice chat groups displayed correctly? I specifically call that out. I’m curious as I want to be sure I’m on the right track here.
Thanks,
DaveHi,
I think I got it. In wp-db.php right after the db makes a connection in the wpdb function you need to add this code:
mysql_query(“SET NAMES ‘utf8′”);
This should take care of chat and wordpress for you. Please let me know how you make out.
Thanks,
Dave