Ajuda em uma implementação N/A Publicado hace más de 8 años
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
ID del proyecto: 12408543
Información sobre el proyecto 3 propuestas
Proyecto remoto
Activo hace 8 años
¿Buscas ganar dinero? Dirección de email Postular a trabajos similares Beneficios de presentar ofertas en Freelancer Fija tu plazo y presupuesto
Es gratis registrarse y presentar ofertas en los trabajos
3 freelancers están ofertando un promedio de €250 EUR por este trabajo
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 en 14 días
0,0 (0 comentarios)