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

Comments without a page
#1

Hi,

Love this script and appreciate the immense effort in maintaining it and providing user support, thank you!

What I am trying to do is allow comments without being attached to a static page.

example - lets say i have a static page called example.php

User types in URL example.php?q=variable1

If comments already exist for 'variable1' it would pull up the data and display within a frame

If no existing comments it would automatically create that Commentics database entry and allow the user to write comments within that frame.

This doesn't have to happen within the Commentics system, I was thinking this might need to be a php code on the main page that creates the database entry.

Any advice / suggestions would be appreciated.
Reply
#2

You should be able to just set the value of the $cmtx_identifier variable with that URL parameter. Using your example:

PHP Code:
<?php
$cmtx_identifier
= $_GET['q'];
$cmtx_reference = 'Page One';
$cmtx_path = 'upload/';
require
$cmtx_path . 'includes/commentics.php'; //don't edit this line
?>

Have you completed the interview?
Reply
#3

That's exactly what I was looking for - thank you!

btw - I couldn't find a donate button anywhere on your site?
Reply
#4

Glad to hear it worked.

Yeah I try to make the donate links quite subtle because I know they can be annoying. In the admin panel under the Help menu there's a link that goes to here with the information:

http://www.commentics.org/support/knowle...article=16

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
29-Jul-2020, 08: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)