Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
nuke-design




Joined: Jan 19, 2008
Posts: 51

PostPosted: Tue Feb 26, 2008 9:42 am
Reply with quote

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?
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Feb 26, 2008 10:53 am
Reply with quote

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 Wink
 
View user's profile Send private message Visit poster's website
nuke-design




Joined: Jan 19, 2008
Posts: 51

PostPosted: Tue Feb 26, 2008 1:09 pm
Reply with quote

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
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Feb 26, 2008 1:16 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
nuke-design




Joined: Jan 19, 2008
Posts: 51

PostPosted: Tue Feb 26, 2008 1:20 pm
Reply with quote

ok i read you post wrong about the mainfile part not exactly sure what you mean dont know what to replace exactly
 
View user's profile Send private message
nuke-design




Joined: Jan 19, 2008
Posts: 51

PostPosted: Wed Feb 27, 2008 9:51 pm
Reply with quote

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
 
View user's profile Send private message
chewy_mole




Joined: Mar 16, 2008
Posts: 6

PostPosted: Sun Mar 16, 2008 5:59 pm
Reply with quote

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
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon Mar 17, 2008 9:47 pm
Reply with quote

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?
 
View user's profile Send private message Visit poster's website
chewy_mole




Joined: Mar 16, 2008
Posts: 6

PostPosted: Mon Mar 17, 2008 9:53 pm
Reply with quote

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 Smile
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Mon Mar 17, 2008 10:01 pm
Reply with quote

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);
 
View user's profile Send private message Visit poster's website
chewy_mole




Joined: Mar 16, 2008
Posts: 6

PostPosted: Mon Mar 17, 2008 10:05 pm
Reply with quote

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
 
View user's profile Send private message
chewy_mole




Joined: Mar 16, 2008
Posts: 6

PostPosted: Mon Mar 17, 2008 11:24 pm
Reply with quote

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
 
View user's profile Send private message
chewy_mole




Joined: Mar 16, 2008
Posts: 6

PostPosted: Tue Mar 18, 2008 12:57 pm
Reply with quote

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
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Mar 18, 2008 1:39 pm
Reply with quote

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
 
View user's profile Send private message Visit poster's website
drastic




Joined: Apr 08, 2008
Posts: 3

PostPosted: Tue Apr 08, 2008 4:42 pm
Reply with quote

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
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©