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

Same Comments showings in all user's profile.
#1

Hello All

I have integrated comment box successfully on my website. I want a comment form on user's profile page. So comment form must be different for each user.

In my website, user's profile page url is - http://gurutechnolabs.com/demo/epic/76561198150832211

In above url, last URI (76561198150832211) changes for every user. I called the form using below code.

<?php
                                     $last=explode('/',$_SERVER['REQUEST_URI']);
                                    
$cmtx_identifier = $last[3];
$cmtx_reference = 'Page One';
$cmtx_path = 'comments-upload/';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>


Problem: It is showing same comment form and comments in all users. For ex

1) User 1 - http://gurutechnolabs.com/demo/epic/76561198150832211
2) USer 2 - http://gurutechnolabs.com/demo/epic/12234213446311524

It is showing same comments in both user's profile.

Please guide me where I am making mistake ?

Thanks
Reply
#2

The code you're using looks fine. I'm guessing it's because your URLs are re-written so $_SERVER['REQUEST_URI'] might actually be returning something completely different. If you go to 'Manage -> Pages' in the admin panel, what does it say the Identifier is for those two pages?

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 MattyP
13-Apr-2020, 08:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)