Hi all. I'm not sure how to explain this, but here goes!

I run my site using PHP Nuke, and have long since disabled the comments in it due to abuse and the lack of tools in nuke to control it. I want to add comments back in to my reviews section and found a nifty (and robust) little comment script right here:

http://www.gentlesource.com/comment-script/

After installing the script and successfully getting it to work on a dummy html page, I set to the task of integrating it into the bottom of my PHP nuke custom reviews module.

However, I've run into some problems getting it to work. Being an outside php script it didn't work inserting it via the php instructions. So, I then used the recommended include script in my nuke php code:

include("http://www.jeditemplearchives.com/comments/include.php?c5t_ssi=1");

While this puts the comment script at the bottom, it is the same for each page, instead of unique sets of comments for each review. the c5t_ssi=1 is supposed to assign a unique identifier to the comment based on the web page URL, but it is not working. Instead it assigns every page the same:

/comments/include.php?c5t_ssi=1

So, I then changed my include to use the nuke wildcard for the id:

include("http://www.jeditemplearchives.com/comments/include.php?/content/modules.php?name=JReviews&rop=showcontent&id=$id");

This actually works, but produces one small bug. It is still adding the /comments/include.php? to the beginning of the identifier, which when you insert the comment instead of looping you back to the review page like it is supposed to it takes you to a new page with the web address of

http://www.jeditemplearchives.com/comments/include.php?/content/modules.php?name=JReviews&rop=showcontent&id=241

(the id is actually working properly, and depending on which review you add the comment the number will correctly change).

So, the problem I'm trying to unsuccessfully overcome is getting it to NOT put the /comments/include.php? at the beginning of the indetifier.

I've tried to contact the developer but am getting no help, so I thought a wider audience might have some ideas on how to solve this! By the way, in the comment script I suspect this might be where I might need to make modifications to the code, but I'm at a loss at what to actually try:

// Start form handler
$c5t_form_action = getenv('REQUEST_URI');
if (c5t_gpc_vars('c5t_ssi') or c5t_gpc_vars('c5t_ssi_redirect')) {
    $c5t_form_action = $c5t['script_url'] . 'include.php';
}
$c5t_form = new HTML_QuickForm('form', 'POST', $c5t_form_action . '#c5t_form');




// Add redirect URL
if (c5t_gpc_vars('c5t_ssi') or c5t_gpc_vars('c5t_ssi_redirect')) {
    $c5t_form->addElement('hidden', 'c5t_ssi_redirect');
    if ($c5t_ssi_redirect = c5t_gpc_vars('c5t_ssi_redirect')) {
        $c5t['alternative_template'] = 'standalone';
    } else {
        $c5t_ssi_redirect = getenv('REQUEST_URI');
    }
    $c5t_form->setDefaults(array('c5t_ssi_redirect' => $c5t_ssi_redirect));
    Write a Reply...