So i edited a_item_content function because i had to include voting buttons right next to content for styling issues ($this->voting($a_item);) so my code looks like this:
public function a_item_content($a_item) { $this->output('<div class="qa-a-item-content">'); ////my added code starts here if (isset($a_item['main_form_tags'])) $this->output('<form '.$a_item['main_form_tags'].'>'); // form for voting buttons $this->voting($a_item); if (isset($a_item['main_form_tags'])) { $this->form_hidden_elements(@$a_item['voting_form_hidden']); $this->output('</form>'); } ////my added code ends here $this->output_raw($a_item['content']); $this->output('</div>'); }
public function a_item_content($a_item) { $this->output('<div class="qa-a-item-content">');
////my added code starts here if (isset($a_item['main_form_tags'])) $this->output('<form '.$a_item['main_form_tags'].'>'); // form for voting buttons
$this->voting($a_item);
if (isset($a_item['main_form_tags'])) { $this->form_hidden_elements(@$a_item['voting_form_hidden']); $this->output('</form>'); }
////my added code ends here $this->output_raw($a_item['content']); $this->output('</div>'); }
Now voting buttons are inside a_item_content but somehow "ask related question", "edit" and "flag" buttons are not active when they are pressed. How they can be related to a_item_content function ?
"Comment" button works fine.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.