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

i want, unique comment for unique page
#1

hi

I have a Dynamics movie website and too many pages on it, in Home Page (index.php) there are a number of films and All of them taking from database.
When a user clicks on movies of home page, each movie will be entering a new page whith new information of it, in fact all of them is one page whith different informations from data base. ( this page name is archive.php ).
now I would have a unique comment for every movie.
and i have problem, when a user typing a comment for one movies (in archive.php), then comment showed for all movies and i want unique it.

commentics admin panel details:
manage => page => edit page

ID: 1
Custom ID: 1
Reference : archive.php
URL: http://174.142.13.165/
Form Enabled: yes

whith regards.
thx for supporting.
Reply
#2

Hi,

Ok I assume that the query parameter "me_id" is the unique value that determines your page content?

If so, your integration code should look like this:

PHP Code:
<?php
$parameters
= "me_id";
if (isset(
$_GET["me_id"])) {
$page_id = $_GET[“me_id”];
$reference = "Page One";
$path_to_comments_folder = "comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
}
?>

Also, you need to remove this from your page head tag:

Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>

And add this:

Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="http://174.142.13.165/comments/css/stylesheet.css"/>

Have you completed the interview?
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
Last Post by mtnlvy
06-Jan-2019, 06:29 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)