Before we begin, it is important to note that the inclusion code for AgentAve is written in PHP. We do not offer code for ASP. However, if your developer is able, the code can easily by converted to ASP – it is just a small amount (10-15 lines of code) and well worth the effort.
AgentAve is an IDX solution that can be framed OR included into your website. The benefit of including instead of framing is the content becomes PART of your website. This is desireable because included content inherits your styling – so the listings can blend in very nicely. In addition, you, or your web developer, can overwrite default AgentAve styling to further blend the content. Addtionally, because the content becomes part of your site, the search engines consider the content YOUR content – this is excellent for SEO!
AgentAve provides two types of content.
- Widgets – can be placed on any page. Quick Search, Slide Shows, Search Results Lists (Such as Historic Properties in Your Town, etc – the source of these widgets is searches saved within the manager back end).
- Primary search and display. This shows when a user clicks on Search MLS. Is is ONE page containing code provided by AgentAve.
Getting Started
By default PHP does not allow the use of a remote URL in a require call. In order to allow this you must either edit your system php.ini file or a local copy that is specific to your web site’s files. Change this entry:
allow_url_include = On
AgentAve requires the use of sessions to help track page requests. Therefore, your calling page should also initiate a session. This must be done before any output to the browser. Therefore, the first line of your page should read:
Parse error: syntax error, unexpected '<' in /var/www/vhosts/agentave.com/httpdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 1
- Create a page on your website that will be your MLS page. (mls.php – listings.php, whatever you like).
- In the header secion, add the following code:
Parse error: syntax error, unexpected '<' in /var/www/vhosts/agentave.com/httpdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 2
- Within your page’s main content area, add this code:
Parse error: syntax error, unexpected '<' in /var/www/vhosts/agentave.com/httpdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 2
- Next, log into your account in the AgentAve manager. click on Contact Info. Then, enter your site information at the bottom.
That’s it! Browse to your search page and you should see a search screen.
To add the quick search widget or a slide show, enter the following code at the appropriate location within your page(s).
Parse error: syntax error, unexpected '<' in /var/www/vhosts/agentave.com/httpdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 2
Finally, to add a saved search results LIST on any page within your site, add this code:
Parse error: syntax error, unexpected '<' in /var/www/vhosts/agentave.com/httpdocs/wp-content/plugins/allow-php-in-posts-and-pages/allowphp.php(373) : eval()'d code on line 2