Open questions still show
Moderator: Thorsten
Open questions still show
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.
Re: Open questions still show
Hi,
you have to delete them manually.
bye
Thorsten
you have to delete them manually.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Open questions still show
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.
Re: Open questions still show
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?
Re: Open questions still show
Hi,
yes, we have a CSRF security check for forms in the admin backend.
bye
Thorsten
yes, we have a CSRF security check for forms in the admin backend.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Open questions still show
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);
$cbid=$_SESSION['cbid'];
require_once '../inc/Faq.php';
$faq->deleteQuestion($cbid);
Re: Open questions still show
Be nice to be able to turn this feature on and off from admin actually.