Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
VIRTUAL TOUR HELP

 

 


thenetgirl
User

Aug 9, 2009, 9:49 PM

Post #1 of 9 (3132 views)
Shortcut
VIRTUAL TOUR HELP Can't Post

On the old system I could check a box and then add a url and only if there was a tour it would show up on the detail page.

I am looking for some info on how I could go about coding that with the cms builder.

thanks

Patricia


Donna
Staff / Moderator


Aug 11, 2009, 2:12 PM

Post #2 of 9 (3111 views)
Shortcut
Re: [thenetgirl] VIRTUAL TOUR HELP [In reply to] Can't Post

Hi Patricia!

With Instant Realty Website, you can set this up in a few ways -- you could even create an upload field and have the tour show up right on the page.

But to setup the same method you were using before, with a link to an existing tour elsewhere online, you'd want something like this:

First, create a Virtual Tour URL field in the back end, and take note of what fieldname you give it. For this example, I'll use "VirtualTourURL" as the field name.

Then, in your template, you'll want something like this:

<?php if ($record['VirtualTourURL']): ?>
<a href="<?php echo $record['VirtualTourURL'] ?>">Virtual Tour</a><br/>
<?php endif ?>

Give that a try and let me know if it works for you. :)

Donna

--
support@interactivetools.com


thenetgirl
User

Aug 11, 2009, 3:03 PM

Post #3 of 9 (3108 views)
Shortcut
Re: [Donna] VIRTUAL TOUR HELP [In reply to] Can't Post

Thanks Donna,

works perfectly thanks

Using that I went one step further with the Pet Friendly icon so thought I should share the code

<?php if ($vacation_rentalsRecord['pet_friendly'] == 'Yes'): ?>
<a href="<?php echo $vacation_rentalsRecord['pet_friendly'] ?>">
<span style="text-decoration: none">PET FRIENDLY<br><img src="/images/paw4.gif" border="0"></span></a>
<?php endif ?>

http://www.montereyrentals.com/2009/VacationRentalsDetail.php?3196P---TEST-1



I am still having problems trying to get the agent name and info on the pages I have tried just about every combo I can think of

homespage.fullname etc etc but no luck is this something that has to do with the record number? ( I am using cms builder regular - not the realty one)

thanks again

Patricia


Donna
Staff / Moderator


Aug 11, 2009, 3:22 PM

Post #4 of 9 (3106 views)
Shortcut
Re: [thenetgirl] VIRTUAL TOUR HELP [In reply to] Can't Post

Hi Patricia!

Glad to hear that worked for you -- in your Pet Friendly code, you may want to drop the a href part, as that currently just links to the word "Yes". The a href was only required for the virtual tour because it was linking to a different URL.

For showing homepage information, do you have the "jointable" bit set in the header code? You should have something like this:

'joinTable' => 'homepages',

...assuming your agents section is named "homepages". Then <?php echo $listing['homepages.fullname'] ?> should start working for you. :)

Donna

--
support@interactivetools.com


thenetgirl
User

Aug 11, 2009, 3:54 PM

Post #5 of 9 (3104 views)
Shortcut
Re: [Donna] VIRTUAL TOUR HELP [In reply to] Can't Post

Yes its joined and listed both

list($vacation_rentalsRecords, $vacation_rentalsMetaData) = getRecords(array(
'tableName' => 'vacation_rentals',
'joinTable' => 'homepages',
'where' => whereRecordNumberInUrl(1),
'limit' => '1',
));
$vacation_rentalsRecord = @$vacation_rentalsRecords[0]; // get first record

// show error message if no matching record is found
if (!$vacation_rentalsRecord) {
print "Record not found!";
exit;
}

list($homepagesRecords, $homepagesMetaData) = getRecords(array(
'tableName' => 'homepages',
));


I have tried

<?php echo $vacation_rentalsRecord['homepages.fullname'] ?>

<?php echo $Record['homepages.fullname'] ?>

and

<?php echo $listing['homepages.fullname'] ?>



just get and error each time like this with each one

Phone: Notice: Undefined variable: Record in /home/mtyrents/www/montereyrentals.com/2009/VacationRentalsDetail.php on line 148


Donna
Staff / Moderator


Aug 11, 2009, 4:38 PM

Post #6 of 9 (3103 views)
Shortcut
Re: [thenetgirl] VIRTUAL TOUR HELP [In reply to] Can't Post

Hi Patricia,

Definitely odd. Do you want to fill in a support request? That way I can take a look at it directly and see what's going on. :)

https://www.interactivetools.com/support/email_support.cgi

Donna

--
support@interactivetools.com


thenetgirl
User

Aug 11, 2009, 6:23 PM

Post #7 of 9 (3099 views)
Shortcut
Re: [Donna] VIRTUAL TOUR HELP [In reply to] Can't Post

Ok sent support ticket


ross
Staff / Moderator


Aug 13, 2009, 3:15 PM

Post #8 of 9 (3084 views)
Shortcut
Re: [thenetgirl] VIRTUAL TOUR HELP [In reply to] Can't Post

Hi there.

I had a chance to look over your support ticket and emailed back a solution. Wanted to update this thread too though so anyone else following along knows what happened :).

Basically, when you are using the join option, you need to make sure of two things. First, when you have something like this:

<?php echo $vacation_rentalsRecord['homepages.name'] ?>

the part after the dot (in this case .name) is the name of the field in the other table so it has to be exactly the same.

Second, and this one is more conceptual than coding, the record in your listings table has to be created by the same person as the record in the homepages section. If you are an admin you can actually change who created a record. It's the very first field when you are modifying a listing or homepage.

Have a look and let me know if I can go over that in anymore detail :).

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

Aug 13, 2009, 3:37 PM

Post #9 of 9 (3082 views)
Shortcut
Re: [ross] VIRTUAL TOUR HELP [In reply to] Can't Post

Thank You Ross that was so simple why couldnt I think of that


I changed michelle homepage to her instead of admin and it worked

Its perfect now http://www.montereyrentals.com/2009/VacationRentalsDetail.php?1149S-8

thanks again
pg