Include Question ID in Add Question

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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

Include Question ID in Add Question

Post by camel_Trophy »

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>
</div>

Thank you,

Gibran
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Include Question ID in Add Question

Post by Thorsten »

Hi,

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.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply