Posts: 2
Threads: 1
Joined: Apr 2023
Hello. Commentics works fine on my live server but how can i have commentics work also on my localserver?
In Manage - sites - add site how can i add my localserver
I tried like this:
Name: localhost
Domain: 127.0.0.1
URL:
http://127.0.0.1/domain
But it didnt work. The commentics form does not appear
Posts: 2,904
Threads: 59
Joined: Jun 2010
Hello,
Before I get to the issue, you'll need to choose a different username because it could give the impression to others that you represent the project. Can you let me know what you'd like me to change it to?
The domain and the URL look okay to me. I have mine set to localhost and
http://localhost but that's just how I view my local websites.
It's more likely that it's not showing for another reason. Try one of these FAQs, depending on your integration:
https://commentics.com/faq/php-integration/not-showing
https://commentics.com/faq/iframe-integr...ot-showing
Regards,
Steven
Have
you completed
the interview?
Posts: 2
Threads: 1
Joined: Apr 2023
Sorry for the username. I just typed in the first word that came to my mind. You can change it to: member476
It worked, i switched the code from this:
$cmtx_folder = '/comments/';
to this:
$cmtx_folder = ($_SERVER['HTTP_HOST'] == 'localhost') ? '/foldername/comments/' : '/comments/';
But when i write a comment the comment doesnt appear neither do the comments that i wrote on the live server (On the live server, they appear). The database is the exact same on the live server and the local. Both of them updated so they are exactly the same. The database works on local, it shows the other things that are on. Only the commentics comments dont appear.
Can you point me to the right direction for how to fix it? Thank you
Posts: 2,904
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 2,904
Threads: 59
Joined: Jun 2010
Have
you completed
the interview?
Posts: 1
Threads: 0
Joined: Oct 2023