+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Featured image on the listing page

  1. #1
    Senior Member
    Join Date
    Nov 2021
    Posts
    119

    Featured image on the listing page

    Hello, I wanted to display the inscription Featured on the listing page so that users could see that the listing is premium, I used this code {if $listing.Featured}<div class="label" title="{$lang.featured}">{$lang.featured}</div>{/if} and unfortunately it is not displayed(

  2. #2
    Do you want to show the Featured label on the profile details page?
    Viktor,
    Flynax technical department,
    Best wishes.

  3. #3
    Senior Member
    Join Date
    Nov 2021
    Posts
    119
    Yes, that's right!

  4. #4
    At first, you need to add 1 line in mysql query.
    Open the file: ftp://includes>>controllers>>listing_details.inc.php
    find the line:
    Code:
    Only registered members can view the code.
    below add a new one:
    Code:
    Only registered members can view the code.
    Then you can use your code in tpl file:
    Code:
    Only registered members can view the code.
    also you need to add styles for the lable.
    Viktor,
    Flynax technical department,
    Best wishes.

  5. #5
    Senior Member
    Join Date
    Nov 2021
    Posts
    119
    Dont work((( MYSQL ERROR in listing page
    Last edited by Kaniel Outis; December 24, 2021 at 02:44 PM.

  6. #6
    Master
    Join Date
    Apr 2017
    Location
    Tehran/Iran
    Posts
    489
    Probability
    Code:
    Only registered members can view the code.
    should be
    Code:
    Only registered members can view the code.

  7. #7
    Senior Member
    Join Date
    Nov 2021
    Posts
    119
    I'm sorry, I didn't see the difference in the two lines)))

  8. #8
    Quote Originally Posted by Kaniel Outis View Post
    I'm sorry, I didn't see the difference in the two lines)))
    Check this out

    $sql .= "IF(`T1`.`Featured_date`, '1', '0') `Featured`, ";

  9. #9
    Senior Member
    Join Date
    Nov 2021
    Posts
    119
    Yes, I didn't notice the comma in the code! The error has disappeared, then the Featured parameter is not displayed on the listing page

  10. #10
    Quote Originally Posted by Kaniel Outis View Post
    Yes, I didn't notice the comma in the code! The error has disappeared, then the Featured parameter is not displayed on the listing page
    Can I see your website? Make sure you add the code in the tpl file in your template folder, and CSS style for it too.

+ Reply to Thread