12 years 10 months ago #38692
by Mr. Dam
Hi Jace,
To solve the issue that you mentioned, please follow these steps
1. Open file
components > com_osproperty > classes > agent.html.php
2. find
<?php
if($agent->photo != ""){
?>
<img src="<?php echo JURI::root()?>images/osproperty/agent/<?php echo $agent->photo?>" width="100" />
<BR />
<input type="checkbox" name="remove_photo" id="remove_photo" onclick="javascript:changeValue('remove_photo')" value="0" /> <?php echo JText::_('OS_REMOVE_PHOTO');?>
<div class="clearfix"></div>
<span id="photodiv">
<input type="file" name="photo" id="photo" size="20" class="input-small" onchange="javascript:checkUploadPhotoFiles('photo')" />
<div class="clearfix"></div>
(Only allow: *.jpg)
</span>
<?php
}
?>
and replace by
<?php
if($agent->photo != ""){
?>
<img src="<?php echo JURI::root()?>images/osproperty/agent/<?php echo $agent->photo?>" width="100" />
<BR />
<input type="checkbox" name="remove_photo" id="remove_photo" onclick="javascript:changeValue('remove_photo')" value="0" /> <?php echo JText::_('OS_REMOVE_PHOTO');?>
<div class="clearfix"></div>
<?php
}
?>
<span id="photodiv">
<input type="file" name="photo" id="photo" size="20" class="input-small" onchange="javascript:checkUploadPhotoFiles('photo')" />
<div class="clearfix"></div>
<?php echo JText::_('OS_ONLY_SUPPORT_JPG_IMAGES');?>
</span>
Good luck
Dam
The following user(s) said Thank You:
Jace Goh
Please Log in or Create an account to join the conversation.