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

How to take only the number of characters from the database only when you open question.

<span class="qa-view-count-data">150</span>

<span class="qa-view-count-pad">view</span>

How to take only the number with no view and no style.   

$this->view_count($q_view);  Takes everything on the main page with style. I need to take only the amount of viewing.  150 

 

Q2A version: 1.6 dev

1 Answer

0 votes
by
selected by
 
Best answer
You can use CSS for that.

 

.qa-view-count-pad{
     display:none;
  }

or something like this:

.qa-view-count-pad.hidden {display:none;}
by
$this->output('<DIV CLASS="qa-sidepanel">');
           
            $content=$this->content;
            if (!empty ($content['widgets']['side']['top'])){                               
                $this->output('<DIV CLASS="qa-sidepanel-one">');
                $this->output('<img src="http://szh.kz/qa-theme/imageicon/customers.png" /><span class="question-customers">',@$content['q_view']['avatar'],'</span>');
                $this->output('<span class="question-avatar">',@$content['q_view']['who']['data'].' '.@$content['q_view']['who']['suffix'],'</span><br>');
                $this->output('<img src="http://szh.kz/qa-theme/imageicon/category.png" /><span class="question-category">',@$content['q_view']['where']['data'].' '.@$content['q_view']['where']['suffix'],'</span><br>');
                $this->output('<img src="http://szh.kz/qa-theme/imageicon/answer.png" /><span class="question-asked">',@$content['q_view']['when']['data'].' '.@$content['q_view']['when']['suffix'],'</span>');
                $this->output('<img src="http://szh.kz/qa-theme/imageicon/icon-views-sm.png" /><span class="question-views"> ',@$content['q_view']['views_raw'],'</span>');
               
                $this->output('<DIV CLASS="qa-sidepanel-ondelgen">');
                $this->output('<span class="question-kimonde">',@$content['q_view']['who_2']['data'].' '.@$content['q_view']['who_2']['suffix'],'</span>');
                $this->output('<span class="question-neiste">',@$content['q_view']['when_2']['data'],'</span>');
                $this->output('<span class="question-neiste">',@$content['q_view']['what_2'],'</span>');
                $this->output('</DIV>');
               
                $this->output('</DIV>');
            }

http://fotohost.kz/images/2013/05/09/sInv9.png
by
I don't see any question, so I don't really know what you are trying to say..
...