This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Problem with Pages, cant go to Page 2..
#11

My next try was to remove the parameters like this:

PHP Code:
<?php 
$cmtx_parameters
= 'en, cz';
$cmtx_identifier = $zeile['id'];
$cmtx_reference = $zeile['name'];
$cmtx_path = $_SERVER['DOCUMENT_ROOT'].'sites/comments/';
require
$cmtx_path.'includes/commentics.php'; //don't edit this line

But when i do this the whole comment-script is gone Huh
Reply
#12

Ok, i think i solved the problem. Now i override the $cmtx_url directly in the funktion function cmtx_create_page().


PHP Code:
<?php 
function cmtx_create_page() { //create page

global $cmtx_identifier, $cmtx_reference, $cmtx_url, $cmtx_mysql_table_prefix, $cmtx_page_id; //globalise variables

//sanitize data
$cmtx_identifier = cmtx_sanitize($cmtx_identifier, true, true);
$cmtx_reference = cmtx_sanitize($cmtx_reference, true, true);
$cmtx_url = cmtx_sanitize($cmtx_url, true, true);

if (
$lang != 'de') {
$cmtx_url = substr($cmtx_url, 0, -2);
}

cmtx_db_query("INSERT INTO `" . $cmtx_mysql_table_prefix . "pages` (`identifier`, `reference`, `url`, `is_form_enabled`, `dated`) VALUES ('$cmtx_identifier', '$cmtx_reference', '$cmtx_url', 1, NOW())");

$cmtx_page_id = cmtx_db_insert_id();

}

I think its the only way.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by drwx
29-Jun-2023, 09:34 AM
Last Post by Steven
04-Jul-2020, 06:46 PM
Last Post by MattyP
13-Apr-2020, 08:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)