Advertisement:

Author Topic: Refurbished Real Estate Theme  (Read 20514 times)

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #15 on: October 13, 2013, 11:32:31 am »
I am working on fixing that. Currently it does not indicate. I will re-upload the whole theme with that fixed

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #16 on: October 13, 2013, 02:31:45 pm »
I have fixed the display of premium ads. Here is the new development.
  • Premium Ads can now be displayed, both on the main page and listings page
  • I have gotten rid of the duplication of Ads. Now, the same Ad will not be displayed twice in the same list when marked as premium
  • All changes and concerns raised by pablo22 have been incorporated to the updated theme so when you download it you will not have to make changes such as the country in post and edit item, the display of more than three ads....

I have had to make some changes and additions to the realestate attributes plugin so it is advisable to download both the theme and plugin attached to this post. Note that downloading the updated theme alone will not display some attributes in the main page and listings page so pleaaaasee...download and update both the theme and plugin. Also, just to repeat, this updated theme contains all changes discussed on this thread.

I have also updated my initial post with the current changes so downloading from my first post is also okay. Download and overwrite the files in your real estate theme as well as the real estate attributes plugin.

Download from my first post. Follow this link to go to my first post http://forums.osclass.org/real-estate/refurbished-real-estate-theme/
« Last Edit: October 16, 2013, 12:13:57 pm by AdNet »

pablo22

  • Newbie
  • *
  • Posts: 27
Re: Refurbished Real Estate Theme
« Reply #17 on: October 13, 2013, 10:46:44 pm »
Good job AdNet. 8) 8) 8) 8)
There is something else I would like you to look at: the thumbnails.
The good thing about osclass is that it's customizable and anyone can do whatever they want it. If you want the thumbnails of the listings to be bigger on the front page, they will also be big on the search result. For example the thumbnails have a width of 366px on the frontpage. They are as big on the search results. If you could control the width of the thumbanails on the front page and the ones on the search results separately , it would be great.

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #18 on: October 13, 2013, 11:08:44 pm »
That is okay. I'll see what I can come up with.

pablo22

  • Newbie
  • *
  • Posts: 27
Re: Refurbished Real Estate Theme
« Reply #19 on: October 14, 2013, 05:44:22 pm »
I just tested the theme with all the latest changes that you've made, unfortunately there are still some issues.
When there are four listings marked as premium, only two are marked and four listings are displayed even if there are more than four.
2-Listings are marked as free and premium at the same time

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #20 on: October 14, 2013, 10:35:58 pm »
I will check that out.

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #21 on: October 16, 2013, 12:08:57 pm »
The problem with premium Ads has now been solved. Initially only two premium Ads would be displayed but now up to 1000 premium Ads will be displayed both on the homepage and listings page.

I have attached the modified theme. @Pablo, am still working on having different styling for the homepage thumbnails.

Download from my first post. Follow this link to go to my first post http://forums.osclass.org/real-estate/refurbished-real-estate-theme/
« Last Edit: October 16, 2013, 12:16:38 pm by AdNet »

Web-Media

  • Sr. Member
  • ****
  • Posts: 453
  • Web
Re: Refurbished Real Estate Theme
« Reply #22 on: October 18, 2013, 07:33:54 pm »
jquery.uniform  must be loaded  before or drop  any calls to uniform
Code: [Select]
// Apply the UniForm plugin to pulldows and button
$("input:file, textarea, select, button, .search select, .search button, .filters select, .filters button, #comments form button, #contact form button, .user_forms form button, .add_item form select, .add_item form button, .modify_profile select, .modify_profile button").uniform({fileDefaultText: fileDefaultText,fileBtnText: fileBtnText});

pablo22

  • Newbie
  • *
  • Posts: 27
Re: Refurbished Real Estate Theme
« Reply #23 on: October 18, 2013, 09:24:22 pm »
The problem with premium Ads has now been solved. Initially only two premium Ads would be displayed but now up to 1000 premium Ads will be displayed both on the homepage and listings page.

I have attached the modified theme. @Pablo, am still working on having different styling for the homepage thumbnails.

Download from my first post. Follow this link to go to my first post http://forums.osclass.org/real-estate/refurbished-real-estate-theme/

 I'd like to point out something else....
When you publish a listing only the state or region and city appears on the side(state,City), it doesn't show the full address(street,City,State). Take a look at

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #24 on: October 18, 2013, 09:51:53 pm »
Pablo22, do the following:

In item.php, locate

Code: [Select]
echo  '<div class="mini">';
                    if ( osc_item_city() != "" ) {
                        $tempData  = osc_item_city();
                        if(osc_item_field("fk_i_city_id") != "" ){
                            $tempData = '<a href="'.osc_search_url( array( 'sCity' => osc_item_field("fk_i_city_id") ) ).'">'.osc_item_city().'</a>';
                        }
                        echo  $tempData;
                    }
                        echo '</div>';
                    echo '</div>';

and replace it with

Code: [Select]
echo  '<div class="mini">';
                    echo implode(', ', $location);
                        echo '</div>';
                    echo '</div>';
                }

thedon

  • Sr. Member
  • ****
  • Posts: 341
Re: Refurbished Real Estate Theme
« Reply #25 on: October 18, 2013, 10:39:20 pm »
Brilliant stuff,how do i replace the logo please,i am using it as an autoclassifieds

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #26 on: October 18, 2013, 10:44:05 pm »
To change the logo, simply go to your admin page, under plugins, select "Settings theme" and change it there. Alternatively, you can replace the logo directly from the images folder within the theme folder. Find logo.jpg and replace it with your desired image. Make sure it has a .jpg extension and named "logo".

pablo22

  • Newbie
  • *
  • Posts: 27
Re: Refurbished Real Estate Theme
« Reply #27 on: October 18, 2013, 10:51:04 pm »
Pablo22, do the following:

In item.php, locate

Code: [Select]
echo  '<div class="mini">';
                    if ( osc_item_city() != "" ) {
                        $tempData  = osc_item_city();
                        if(osc_item_field("fk_i_city_id") != "" ){
                            $tempData = '<a href="'.osc_search_url( array( 'sCity' => osc_item_field("fk_i_city_id") ) ).'">'.osc_item_city().'</a>';
                        }
                        echo  $tempData;
                    }
                        echo '</div>';
                    echo '</div>';

and replace it with

Code: [Select]
echo  '<div class="mini">';
                    echo implode(', ', $location);
                        echo '</div>';
                    echo '</div>';
                }

This is what I got back:
Quote
Warning: implode(): Invalid arguments passed in C:\xampp\htdocs\osclass\oc-content\themes\realestate1\item.php on line 244 - See more at: http://localhost/osclass/house/rent_1/example-ad_i3#sthash.ZhgGp5S8.dpuf

AdNet

  • Jr. Member
  • **
  • Posts: 62
Re: Refurbished Real Estate Theme
« Reply #28 on: October 18, 2013, 10:55:13 pm »
Oh sorry! Please copy these at the top of item.php, just before <?php osc_current_web_theme_path('header.php') ; ?>

Code: [Select]
<?php $location = array();
    if( 
osc_item_city_area() !== '' ) {
        
$location[] = osc_item_city_area();
    }
    if( 
osc_item_city() !== '' ) {
        
$location[] = osc_item_city();
    }
    if( 
osc_item_region() !== '' ) {
        
$location[] = osc_item_region();
    }
    if( 
osc_item_country() !== '' ) {
        
$location[] = osc_item_country();
    }
?>

thedon

  • Sr. Member
  • ****
  • Posts: 341
Re: Refurbished Real Estate Theme
« Reply #29 on: October 18, 2013, 11:40:29 pm »
To change the logo, simply go to your admin page, under plugins, select "Settings theme" and change it there. Alternatively, you can replace the logo directly from the images folder within the theme folder. Find logo.jpg and replace it with your desired image. Make sure it has a .jpg extension and named "logo".

in theme settings it's just blank so went to ftp in images,no logo.jpg there so just added it to images folder and worked  ;D