Results 1 to 7 of 7

Thread: Featured Listings on external site

  1. #1
    Join Date
    Dec 2005
    Posts
    5

    Default Featured Listings on external site

    I have a index.html page that I would like to post the featured listings on.

    I have tried

    <? include("/usr/www/users/thesite/include/common.php");
    renderFeaturedListingsVertical(1); ?>

    and I get

    Fatal error: Call to undefined function: renderfeaturedlistingsvertical() in /usr/www/users/thesite/test.php on line 3

    I am using 2.0

    Any Ideas

  2. #2
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    49
    Posts
    9,796

    Default Re: Featured Listings on external site

    This will not work with 2.0. See this thread. http://support.open-realty.org/showthread.php?t=8451

  3. #3
    Join Date
    Dec 2005
    Posts
    5

    Default Re: Featured Listings on external site

    OK I have looked at the core.inc and listing.inc.php and still have no clue any ideas or direction

  4. #4
    Join Date
    Apr 2005
    Posts
    15

    Default Re: Featured Listings on external site

    Hello all! I'm trying the code recommended here, but wonder if in 2.1.5 things have changed.

    If I do this:

    <?PHP
    include("boats_for_sale/include/common.php");
    include("boats_for_sale/include/listing.inc.php");
    $display=listing_pages::renderFeaturedListings(6,' horizontal');
    print $display;
    ?>

    I get this:

    Template file /home/bpadmin/public_html/boats_for_sale/template/vertical-menu/featured_listing_ horizontal.html not found.

    And that file is exactly where it says it can't find it.

    Any ideas what's changed, or... what I can do to resolve this?

    Thanks,
    Corey

  5. #5
    Join Date
    Jun 2004
    Posts
    1,067

    Default Re: Featured Listings on external site

    remove the space before the word horizontal in your function call.

  6. #6
    Join Date
    Apr 2005
    Posts
    15

    Default Re: Featured Listings on external site

    Ah, that little booger!

    That does work, I'm using an addon that lets me get around the horizontal listing problem, but I can't figure out how to call that externally, and ideas?

    I tried;

    <?PHP
    include("boats_for_sale/include/common.php");
    include("boats_for_sale/include/listing.inc.php");
    include("boats_for_sale/addons/featured/addon.inc.php");
    $display=listing_pages::addonFeaturedListingsHoriz ontal();
    print $display;
    ?>

    But it returns:

    Fatal error: Call to undefined function: addonfeaturedlistingshorizontal() in /home/bpadmin/public_html/index.html on line 147

    and that is the function in the addon. Any ideas?

  7. #7
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    49
    Posts
    9,796

    Default Re: Featured Listings on external site

    Try changing
    $display=listing_pages::addonFeaturedListingsHoriz ontal();

    to
    $display=addonFeaturedListingsHoriz ontal();

    The listing_pages:: in front of the function is telling the script to look in the listing_pages class which is in listings.inc.php. The function you are calling is in your addon file, not in listings.inc.php.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •