Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
927 views
in Q2A Core by
edited by

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>');
    }

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.

Q2A version: 1.7

1 Answer

0 votes
by
Why do not you deal with CSS? Do you want design that exceeds the limits of CSS?
by
Yes, i want to use space below votes for item content so votes would fit in text like this http://www.w3schools.com/css/tryit.asp?filename=trycss_layout_float (votes insdead image ofcourse).
by
btw can you convert your answer to comment ? thanks :)
by
Perhaps, your requests can be deal with CSS. My post will be answer for you. And, registered user can not convert own answer into the comment. If Scott thought my answer is comment, he will transfer it.
...