26-Oct-2018, 05:32 PM
Hi,
The script does not display in page (except example text) !
May someone have look below to maybe find what I have done wrong ?
I created and uploaded a “customnamed.php“ file with this content :
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>homecomment</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
</body>
</html>
I paste the following content in a html widget on the desired page of my website builder
<h1>Example 2</h1>
<p>Lorem ipsum dolor.......</p>
<?php
$cmtx_identifier = '1';
$cmtx_reference = 'home';
$cmtx_folder = '/commentics/';
require($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
?>
[b]I wrote the last line in purple color in case if some contents should be replaced in it... !?[/b]
[b]After the page was uploaded ??[/b]
I visited it on internet but I couldn't find the comment form... ; I could only see default “Exemple 2“ and “lorem ipsum...“ text contents.
I need directions to properly achieve Commentics integration !
Cordially,
The script does not display in page (except example text) !
May someone have look below to maybe find what I have done wrong ?
I created and uploaded a “customnamed.php“ file with this content :
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>homecomment</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
</body>
</html>
I paste the following content in a html widget on the desired page of my website builder
<h1>Example 2</h1>
<p>Lorem ipsum dolor.......</p>
<?php
$cmtx_identifier = '1';
$cmtx_reference = 'home';
$cmtx_folder = '/commentics/';
require($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder . 'frontend/index.php');
?>
[b]I wrote the last line in purple color in case if some contents should be replaced in it... !?[/b]
[b]After the page was uploaded ??[/b]
I visited it on internet but I couldn't find the comment form... ; I could only see default “Exemple 2“ and “lorem ipsum...“ text contents.
I need directions to properly achieve Commentics integration !
Cordially,