+ Reply to Thread
Results 1 to 3 of 3

Thread: how to create additional featured content box

  1. #1
    Senior Member
    Join Date
    Dec 2023
    Posts
    161

    how to create additional featured content box

    With the default installation, there is a content box for featured listings.
    Code:
    Only registered members can view the code.
    I would like to create a second featured content box so that I can set one placed Location=sidebar on some pages, and one placed location=Top (body) in other pages.

    However, if I create what seems to be to be an identical content box by copying and pasting as follows to create a new content box:
    Code:
    Only registered members can view the code.
    It says:
    There are no listings. Be the first to add a listing.
    However if I place the new content box "featuredsidebar" on the same page as the original featured content box "ltfb_listings" then both work.

    What am I missing to make the second featured content box "featuredsidebar" work alone on a page without the original content box "ltfb_listings" on that page?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,174
    Try this:

    in includes/classes/rlListings.class.php -> public function buildFeaturedBoxes

    replace below:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code
    then replace:
    PHP Code:
    Only registered members can view the code
    with:
    PHP Code:
    Only registered members can view the code
    Last edited by Rudi; January 19, 2024 at 08:26 AM.

  3. #3
    Senior Member
    Join Date
    Dec 2023
    Posts
    161
    Awesome!

    Thank you Rudi. That works perfectly! Thanks once again!

+ Reply to Thread