OS Property support center

Image Slideshow, Moving Fields

  • LKHightower
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 5 months ago #54168 by LKHightower
Image Slideshow, Moving Fields was created by LKHightower
This is for Joomla! 3.3.6, and I have updated to OS Property version 2.7.3.

Question 1: Image Slideshow

I am using OS Property for a small firm that prefers to enter basic information about each property on their website, and then link to their MLS listing.

For this reason, they only have 1 image per property. That image keeps fading in and out, as if it were rotating to other images. Is there a way to turn this off, since there will only be one image per property? See below.

landersdevelopmentllc.com/index.php/comp...sproperty/carmichael

Question 2: Moving a Field's Location

My goal is to create a link to an MLS listing (Multi-Listing Service, United States) and have it appear close to the top of the site.

Currently, I have the MLS link in two spots (which you can see at the above website link); one is as the Documents link, and the other is as an extra field. I've tried to dig in the code and move either of these to the area close to or above the short description, but haven't been able to do it. I've attempted to follow the instructions given in another post regarding moving extra fields, but this appears to be for a version previous to 2.73.

Are any of the following scenarios possible? I'm listing them in order of preference.

1. Adapt REF# link (attached, screenshot) and create a link with target=blank, where the REF# is the MLS number, and the URL can be attached.

2. Change the wording of "Property Document" (an existing field) to "MLS Information" or "MLS Link" and move to the area just above the short description. (See attached screenshot)

3. Move extra field location to just above the short description. (This shows as "MLS Information" on the live page.)

4. Change short description box to allow for hyperlink.

3 & 4 are my absolute bottom choices, because the person who will be filling out the form and updating is not well versed in having to create hyperlinks within documents.

Thanks for any information you can provide!
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #54184 by Mr. Dam
Replied by Mr. Dam on topic Image Slideshow, Moving Fields
Hi,
1. To remove the slider and use one image in property details, please follow these steps
- Open file: components > com_osproperty > templates > your_current_template > details.html.tpl.php
find this code
<script src="<?php echo JURI::root()?>components/com_osproperty/js/jquery.bxslider.js"></script>
<div>
<div id="slides">
<?php
if(count($photos) > 0){
?>
<ul class="bxslider" style="padding:0px;margin:0px;">
<?php
for($i=0;$i<count($photos);$i++){
if($photos[$i]->image != ""){
if(JPATH_ROOT.'/images/osproperty/properties/'.$row->id.'/medium/'.$photos[$i]->image){
?>
<li class="propertyinfoli"><a class="osmodal" href="<?php echo JURI::root()?>images/osproperty/properties/<?php echo $row->id;?>/<?php echo $photos[$i]->image?>"><img src="<?php echo JURI::root()?>images/osproperty/properties/<?php echo $row->id;?>/medium/<?php echo $photos[$i]->image?>" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></a></li>
<?php
}else{
?>
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></li>
<?php
}
}else{
?>
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></li>
<?php
}
}
?>
</ul>
<div id="bx-pager" style="text-align: center;padding-top: 5px;">
<?php
for($i=0;$i<count($photos);$i++){
if($photos[$i]->image != ""){
if(JPATH_ROOT.'/images/osproperty/properties/'.$row->id.'/thumb/'.$photos[$i]->image){
?>
<a data-slide-index="<?php echo $i;?>" href=""><img class="detailwidth" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>" src="<?php echo JURI::root()?>images/osproperty/properties/<?php echo $row->id;?>/thumb/<?php echo $photos[$i]->image?>" /></a>
<?php
}else{
?>
<a data-slide-index="<?php echo $i;?>" href=""><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" /></a>
<?php
}
}else{
?>
<a data-slide-index="<?php echo $i;?>" href=""><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" /></a>
<?php
}
}
?>

</div>
<script>
jQuery(document).ready(function(){
jQuery('.bxslider').bxSlider({
pagerCustom: '#bx-pager',
mode: 'fade',
captions: true
});
});
</script>
<?php
}else{
?>
<ul class="bxslider" style="padding:0px;margin:0px;">
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="" title=""/></li>
</ul>
<?php
}
?>
</div>
</div>
</div>

And replace by this code

