Ajuda em uma implementação N/A Estou com uma implementação pra fazer que não consigo, por ser inexperiente na plataforma moodle. Preciso acrescentar no fórum uma opção "Não se Aplica(N/A)" para postagens que não tem a ver com a pergunta do fórum, e deixar destacada, mas sem nota.<br /><br />Localizei no arquivo: [login to view URL] o seguinte codigo:<br /><br /> if ($rating->user_can_view_aggregate()) {<br /><br /> $aggregatelabel = $ratingmanager->get_aggregate_label($rating->settings->aggregationmethod);<br /> $aggregatestr = $rating->get_aggregate_string();<br /><br /> $aggregatehtml = html_writer::tag('span', $aggregatestr, array('id' => 'ratingaggregate'.$rating->itemid, 'class' => 'ratingaggregate')).' ';<br /> if ($rating->count > 0) {<br /> $countstr = "({$rating->count})";<br /> } else {<br /> $countstr = '-';<br /> <br /> }<br /> <br /> $aggregatehtml .= html_writer::tag('span', $countstr, array('id'=>"ratingcount{$rating->itemid}", 'class' => 'ratingcount')).' ';<br /><br /> $ratinghtml .= html_writer::tag('span', $aggregatelabel, array('class'=>'rating-aggregate-label'));<br /> if ($rating->settings->permissions->viewall && $rating->settings->pluginpermissions->viewall) {<br /><br /> $nonpopuplink = $rating->get_view_ratings_url();<br /> $popuplink = $rating->get_view_ratings_url(true);<br /><br /> $action = new popup_action('click', $popuplink, 'ratings', array('height' => 400, 'width' => 600));<br /> $ratinghtml .= $this->action_link($nonpopuplink, $aggregatehtml, $action);<br /> } else {<br /> $ratinghtml .= $aggregatehtml;<br /> }<br /> }<br /><br /><br /><br /><br /><br /><br /><br /><br />Implementei o seguinte código:<br /><br /> if ($rating->count > 0) {<br /> $countstr = "({$rating->count})";<br /> } else {<br /> $countstr = '-';<br /> <br /> }<br /><br /><br /><br /><br />Mudei para:<br /><br /> if ($rating->count == 'N/A') {<br /> $countstr = "({$rating->count})";<br /> } else {<br /> $countstr = 'N/A';<br /> <br /> }<br /><br /><br /><br /><br /><br /><br /><br />Mas não funcionou, se poder me ajudar, me dar alguma direção eu agradeço, estou meio perdido.<br /><br /><br /><br /><br /><br />Erivaldo Araújo
Project ID: 12408543
About the project 3 proposals
Remote project
Active 8 yrs ago
Looking to make some money? Email address Apply for similar jobs Benefits of bidding on Freelancer Set your budget and timeframe
It's free to sign up and bid on jobs
3 freelancers are bidding on average €250 EUR for this job
Olá me chamo eduardo silva tenho 6 anos de experiencia em programação sei PHP , java sql e outras linguagens estou interessado na sua oferta
qualquer coisa só chamar que estrei lhe ajudando no que for preciso
€250 EUR in 14 days
0.0 (0 reviews)