Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
669 views
in Q2A Core by
Hi,

I added this html code below at the end of qa-main function.How can I set that the ask formular is only shown at home page and question page?

    ?>
<div class="formbox">

<form method="POST" action="http://">
  <div class="frage">
    <span class="label"></span>
    <span class="feld">
      <textarea class="defbreite" cols="20" rows="3" name="title" onfocus="if(this.value==this.defaultValue)this.value='';"
  onblur="if(this.value=='')this.value=this.defaultValue;">Jetzt direkt Deine Frage stellen. Keine Registrierung n&ouml;tig.
      </textarea>
    </span>
  </div>
<div class="knopf">
    <input type="submit" input name="doask1" value="Frage stellen" />
  </div>
</form>
 </div>
<?

1 Answer

0 votes
by

Add before Your code:

   if ($this->template=='') { 

Add after

 }

else{

}       
 
or similar.
by
thanks! works like a champ but I dont understand $this->template==''
shouldnt be something defined here, when the ask box has to appear?
...