Jump to content
MakeWebGames

Ajax chat paid mod from mccodes by Dave


Recommended Posts

Almost none of the data is saving to the database. If I add a channel. The channel name is added, but the open/closed and requirements do not work. So I'm hoping there is someone who can walk me through this step by step.

Here is the database config area.

 

include "config.php";
   global $_CONFIG;
   define("MONO_ON", 1);
   require "class/class_db_{$_CONFIG['driver']}.php";
   require_once('global_func.php');
   $db->configure($_CONFIG['hostname'],
    $_CONFIG['username'],
    $_CONFIG['password'],
    $_CONFIG['database'],
    $_CONFIG['persistent']);
   $db->connect();

 

Link to comment
Share on other sites

  • 2 weeks later...

Sorry for my absence [uSER=72582]boionfire81[/uSER] I've been rather busy with other life commitments.

If you can add me on Skype I'll provide you with support: oxydennet

This tends to be a conflict with the version of McCodes, should be pretty straight forward to fix.

Link to comment
Share on other sites

I don't have skype. Just Google hangouts. I'll pm you. [uSER=52003]Dave Macaulay[/uSER]

A little off-topic here, but many of us here use Skype to communicate. It may be good for you to create one in order to get the support that you need for things that are paid mods (like with this chat for example).

~G7470

Link to comment
Share on other sites

I avoid Skype as much as possible. -.-

Right now there error is

A critical error has occurred, and page execution has stopped. Below are the details:

PHP Warning: Invalid argument supplied for foreach() (2)

line 97

 

 

if(isset($_POST['submit'])) {
       foreach($_POST['set'] as $name => $value) {
           $db->query("UPDATE settings SET conf_value = '".mysql_real_escape_string($value)."' WHERE conf_name = '".$name."'");    
       }
       $set=array();
       $settq=$db->query("SELECT * FROM settings");
       while($r=$db->fetch_row($settq)) {
           $set[$r['conf_name']]=$r['conf_value'];
       }
       $saved = true;
   }
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...