Re: X-Cart Commentics Integration v4.x
Hi Phil
Could you just advise please i download these files two days ago so presume i have the upto date files,, in regards to your instructions
12) FINALLY, in /comments/includes/commentics.php
Replace around line 150...
mysql_close($connection); //close connection to database
However there isn't anything like this, ive pasted part of the code below from line 70 to 151 can you advise please.....Thanks
/************************************************** ************* ERROR REPORTING ************************************************** ******/
cmtx_error_reporting($cmtx_path . "includes/logs/errors.log");
/************************************************** ************************************************** ************************************/
/************************************************** ************* ADMIN DETECTION ************************************************** ******/
$cmtx_is_admin = cmtx_is_administrator(); //detect admin
/************************************************** ************************************************** ************************************/
/************************************************** ************* FORM VALUES ************************************************** **********/
cmtx_load_form_login(); //load login values
cmtx_load_form_defaults(); //load default values
cmtx_load_form_cookie(); //load cookie values
/************************************************** ************************************************** ************************************/
/************************************************** ************* MAINTENANCE (1/2) ************************************************** ****/
if (!cmtx_in_maintenance()) { //if not in maintenance
/************************************************** ************************************************** ************************************/
/************************************************** ************* PAGE ID ************************************************** **************/
$cmtx_page_id = cmtx_validate_page_id(); //validate Page ID
/************************************************** ************************************************** ************************************/
/************************************************** ************* TIME ZONE ************************************************** ************/
@date_default_timezone_set($cmtx_settings->time_zone); //set time zone PHP
@mysql_query("SET time_zone = " . $cmtx_settings->time_zone); //set time zone DB
/************************************************** ************************************************** ************************************/
/************************************************** ************* UNBAN USER ************************************************** ***********/
cmtx_unban_user(); //unban user if requested by admin
/************************************************** ************************************************** ************************************/
/************************************************** ************* LOAD PROCESSOR ************************************************** *******/
require_once $cmtx_path . "includes/app/processor.php"; //load file for form processor
/************************************************** ************************************************** ************************************/
/************************************************** ************* DISPLAY DATA ************************************************** *********/
if ($cmtx_settings->sort_order_parts == "1,2") {
require_once $cmtx_path . "includes/template/comments.php"; //display comments
echo "<div class='cmtx_height_for_divider'></div>"; //display divider
require_once $cmtx_path . "includes/template/form.php"; //display form
} else {
require_once $cmtx_path . "includes/template/form.php"; //display form
echo "<div class='cmtx_height_for_divider'></div>"; //display divider
require_once $cmtx_path . "includes/template/comments.php"; //display comments
}
/************************************************** ************************************************** ************************************/
/************************************************** ************* VIEWERS ************************************************** **************/
if ($cmtx_settings->viewers_enabled) { //if viewers feature is enabled
if (!$cmtx_is_admin) { cmtx_add_viewer(); } //add viewer if not administrator
}
/************************************************** ************************************************** ************************************/
/************************************************** ************* TASK SYSTEM ************************************************** **********/
require_once $cmtx_path . "includes/tasks/tasks.php"; //load task system
/************************************************** ************************************************** ************************************/
/************************************************** ************* MAINTENANCE (2/2) ************************************************** ****/
} //end of if-not-in-maintenance
/************************************************** ************************************************** ************************************/
/************************************************** ************* DATABASE (2/2) ************************************************** *******/
cmtx_reconnect_db(); //reconnect database connection
} //end of is-database-connection-okay
/************************************************** ************************************************** ************************************/
/************************************************** ************* VARIABLES (2/2) ************************************************** ******/
require_once $cmtx_path . "includes/variables/unset_variables.php"; //unset variables for page
/************************************************** ************************************************** ************************************/
?>
__________________
--------------
V4.6.1
xcartmods - Reboot Template
X-cart - X-PDF
Altered Cart - Checkout one
|