Page 1 of 2
Please respond to this
Posted: Mon Feb 26, 2024 9:07 am
by Hariph
How do I create a comment system for my wapka forum
Re: Please respond to this
Posted: Tue Feb 27, 2024 6:05 am
by shrmaprem0202
You can use api for this
Re: Please respond to this
Posted: Tue Feb 27, 2024 6:21 am
by francisco
(Please use more descriptive titles for your posts!)
Creating a Comment System with Wapka Data API
Re: Please respond to this
Posted: Wed Feb 28, 2024 11:22 pm
by Hariph
I tried this but it's isn't working it keeps showing error
Although I have api data for other purposes, what could be the problem
Re: Please respond to this
Posted: Thu Feb 29, 2024 12:13 am
by francisco
Hariph wrote: ↑Wed Feb 28, 2024 11:22 pm
I tried this but it's isn't working it keeps showing error
Although I have api data for other purposes, what could be the problem
What error are you getting?
Re: Please respond to this
Posted: Sat Mar 02, 2024 7:12 am
by Hariph
At first is wasn't even showing anything at all and then I tried to edit some part of the code and It started saying (Primary key relation error) each time a user tries to comment
Re: Please respond to this
Posted: Sat Mar 02, 2024 10:13 am
by francisco
Hariph wrote: ↑Sat Mar 02, 2024 7:12 am
At first is wasn't even showing anything at all and then I tried to edit some part of the code and It started saying (Primary key relation error) each time a user tries to comment
This error indicates that the PID and Category are not being set correctly. Let's say you have a link that goes to the post page and contains the query string "post_id" (for example, a link on your index page that goes to example.com/post?post_id=1234). With post_id defined, <PID>{{GET(post_id)}}</PID> and <CATEGORY>Post</CATEGORY> are supposed to work correctly in the API Data Creator config.
Re: Please respond to this
Posted: Sat Mar 02, 2024 1:03 pm
by vikkas
- 65508 This is post id
- postid.png (186.68 KiB) Viewed 36961 times
Re: Please respond to this
Posted: Sun Mar 03, 2024 10:33 am
by Hariph
I have tried all I could but same error, I don't know what could be the problem,
You said i should you <pid>{{GET(post_id)}}</pid> ofwhich this is suppose to crawl the post id without me inputing it manually, which I did and yet it's still not working, it's still saying primary key relation error
Re: Please respond to this
Posted: Sun Mar 03, 2024 10:40 am
by Hariph
This is a screenshot of the the setting (api data creator) so what could be the problem