Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Featured Listings on External Pages

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

    Default Re: Featured Listings on External Pages

    Examples:

    Base Url = http://www.yoursite.com/or
    Base Path = /home/abc/xyz/www/or

  2. #12
    Join Date
    Sep 2006
    Location
    Kajang, Negeri Sembilan, Malaysia, 109921245703854, Kajang, Malaysia
    Posts
    148

    Default Re: Featured Listings on External Pages

    recently my hosting provider doing migration from server with php 4++ tp new server with php 5++, I got this error using this addon. before this, it works. hope somebody can help

    Warning: include(/addons/extfeat/extfeat.php) [function.include]: failed to open stream: No such file or directory in /home/hartucom/public_html/putraproperty/template/free1/main.html on line 145

    Warning: include() [function.include]: Failed opening '/addons/extfeat/extfeat.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/hartucom/public_html/putraproperty/template/free1/main.html on line 145

    i'm using this code in my main.html

    PHP Code:
    <?php include("/addons/extfeat/extfeat.php"); ?>
    and this in my extfeat.php
    PHP Code:
    <?PHP
    $OR_URL
    ="http://www.rescom.my"//without trailing slash

    // do not edit
    $url=$OR_URL.'/index.php?action=addon_extfeat_show&popup=yes';
    $ch curl_init($url);
    ob_start();
    curl_exec($ch);
    curl_close($ch);
    $data ob_get_contents();
    ob_end_clean();
    echo 
    $data;
    ?>
    www.hartanah2u.com/ - Real Estate Agent
    www.putraproperty.com/ - Malaysia Real Estate Free Portal
    www.rescom.my/ - My Company Website
    www.iklansini.com/ - Classified Ads using OR

  3. #13
    Join Date
    Sep 2006
    Location
    Kajang, Negeri Sembilan, Malaysia, 109921245703854, Kajang, Malaysia
    Posts
    148

    Default Re: Featured Listings on External Pages

    My problem solve...

    after changing my server which using php5, need to remove '/' in include statement..

    PHP Code:
    <?php include('addons/extfeat/extfeat.php'); ?>
    before this i'm using

    PHP Code:
    <?php include('/addons/extfeat/extfeat.php'); ?>
    www.hartanah2u.com/ - Real Estate Agent
    www.putraproperty.com/ - Malaysia Real Estate Free Portal
    www.rescom.my/ - My Company Website
    www.iklansini.com/ - Classified Ads using OR

  4. #14
    Join Date
    Oct 2009
    Posts
    22

    Default Re: Featured Listings on External Pages

    i am getting an error when i use this, it shows everything as it should but i have added a header image to the admin section and it shows in the external page using the extfeat.php, i realise tht this is becuase of the listing.inc.php calling the login.inc.php is there anyway to take out the header from the extfeat.php meaning like a conditional formatting that the image wont show if its being show on a page apart from the actual login page?

    any help is greatly appreciated


    thanks!

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

    Default Re: Featured Listings on External Pages

    Where did you add the header image? What file? A header image in your admin template shouldn't affect this addon at all. Did you possible add the header to the popup.html template file?

  6. #16
    Join Date
    Oct 2009
    Posts
    22

    Default Re: Featured Listings on External Pages

    yes, i added te image to the popup.html page....

    do you know how i get it to not show in the extfeat?

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

    Default Re: Featured Listings on External Pages

    Create a file in your template folder with only the cotents below and name it pageEXT_main.html.

    Then in extfeat.php change the link to $url=$OR_URL.'/index.php?action=addon_extfeat_show&PageID=EXT

    Content for template file:

    {load_js} {license_tag}
    {content}
    {load_js_last}

  8. #18
    Join Date
    Oct 2009
    Posts
    22

    Default Re: Featured Listings on External Pages

    thanks!!!!

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
  •