Posting Real Estate Properties Jointing (from 2 users)

14 posts by 3 authors in: Forums > CMS Builder
Last Post: August 27, 2012   (RSS)

By csdesign - July 25, 2012

Hello!
I have a real estate website that I need to make one change to and I would really appreciate some help making this happen.

So, what I'm thinking adding an additional "lister" rather than a new user is the answer because I need to keep the properties listed as just the two users (agents) for the navigation. For example, on this page:


http://www.dunhamrealestateservices.com/listings.php?property_type=Commercial+and+Business&state=Montana


instead of having the 1st two properties with different photos (notice by the address - they are the same property) and having a single agent name at the bottom:

Call Agent: Lyle Dunham at 406-425-0180

I would just like the property to be listed just once, and then at the bottom of the listing page and also on the listing detail page to be something like this:

Call Agent: Lyle Dunham at 406-425-0180
Call Agent: Cindy Dunham at 406-425-0182

I made a new field in Property Listings called "listed_jointly" and then listed both names that could be the additional lister (Lyle, Cindy) ... but now i"m getting errors and I know I'm doing something obviously wrong.

I pulled this code from the generator:

Listed Jointly With (values): <?php echo join(', ', $listingsRecord['listed_jointly:values']); ?><br/>
Listed Jointly With (labels): <?php echo join(', ', $listingsRecord['listed_jointly:labels']); ?>


Added it in, and got this: (line 105 is the first line listed below)

http://www.dunhamrealestateservices.com/listingDetail10.php?Commercial-Building-in-Cooke-City-Montana-for-Sale-44

I've attached both my testing files for listing.php page and listingDetail.php page. Thanks SOOOO much!!! Tina

Re: [csdesign] Posting Real Estate Properties Jointing (from 2 users)

By ross - July 27, 2012

Hi Tina

Thanks for posting!

I have had a look at your setup and I am thinking there might be a different way to do this that ends up being easier.

My idea would be to add a list field to your properties called "Listed By". That would be setup to pull the names from your User Account Section. Basically, you just select the users that you want to be set for the "listed by" field on the page and hit save.

Does that sound like it would work?

Let me know what you think and we go over the code you'll need :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [csdesign] Posting Real Estate Properties Joint Listing (from 2 users)

By Jason - August 15, 2012

Hi Tina,

You could do it that way, but it can make it harder to get the rest of their information. The best thing to do is to use their user number of as the value that is stored. Here's another approach you can try.

In the accounts section, created a checkbox field called "is_listing_agent". Check this box for each listing agent (this will give you the ability to create more in the future). Then, in your listings section, you can create your listed_by field to only retrieve accounts where the box is checked. (see attached screen shot)

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Attachments:

listedby.png 24K

Re: [Jason] Posting Real Estate Properties Joint Listing (from 2 users)

By csdesign - August 15, 2012

see... I knew you guys would have a great way to make this happen! I'll try that!

Re: [Jason] Posting Real Estate Properties Joint Listing (from 2 users)

By csdesign - August 15, 2012

Hi Jason,

So I created the "is_listing_agent" field in User Accounts (see screenshot).

Then went to Property listings and set that up but I get a 403 error (see screenshot).

Any ideas on what I'm doing wrong?

Thanks!!! Tina
Attachments:

picture-19.png 56K

picture-18.png 90K

Re: [csdesign] Posting Real Estate Properties Joint Listing (from 2 users)

By Jason - August 16, 2012

Hi Tina,

That's an unusual error to get. The one thing I noticed in your screenshot is that you have an advancedFilter set up for createdByUserNum. Try removing this.

If that doesn't work, please send in a [url http://www.interactivetools.com/support]2nd Level Support [/url] Request and we'll take a closer look.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Posting Real Estate Properties Joint Listing (from 2 users)

By csdesign - August 22, 2012

well, crazy thing. I had tried leaving the list menu blank and got the error too but this time it worked! yeah!

I tried working the code into the listingDetail.php and listings.php page and maybe it's just one of those days but I'm having some issues with it and producing a lot of errors in the code.

Here's the code that displays the individual agent's info on a property page (listingDetail) - but of course, I need it to show both agents if they are both selected in the "listed_by" field.

listingsDetail.php

Listed by:
<a href="<?php echo $listing['homepages._link'] ?>"><?php echo $listing['homepages.fullname'] ?></a>, <?php echo $listing['listing_company'] ?>

Call:
<?php echo $listing['homepages.phone'] ?>
<a href="listings.php?createdByUserNum=<?php echo $listing['createdByUserNum'] ?>"><b>Click here to view my other listings</b></a>



listings.php

Call Agent:
<a href="<?php echo $listing['homepages._link'] ?>"><?php echo $listing['homepages.fullname'] ?></a> at <?php echo $listing['homepages.phone'] ?>

There are two agents - Cindy is user #4 & Lyle is #3 if that makes any difference.

Attached are the php files referenced above.
Thanks again for your help!!!
Tina

Re: [csdesign] Posting Real Estate Properties Joint Listing (from 2 users)

By csdesign - August 22, 2012

Almost forgot, although I'm sure this won't be an issue. Will a joint property still show up under the UserNum that I'm using to create the navigation with?

ie: just showing Agent #4's listings.
http://www.dunhamrealestateservices.com/listings.php?createdByUserNum=4

Re: [csdesign] Posting Real Estate Properties Joint Listing (from 2 users)

By Jason - August 23, 2012

Hi Tina,

What are the error's you're getting? Can you provide a link to a page that demonstrates these errors?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/