Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: Put Featured Listings on your Front Page!

  1. #1
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    33

    Default

    Albert asked me to post how I put my listings on the Front Page, so I hope I'll be doing all who want to do this a time-saving favor.

    Step 1: On your front page or any page you want feature listings Insert this as your first line:
    Code:
    @include("/base_path/public_html/open_realty/include/common.php");
    :idea:Tip: The path to your Open-Realty common.php is different, check it carefully.

    Step 2: Find the location you want to put the featured listings in the code (right side of the page or left).

    Step 3: Paste this in the location.

    Code:
    renderFeaturedListingsVerticalInfo(4)
    :!:Note: This may not be the function you are using, check the featured listings function in your OR's index.php

    And you're done! Post any questions or comments you have here, and someone will help you out.

    Cheers 8)

  2. #2
    Join Date
    Apr 2003
    Location
    Charleville / Australia
    Posts
    1,421

    Default

    Max:
    Please check your code
    renderFeaturedListingsVerticalInfo(4)
    this would be an invalid function in a standard installation unless you have also the function that is being called.

  3. #3
    Join Date
    Jul 2003
    Location
    Canada
    Posts
    33

    Default

    Oh right, of course! Check the name of the function you are using for your featured listings. You can find it in the index.php of your Open Realty.

    Thanks R1. 8)

  4. #4
    Join Date
    Jul 2004
    Location
    Arizona, USA
    Posts
    239

    Default

    With this the featured listings are displayed but the links point to the wrong location.

    Here is the mod_rewrite I put together for my site to get it to function properly:

    RewriteRule ^listingview(.*)$ http://www.mydomain.com/openrealty/listingview.php [L,R=301]

  5. #5
    Join Date
    Sep 2004
    Posts
    22

    Default Hi Guys... Anybody familiar with XOOPS?

    I am trying to get the features to show up in a block in XOOPS... I've got a hybrid setup right now, and am using a full sedition of OR as opposed to the Xoops Mod put out by liquidFX though I have set that up as well...

    if anybody has and Idea how to code such a block please help if you have a minute... Have renamed the OR common.php file to common2.php so it won't conflict with the common.php file in XOOPS... I've pasted the following include statement in several places, including the XOOPS theme.htm, the header.php and even in the block with the renderfeatures pages... No luck... Here's the code I've tried besides the code listed in this thread....

    Include line:
    __________________________________
    include("include/common2.php");
    __________________________________


    Code from XOOPS block I've tried:
    __________________________________
    include("/adrple/include/common2.php");

    <?php renderFeaturedListingsVertical(4); ?>
    __________________________________

    I have also tried wrapping the code as an Iframe with no luck...

    TIA

    My head hurts....

  6. #6
    Join Date
    Jan 2005
    Posts
    349

    Default

    Quote Originally Posted by PHP shouldn't hurt
    I am trying to get the features to show up in a block in XOOPS... I've got a hybrid setup right now, and am using a full sedition of OR as opposed to the Xoops Mod put out by liquidFX though I have set that up as well...

    if anybody has and Idea how to code such a block please help if you have a minute... Have renamed the OR common.php file to common2.php so it won't conflict with the common.php file in XOOPS... I've pasted the following include statement in several places, including the XOOPS theme.htm, the header.php and even in the block with the renderfeatures pages... No luck... Here's the code I've tried besides the code listed in this thread....

    Include line:
    __________________________________
    include("include/common2.php");
    __________________________________


    Code from XOOPS block I've tried:
    __________________________________
    include("/adrple/include/common2.php");

    <?php renderFeaturedListingsVertical(4); ?>
    __________________________________

    I have also tried wrapping the code as an Iframe with no luck...

    TIA

    My head hurts....

    I covered this in some detail in this thread:

    http://support.open-realty.org/showthread.php?t=4405

    Actually the code referenced there was written to place it in a right side block in Xoops 2.0.7

  7. #7
    Join Date
    Sep 2004
    Posts
    22

    Default Thanks!!

    A million thanks!! I will read it and apply it!!

  8. #8
    Join Date
    Sep 2004
    Posts
    22

    Default Tom, the features setuo works in XOOPS!!

    Thanks for the help... Now i gotta figure out how to get the listing_view.php to show up in the center/center columns when the featured listing is clicked from the left column... since I'm in the XOOPs cms I can't do this through the style.php page.... If you understand my bable, your insights would be welcomed!!

    THANKS!

  9. #9
    Join Date
    Jan 2005
    Posts
    349

    Default

    have you ever considered planting your listingview page in cjcontent or one of the the other wrappers? To do this you would have to make your links absolute like the link we just did and cut out what you do not need of your user top and bottom.

    Perhaps you just need part of the common.php in a new file like the $conn and the $config[basepath/baseurl]. I prefer the approach of including a content page into xoops instead of a full module, but that is because I use xoops to run a few newspaper sites. I like it so much that if you can wait a week I will port the whole mess into xoops as a real estate classified extension to the OR, but not a module. This I can use.

    The idea of nesting one package into another is of little use to me. If you have seen the OSCommerce module for Xoops you can see the absurdity this can lead to. On the other hand, placing some content from the other app can work out great.

    Let me write a module that will act as a real wrapper with the params sent along. I like this idea. Thank you for the better idea

  10. #10
    Join Date
    Sep 2004
    Posts
    22

    Default Xoops and OR solutions

    I agree wholeheartedly... I have set up a workaround module and have hacked code that is isn't needed thanks to the XOOPS... Haven't gone down the cjcontent path, been displaying the list_view.php with an iframe... I think it does get a lot cumbersome nesting completely and have settled for the hybrid model you seem to fancy... Once I get a handle on how to best format the renderFeatures displays I think it will look good!! Not certain how I like using the '$title' variable... For my site I think I would like it to display something like this...


    _____________________________________
    Title like For Sale or for Lease

    Then Image file

    Then property type - House, Trailer, Duplex, whatever

    Then brief, brief description...
    _________________________

    Still thinking about that though.....

    The real work is on the listing view side... take a peek at my site and you can see how xoops is happily showing the featured property's in the iframe on the left, then when you click the property it displays the whole listing in the same miniscule window on the left... while leaving the massive right columns empty.... See what I'm upto here at:
    www.americasdiscountrealty.com
    Don't mind the clutter please, I'm new to XOOPS and OR and am working on this project at light speed!!! Also think a featured properties list that rotates featured properties in a single small box would be my preference... I saw a couple XOOPS mods that scroll gifs, didn't like the scroll effect and then theirs getting the code from the database into the box as well... so many complications... my head hurts!!

    Click on the Featured Listings tab to see the listing_view.php hack I have started... still haven't found the code responsible for this:

    "Save this search
    There are currently 9 listings that match your search criteria."

    So it looks very out of place IMO... especially since it calls on the user managment tools in OR and I'm obviously only interested in the role manager system that XOOPS provides... i can add any type of user I want and control the portal view accordingly... Will come in handy as i integrate the transaction manger application....


    I look forward to your insights!!

Similar Threads

  1. Replies: 15
    Last Post: 08-14-2006, 02:47 PM
  2. Displaying Random Featured Listings - SOLVED
    By cellularguy in forum HELP (CLOSED)
    Replies: 5
    Last Post: 08-10-2005, 04:58 AM
  3. Make a page for featured listings - ANSWERED
    By Jade in forum HELP (CLOSED)
    Replies: 6
    Last Post: 11-12-2003, 01:05 PM
  4. Feature Listings on front page
    By max in forum HELP (CLOSED)
    Replies: 0
    Last Post: 07-26-2003, 03:04 AM

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