Jump to content

Changing Rating in Maps popup Assistance


Jeff Cooper

Recommended Posts

I'm using custom ratings numbers for listings -- in both the listing_blogview and detail, here are the table data entries that I use to incorporate the custom field for the rating (I need to clean this up--for example still references rating value average, etc. -- done too late last night, but gets my result):

 

                          <td align="left" class="rating_label"><?php echo $Html->image($this->viewImages.'review_user.png',array('width'=>14,'height'=>14,'title'=>__t("All User ratings",true),'alt'=>__t("User rating",true)));?></td>

 

                          <td class="rating_stars"><?php echo $Rating->drawStars($CustomFields->field('jr_guestscore',$listing), $this->Config->rating_scale, $this->Config->rating_graph, 'user');?></td>

 

                          <td class="rating_value average"><?php echo $CustomFields->field('jr_guestscore',$listing);?><span class="best"><span class="value-title" title="<?php echo $this->Config->rating_scale; ?>"></span></span> </td>

 

 

I then went to map_infowindow_google.thtml to also update the rating that is shown in the maps popup, but I see that the structure for the table data is different.  Here is what is in the original map_infowindow_google.thtml in the corresponding position:

 

 

                      <td align="left" class="rating_label"><?php echo $Html->image($this->viewImages.'review_user.png',array('width'=>14,'height'=>14,'title'=>__t("User rating",true),'alt'=>__t("User rating",true)));?></td>

 

                      <td align="left" class="rating_stars" title="<?php __t("User rating");?>"><div class="<?php echo $rating_graphic;?>_user"><div class="gm-user-rating-star" style="width: 0%;"> </div></div></td>

 

                      <td align="left" class="rating_value"><span class="gm-user-rating-value"></span> (<span class="gm-user-rating-count"></span>)</td>

 

Dropping my new <td> lines above into map_infowindow_google.thtml did not work (and just pulls up a blank rating image without the data).  I've been puzzling over how to easily bring this into map_infowindow_google.thtml -- can anyone give me any pointers on this?  Thanks

 

 

Link to comment
×
×
  • Create New...