an
groups-icon

Make the "Add to Favorites" link inactive after it's been clicked?

Wait a minute... This content is very very old. We no longer sell or support this theme version. New Topics
  • Version 9
    0 points
    Beginner

    Hi all,

    Currently, DirectoryPress displays the “Add to Favorites” link on all listings, even if the listing has already been added to the visitor’s favorites.

    I’d love to find a way to make the Add to Favorites link dimmed, inactive, or gone entirely if a particular listing has already been added to a visitor’s favorites. But I’m running into trouble trying to find a way to do that.

    There doesn’t seem to be a built-in way to do this. Fine, I’m willing to wade into the code. But I don’t want to break anything or hinder the performance of my site.

    I see at PPT/ajax/actions.php, there’s a section called Wishlist that seems to be relevant. I’m guessing that copying that SQL query onto the _item.php or _single.php templates is probably a bad idea from a server performance perspective.

    What’s the best way to make this happen?

    January 11, 2014 at 6:04 am
  • Laurent RICHARD
    0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    April 12, 2014 at 9:55 am
  • 0 points
    Beginner
    Members Only Content

    This reply is for PremiumPress customers only.

    Login Now
    February 17, 2015 at 9:49 am

461

Views

2

Replies