<div>
<div id="slides">
<?php
if(count($photos) > 0){
?>
<ul class="bxslider" style="padding:0px;margin:0px;">
<?php
for($i=0;$i<count($photos);$i++){
if($photos[$i]->image != ""){
if(JPATH_ROOT.'/images/osproperty/properties/'.$row->id.'/medium/'.$photos[$i]->image){
?>
<li class="propertyinfoli"><a class="osmodal" href="<?php echo JURI::root()?>images/osproperty/properties/<?php echo $row->id;?>/<?php echo $photos[$i]->image?>"><img src="<?php echo JURI::root()?>images/osproperty/properties/<?php echo $row->id;?>/medium/<?php echo $photos[$i]->image?>" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></a></li>
<?php
}else{
?>
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></li>
<?php
}
}else{
?>
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="<?php echo $photos[$i]->image_desc;?>" title="<?php echo $photos[$i]->image_desc;?>"/></li>
<?php
}
}
?>
</ul>

<?php
}else{
?>
<ul class="bxslider" style="padding:0px;margin:0px;">
<li class="propertyinfoli"><img src="<?php echo JURI::root()?>components/com_osproperty/images/assets/nopropertyphoto.png" alt="" title=""/></li>
</ul>
<?php
}
?>
</div>
</div>
</div>

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #54186 by Mr. Dam
Replied by Mr. Dam on topic Image Slideshow, Moving Fields
With other requests relate to MLS, here are my answers
1. Adapt REF# link (attached, screenshot) and create a link with target=blank, where the REF# is the MLS number, and the URL can be attached.

-> In this case, we must add new fields for properties to store the MLS's url of properties. You can add new column into MySQL Table #__osrs_properties and add code to allow administrator or agent can enter the link, or simplest solution is you can add the link into Short description field.

2. Change the wording of "Property Document" (an existing field) to "MLS Information" or "MLS Link" and move to the area just above the short description. (See attached screenshot)
--> You can use the Translation tool of OS Property to change "Property Document" to "MLS Information"

3. Move extra field location to just above the short description. (This shows as "MLS Information" on the live page.)
--> I am not sure with your problem, but i think you can change it: components > com_osproperty > templates > your_current_template > details.html.php

4. Change short description box to allow for hyperlink.
--> There are 2 places that you must change
a. administrator > components > com_osproperty > classes > property.html.php
find
<textarea name="pro_small_desc" id="pro_small_desc" cols="50" rows="5" class="input-large"><?php echo stripslashes($row->pro_small_desc)?></textarea>

and replace by

<?php
$editor = &JFactory::getEditor();
echo $editor->display( 'pro_small_desc', stripslashes($row->pro_small_desc) , '95%', '250', '75', '20' ,false) ;
?>


b. components > com_osproperty > helpers > layouts > propertyedit.php
find
<textarea style="min-height:150px;" name="pro_small_desc" id="pro_small_desc" cols="50" rows="5" class="inputbox"><?php echo $row->pro_small_desc?></textarea>

<?php
$editor = &JFactory::getEditor();
echo $editor->display( 'pro_small_desc', stripslashes($row->pro_small_desc) , '95%', '250', '75', '20' ,false) ;
?>

Good luck
Dam
and replace by

Please Log in or Create an account to join the conversation.

  • LKHightower
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #55143 by LKHightower
Replied by LKHightower on topic Create URL Field from REF# for MLS

With other requests relate to MLS, here are my answers
1. Adapt REF# link (attached, screenshot) and create a link with target=blank, where the REF# is the MLS number, and the URL can be attached.

-> In this case, we must add new fields for properties to store the MLS's url of properties. You can add new column into MySQL Table #__osrs_properties and add code to allow administrator or agent can enter the link, or simplest solution is you can add the link into Short description field.


Would it be possible to hire you to do this? Specifically, to replace the REF # field (referred to as MLS in the attached screenshot, highlighted in the red rectangle) with a field that will allow the agent to add the MLS number (as shown in the screenshot) as well as a URL, with target=_blank.

In standard HTML, the result would appear like this:
Code:
<a href="http://www.point2homes.com/US/Home-For-Sale/AR/Bryant/1400-Hunter-Wood-Drive/44745463.html" target="_blank">10387351</a>

The client has specifically requested this, rather than just adding the URL for the MLS in the description field, where it currently is.

Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

More
10 years 4 months ago #55180 by Mr. Dam
Replied by Mr. Dam on topic Create URL Field from REF# for MLS
OK, please submit ticket and we will discuss about this project
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan