Find Jobs
Hire Freelancers

Ajuda em uma implementação

N/A

Closed
Posted over 8 years ago

N/A

Paid on delivery
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?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average €250 EUR for this job
User Avatar
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)
0.0
0.0

About the client

Flag of BRAZIL
Brazil
0.0
0
Member since Oct 26, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.