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

Script does not display in page (except example text)
#1

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,



 
Reply
#2

On the line directly above the line in purple, add this:

PHP Code:
var_dump($_SERVER['DOCUMENT_ROOT'] . $cmtx_folder 'frontend/index.php'); 

That will show you the path it's trying to load.

Verify that the path is correct.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
04-Jul-2020, 06:46 PM
Last Post by MattyP
13-Apr-2020, 08:33 PM
Last Post by Steven
25-May-2019, 05:50 PM
Last Post by Steven
20-Mar-2017, 09:09 PM
Last Post by Steven
04-Mar-2016, 06:53 PM
Last Post by Carluti
09-Jan-2016, 04:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)