- Posts: 9
- Thank you received: 0
OS Property support center
How do I set images back to square corners?
- Patricia Edgecomb
- Topic Author
- Offline
- New Member
-
Less
More
11 years 7 months ago #35880
by Patricia Edgecomb
How do I set images back to square corners? was created by Patricia Edgecomb
Somehow I have changed the image setting from square corners to rounded corners, and images upload with extra black space, because they're larger. I don't like it. I can't find the setting. How do I set images to square corners?
I'm using the latest version of OS Property. For example, visit:
svrcom.com/listings/featured-properties/2175-route-392.html
I want images like the related property on the right, not the left.
I'm using the latest version of OS Property. For example, visit:
svrcom.com/listings/featured-properties/2175-route-392.html
I want images like the related property on the right, not the left.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13024
- Thank you received: 1692
11 years 7 months ago #35887
by Mr. Dam
Replied by Mr. Dam on topic Re: How do I set images back to square corners?
Hi,
Please follow these steps:
1. Open file
components > com_osproperty > classes > listing.html.php
2. find
if(($configClass == 1) and (count($row->relate_properties) > 0)){
ob_start();
$relates = $row->relate_properties;
?>
<?php if (isset($relates) && count($relates)){
$widthsize = round(100/count($relates));
?>
<div class="block_caption">
<strong><?php echo JText::_('OS_RELATE_PROPERTY')?></strong>
</div>
<div style="width:100%;text-align:center;">
<?php
for($i=0;$i<count($relates);$i++){
$rproperty = $relates[$i];
?>
<div style="width:<?php echo $widthsize?>%;text-align:center;float:left;">
<div style="float: left;padding: 5px;margin: 3px;vertical-align: top;border:1px solid #DDD;" class="img-rounded">
<div style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<img style="width: 120px;" alt="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $row->pro_name?>" title="<?php echo $rproperty->pro_name?>" src="<?php echo $rproperty->photo?>" class="img-rounded" />
</a>
</div>
<div class="property_title" style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name;?>
</a>
</div>
<div class="property_description" style="text-align:center;">
<div class="price">
<?php
//echo "<font class='price_label'>".JText::_('OS_PRICE').": </font>";
echo "<font class='property_type'>".$rproperty->type_name." </font>";
if($rproperty->price_call == 1){
//echo JText::_('OS_CALL_FOR_PRICE');
}else{
if($rproperty->price_original > 0){
echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
echo " - ";
}
if($rproperty->price > 0){
echo "<span class='market_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price);
if($rproperty->rent_time != ""){
echo "/".JText::_($rproperty->rent_time)."</span>";
}
}
}
echo "</div>";
echo "<div style='clear:both;'></div>";
if($rproperty->show_address == 1){
echo "<div style='font-size:11px;max-width:180px;'>";
echo OSPHelper::generateAddress($rproperty);
echo "</div>";
}
echo "<div style='clear:both;'></div>";
echo "<div style='font-size:11px;text-align:center;width:100%;'>";
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
echo "</div>";
?>
</div>
</div>
</div>
<?php
}
}
and change to
if(($configClass == 1) and (count($row->relate_properties) > 0)){
ob_start();
$relates = $row->relate_properties;
?>
<?php if (isset($relates) && count($relates)){
$widthsize = round(100/count($relates));
?>
<div class="block_caption">
<strong><?php echo JText::_('OS_RELATE_PROPERTY')?></strong>
</div>
<div style="width:100%;text-align:center;">
<?php
for($i=0;$i<count($relates);$i++){
$rproperty = $relates[$i];
?>
<div style="width:<?php echo $widthsize?>%;text-align:center;float:left;">
<div style="float: left;padding: 5px;margin: 3px;vertical-align: top;border:1px solid #DDD;" class="img-rounded">
<div style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<img style="width: 120px;" alt="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $row->pro_name?>" title="<?php echo $rproperty->pro_name?>" src="<?php echo $rproperty->photo?>" class="img-polaroid" />
</a>
</div>
<div class="property_title" style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name;?>
</a>
</div>
<div class="property_description" style="text-align:center;">
<div class="price">
<?php
//echo "<font class='price_label'>".JText::_('OS_PRICE').": </font>";
echo "<font class='property_type'>".$rproperty->type_name." </font>";
if($rproperty->price_call == 1){
//echo JText::_('OS_CALL_FOR_PRICE');
}else{
if($rproperty->price_original > 0){
echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
echo " - ";
}
if($rproperty->price > 0){
echo "<span class='market_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price);
if($rproperty->rent_time != ""){
echo "/".JText::_($rproperty->rent_time)."</span>";
}
}
}
echo "</div>";
echo "<div style='clear:both;'></div>";
if($rproperty->show_address == 1){
echo "<div style='font-size:11px;max-width:180px;'>";
echo OSPHelper::generateAddress($rproperty);
echo "</div>";
}
echo "<div style='clear:both;'></div>";
echo "<div style='font-size:11px;text-align:center;width:100%;'>";
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
echo "</div>";
?>
</div>
</div>
</div>
<?php
}
}
It will replace the rounded conner by square conners in the related properties's pictures for you
Thanks
Dam
Please follow these steps:
1. Open file
components > com_osproperty > classes > listing.html.php
2. find
if(($configClass == 1) and (count($row->relate_properties) > 0)){
ob_start();
$relates = $row->relate_properties;
?>
<?php if (isset($relates) && count($relates)){
$widthsize = round(100/count($relates));
?>
<div class="block_caption">
<strong><?php echo JText::_('OS_RELATE_PROPERTY')?></strong>
</div>
<div style="width:100%;text-align:center;">
<?php
for($i=0;$i<count($relates);$i++){
$rproperty = $relates[$i];
?>
<div style="width:<?php echo $widthsize?>%;text-align:center;float:left;">
<div style="float: left;padding: 5px;margin: 3px;vertical-align: top;border:1px solid #DDD;" class="img-rounded">
<div style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<img style="width: 120px;" alt="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $row->pro_name?>" title="<?php echo $rproperty->pro_name?>" src="<?php echo $rproperty->photo?>" class="img-rounded" />
</a>
</div>
<div class="property_title" style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name;?>
</a>
</div>
<div class="property_description" style="text-align:center;">
<div class="price">
<?php
//echo "<font class='price_label'>".JText::_('OS_PRICE').": </font>";
echo "<font class='property_type'>".$rproperty->type_name." </font>";
if($rproperty->price_call == 1){
//echo JText::_('OS_CALL_FOR_PRICE');
}else{
if($rproperty->price_original > 0){
echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
echo " - ";
}
if($rproperty->price > 0){
echo "<span class='market_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price);
if($rproperty->rent_time != ""){
echo "/".JText::_($rproperty->rent_time)."</span>";
}
}
}
echo "</div>";
echo "<div style='clear:both;'></div>";
if($rproperty->show_address == 1){
echo "<div style='font-size:11px;max-width:180px;'>";
echo OSPHelper::generateAddress($rproperty);
echo "</div>";
}
echo "<div style='clear:both;'></div>";
echo "<div style='font-size:11px;text-align:center;width:100%;'>";
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
echo "</div>";
?>
</div>
</div>
</div>
<?php
}
}
and change to
if(($configClass == 1) and (count($row->relate_properties) > 0)){
ob_start();
$relates = $row->relate_properties;
?>
<?php if (isset($relates) && count($relates)){
$widthsize = round(100/count($relates));
?>
<div class="block_caption">
<strong><?php echo JText::_('OS_RELATE_PROPERTY')?></strong>
</div>
<div style="width:100%;text-align:center;">
<?php
for($i=0;$i<count($relates);$i++){
$rproperty = $relates[$i];
?>
<div style="width:<?php echo $widthsize?>%;text-align:center;float:left;">
<div style="float: left;padding: 5px;margin: 3px;vertical-align: top;border:1px solid #DDD;" class="img-rounded">
<div style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<img style="width: 120px;" alt="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $row->pro_name?>" title="<?php echo $rproperty->pro_name?>" src="<?php echo $rproperty->photo?>" class="img-polaroid" />
</a>
</div>
<div class="property_title" style="text-align:center;">
<a href="<?php echo JRoute::_("index.php?option=com_osproperty&task=property_details&id=".$rproperty->id."&Itemid=".JRequest::getInt('Itemid',0))?>" title="<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name?>">
<?php echo ($rproperty->ref != "")? $rproperty->ref.", ":""?><?php echo $rproperty->pro_name;?>
</a>
</div>
<div class="property_description" style="text-align:center;">
<div class="price">
<?php
//echo "<font class='price_label'>".JText::_('OS_PRICE').": </font>";
echo "<font class='property_type'>".$rproperty->type_name." </font>";
if($rproperty->price_call == 1){
//echo JText::_('OS_CALL_FOR_PRICE');
}else{
if($rproperty->price_original > 0){
echo "<span class='old_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price_original)."</span>";
echo " - ";
}
if($rproperty->price > 0){
echo "<span class='market_price'>".HelperOspropertyCommon::loadCurrency($rproperty->curr)." ".HelperOspropertyCommon::showPrice($rproperty->price);
if($rproperty->rent_time != ""){
echo "/".JText::_($rproperty->rent_time)."</span>";
}
}
}
echo "</div>";
echo "<div style='clear:both;'></div>";
if($rproperty->show_address == 1){
echo "<div style='font-size:11px;max-width:180px;'>";
echo OSPHelper::generateAddress($rproperty);
echo "</div>";
}
echo "<div style='clear:both;'></div>";
echo "<div style='font-size:11px;text-align:center;width:100%;'>";
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bedroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bed_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/bathroom.gif" border="0" class="icon_module" /> <?php echo $rproperty->bath_room?>
</div>
<?php
}
if($configClass == 1){
?>
<div style="display:inline;">
<img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/room.gif" border="0" class="icon_module" /> <?php echo $rproperty->rooms?>
</div>
<?php
}
echo "</div>";
?>
</div>
</div>
</div>
<?php
}
}
It will replace the rounded conner by square conners in the related properties's pictures for you
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.