| Author |
Message |
nuke-design

Joined: Jan 19, 2008
Posts: 51
|
Posted:
Tue Feb 26, 2008 9:42 am |
|
does this work for evo? i like to get it workin it installed fine but duno just dont seem to work cant access server what can i change to get this goin? |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Feb 26, 2008 10:53 am |
|
It won't work with evo without making some changes. I've planned on doing this, but obviously haven't got to it yet. I'll outline the changes here and maybe you can get it going.
This is all off the top of my head so correct me if I'm wrong
First change is in the file liveChat.php...
the path "db/db.php" should be changed to "includes/db/db.php"
The line to change should be close to the top of the file.
Next open up modules/Live_Chat/lib/class.chat.php.
Scroll down to the bottom and replace the is_user and is_admin functions with those from evo's mainfile.php.
And I think that should be all, just make sure you are running php5 and you should be good to go. If you get it working, please send it my way and I'll throw it in the downloads  |
| |
|
|
 |
nuke-design

Joined: Jan 19, 2008
Posts: 51
|
Posted:
Tue Feb 26, 2008 1:09 pm |
|
ok im running php 5.2.3 iv done the edits but still no luck its just not doing anything u can view it via www.nuke-design.net its its on the front page i notice ther was a debugger i turned that on and i have no errors sooooo i duno maybe there is more edits that need to be done cause i really would liek this to work as i want to use it as a support chat |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Feb 26, 2008 1:16 pm |
|
Ok, the first thing i see is on this page
http://www.nuke-design.net/liveChat.php
I get a "you can't access this file directly. It is probably something in your .htaccess or permissions that is causing that.
2nd, I think the chat.js may have got corrupted during editing or uploading. If fixing the first problem doesn't work, upload it again and be sure you upload in ascii mode. |
| |
|
|
 |
nuke-design

Joined: Jan 19, 2008
Posts: 51
|
Posted:
Tue Feb 26, 2008 1:20 pm |
|
ok i read you post wrong about the mainfile part not exactly sure what you mean dont know what to replace exactly |
| |
|
|
 |
nuke-design

Joined: Jan 19, 2008
Posts: 51
|
Posted:
Wed Feb 27, 2008 9:51 pm |
|
k well i set the livechat.php on 777 so ya anyone can access it
so it has to be .hta but iim not familiar with php code so dont know what to do int he .hta
and for the other part
"
Next open up modules/Live_Chat/lib/class.chat.php.
Scroll down to the bottom and replace the is_user and is_admin functions with those from evo's mainfile.php. "
dont know about this either dont know what to add in |
| |
|
|
 |
chewy_mole

Joined: Mar 16, 2008
Posts: 6
|
Posted:
Sun Mar 16, 2008 5:59 pm |
|
Hi
I have this setup per instructions.
php5.2.4
nukeEvo 2.5
i set the livechat.php to 777
if i try to access it i get a 500 error and cant see the cause.
if i look in the access logs, i see:
PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/snmp.so'
not sure what that means but it happens in the logs 3 times for each request on the liveChat.php file directly.
please help, we really want this script.
TIA
Tim |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon Mar 17, 2008 9:47 pm |
|
There is actually no need to chmod liveChat.php to 777, 644 should be good enough in normal cases.
That is a strange error indeed.
I don't think the live chat would cause anything like that to pop up as it doesn't mess with any dynamic libraries. Does that error pop up at any other time? |
| |
|
|
 |
chewy_mole

Joined: Mar 16, 2008
Posts: 6
|
Posted:
Mon Mar 17, 2008 9:53 pm |
|
i was testing to see if it was a rights issue
i set it back after i got the 500 error and trying to access the liveChat.php displays "This page can not be assessed directly" error.
anyway, in the chat window it displays this:
Error accessing the server!
TypeError: httpRequest.responseXML has no properties
i read through most of the post but did not see an answer to that one.
any help would be wonderful  |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Mon Mar 17, 2008 10:01 pm |
|
well if liveChat.php can't be access directly then that is the reason why you are getting that error.
Edit... add this to the top of liveChat.php.. right under the <?php
| Code: |
define('NUKE_EVO', true); |
|
| |
|
|
 |
chewy_mole

Joined: Mar 16, 2008
Posts: 6
|
Posted:
Mon Mar 17, 2008 10:05 pm |
|
i did change the path to includes/db/db.php
thanks again for the help. ill look through your suggestions as well
Thanks again
Tim |
| |
|
|
 |
chewy_mole

Joined: Mar 16, 2008
Posts: 6
|
Posted:
Mon Mar 17, 2008 11:24 pm |
|
i should have wraped this with code tags, i got banned.
ok added that and now the error on liveChat is Invalid Database Type Specified!
I changed liveChat.php at the top to read:
| Code: |
php
define('NUKE_EVO', true);
$id = 0;
$deny = false;
//require_once 'config.php';
//require_once 'includes/db/db.php';
global $db;
|
Now i get the start of an xml doc but has a php error inside which causes an xml parse error. it reads:
Call to a member function sql_query() on a non-object in class.chat.php line 206.
which is the first query this is on line 206:
$result = $this->db->sql_query($query);
if I uncomment and change back to the includes, i get the invalid database type.
ill keep at it, but its interesting to note that i attempted to move the liveChat.php to its module dir, i was getting the same result.
thanks again
Tim |
| |
|
|
 |
chewy_mole

Joined: Mar 16, 2008
Posts: 6
|
Posted:
Tue Mar 18, 2008 12:57 pm |
|
ok i got this to work but i had to do a few modifications.
Nuke-Evo has a db.php which includes the dbtype.php
ours is mysql.php, i had to edit this in order to get the chat working.
there were calls to get_microtime() which i guess was replaced with microtime()
in the liveChat.php at the top i now have this :
| Code: |
define('NUKE_EVO', true);
$id = 0;
$deny = false;
//require_once('includes/db/db.php');
require_once('config.php');
require_once('includes/db/mysql.php');
include('includes/db/mysql.php');
if(!isset($db)) {
// Make the database connection.
$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
}
if(!$db->db_connect_id) {
exit("<br /><br /><center><img src='images/logo.gif'><br /><br /><strong>There seems to be a problem with the MySQL server, sorry for the inconvenience.<br /><br />We should be back shortly.</strong></center>");
}
|
for some reason if it just included db.php it fails, i guess there is an issue with the path to the mysql.php, so i just included mysql.php here with its settings from db.php
anyway, its working now.
thanks again for your help and the great mod you wrote.
Tim |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Mar 18, 2008 1:39 pm |
|
Thats good that you got it working. I took a different approach, and have released an evo version in the downloads..
Evo users, get your copy of Nuke Live Chat here:
http://nukecoder.com/shop_item-14.html |
| |
|
|
 |
drastic

Joined: Apr 08, 2008
Posts: 3
|
Posted:
Tue Apr 08, 2008 4:42 pm |
|
i am getting this error with the release of the evo version
| Code: |
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxxxx/public_html/test/modules/Live_Chat/lib/class.chat.php on line 23 |
|
| |
|
|
 |
|
|