Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Open House date Help

 

 


thenetgirl
User

May 7, 2009, 10:08 PM

Post #1 of 10 (5023 views)
Shortcut
Open House date Help Can't Post

I would like only from today forward to show on the open house field results http://canada.exedor.net/listings.php

Any ideas I have read everything I could find but couldnt find anything on that.



Thanks

Patricia


ross
Staff / Moderator


May 8, 2009, 9:10 AM

Post #2 of 10 (5021 views)
Shortcut
Re: [thenetgirl] Open House date Help [In reply to] Can't Post

Hi Patricia

Thanks for posting!

How are you entering the open house dates when you create the listing?

Is it with the date/time drop down menus or are you just entering text?

You'll definitely want to be using the drop downs but let me know and we'll go from there.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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/



thenetgirl
User

May 8, 2009, 11:27 AM

Post #3 of 10 (5018 views)
Shortcut
Re: [ross] Open House date Help [In reply to] Can't Post

 ITs with the time drop date

Next Open House: 
</font>
<font face="Verdana" size="2">
<?php echo date("D, M jS, Y g:i:s a", strtotime($listingsRecord['open_house'])) ?>


ross
Staff / Moderator


May 11, 2009, 9:54 AM

Post #4 of 10 (4998 views)
Shortcut
Re: [thenetgirl] Open House date Help [In reply to] Can't Post

Hi Patricia

Percect! Could you post a copy of your listings.php page? As an attachment will work better than just sticking the code in the reply.

What we should be able to do is stick a where date > now() in there somewhere but I'd like to see how you have things setup.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@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/



thenetgirl
User

May 11, 2009, 12:16 PM

Post #5 of 10 (4994 views)
Shortcut
Re: [ross] Open House date Help [In reply to] Can't Post

Here you go Ross


thenetgirl
User

May 11, 2009, 1:55 PM

Post #6 of 10 (4992 views)
Shortcut
Re: [thenetgirl] Open House date Help [In reply to] Can't Post

Ok I thought I attached it before but its here now
Attachments: listings.php (4.56 KB)


thenetgirl
User

May 13, 2009, 4:10 PM

Post #7 of 10 (4777 views)
Shortcut
Re: [ross] Open House date Help [In reply to] Can't Post

Ross did you see the info I posted



Thanks

Patricia


thenetgirl
User

May 20, 2009, 2:27 PM

Post #8 of 10 (4528 views)
Shortcut
Re: [thenetgirl] Open House date Help [In reply to] Can't Post

Can anyone help me on this time sorting



thanks


Damon
Staff / Moderator


May 22, 2009, 2:15 PM

Post #9 of 10 (4435 views)
Shortcut
Re: [thenetgirl] Open House date Help [In reply to] Can't Post

Hi,

Try adding this code to your listings.php template:


Code
<?php 
$current_date = date('U');
$openhouse_date = date('U', strtotime($record['open_house']));
?>
<?php if($current_date < $openhouse_date) : ?>
<strong>Next Open House: </strong><?php echo date("D, M jS, Y g:i a", strtotime($record['open_house'])) ?><br />
<?php endif; ?>


This checks the current date, then compares it to see if it is less than the Open House Date. If it is, it outputs the open house details.

Give that a try and let me know how it works out.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

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


thenetgirl
User

May 26, 2009, 6:23 PM

Post #10 of 10 (4075 views)
Shortcut
Re: [Damon] Open House date Help [In reply to] Can't Post

sweeeeeeeet thanks Damon