Open questions still show

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
mresailor
Posts: 7
Joined: Sun Mar 13, 2011 9:48 pm

Open questions still show

Post by mresailor »

After logging into the admin and going to 'Open Questions' they're still showing after I've answered them. Shouldn't the go away after publishing to the site? Can't tell the new ones from the old, answered ones this way.
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Open questions still show

Post by Thorsten »

Hi,

you have to delete them manually.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mresailor
Posts: 7
Joined: Sun Mar 13, 2011 9:48 pm

Re: Open questions still show

Post by mresailor »

There's no way to delete them automatically after answering? My Clients are VERY non technical and don't understand most of this, adding a manual delete step is making them confused.
mresailor
Posts: 7
Joined: Sun Mar 13, 2011 9:48 pm

Re: Open questions still show

Post by mresailor »

Had a working cookie based solution to auto delete them on my development server but it's not functional in the clients shared environment. Also tried passing the id in the session variable but it's being reset somewhere, do you have any security on the session variables I can't seem to find?
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Open questions still show

Post by Thorsten »

Hi,

yes, we have a CSRF security check for forms in the admin backend.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
mresailor
Posts: 7
Joined: Sun Mar 13, 2011 9:48 pm

Re: Open questions still show

Post by mresailor »

Can't figure out how to add my id to the session and get it to pass to the deleteQuestion function in record.add.php I had this working with cookies on my dev server but it won't work on my clients shared box, so I am trying to pass the id in the session to record.add.php, the variable is correct leaving the open question editor but is gone when this page loads. The $record_id in the page isn't the value I need so I have to pass along the original to delete the question after it's answered.

$cbid=$_SESSION['cbid'];
require_once '../inc/Faq.php';
$faq->deleteQuestion($cbid);
mresailor
Posts: 7
Joined: Sun Mar 13, 2011 9:48 pm

Re: Open questions still show

Post by mresailor »

Be nice to be able to turn this feature on and off from admin actually.
Post Reply