- Posts: 10
- Thank you received: 0
OS Property support center
Edit Photo in Account Information
- Jace Goh
- Topic Author
- Offline
- New Member
-
Less
More
11 years 4 months ago #38688
by Jace Goh
Edit Photo in Account Information was created by Jace Goh
Hi Dam,
Would like please help to enable agents to be able to change their initial uploaded photo in their 'Account Information' Tab
Thanks
Jace Goh
Would like please help to enable agents to be able to change their initial uploaded photo in their 'Account Information' Tab
Thanks
Jace Goh
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
Less
More
- Posts: 13025
- Thank you received: 1692
11 years 4 months ago #38692
by Mr. Dam
Replied by Mr. Dam on topic Re: Edit Photo in Account Information
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
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.
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.