Include Question ID in Add Question

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Posts: 41
Joined: Fri Feb 17, 2017 5:03 pm

Include Question ID in Add Question

Post by camel_Trophy » Sun Mar 26, 2017 4:29 pm

Greetings all,

Since I am disabling the "Comment" option for all questions, I want to give the users the ability to reference a specific solution ID. I thought about the option of making the Solution ID hot and map it to Add Question, but that sounds complicated. I am not savvy with web stuff. I am thinking about simply adding another box in the Add Question form to include an existing Solution ID, does this work? and do I have to do anything special besides making the change on ask.tpl?

<div class="form-group">
<label class="col-sm-3 control-label" for="SolutionID">{msgNewContentName}</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="SolutionID" id="SolutionID" value="{defaultContentName}" required>

Thank you,


Posts: 15140
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq

Re: Include Question ID in Add Question

Post by Thorsten » Sun Mar 26, 2017 6:55 pm


you have to add the server side code in the PHP code as well, but for questions it's a little bit tricky as we have the smart answer logic here. We try to answer new questions before adding them into the backend.

phpMyFAQ Maintainer and Lead Developer Wishlist

Post Reply