• Resolved Scren

    (@scren)


    I need to add listings that don’t actually have full profile pages, but will still appear in the search results. Is there any way of doing this? Or do all listings get their own profile, no matter how few fields are filled in? Is there a way to make this happen? Say, whenever a specific field is left empty then there is no profile page.

    Thanks!

    https://www.ads-software.com/plugins/business-directory-plugin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi Scren,

    So, I’m confused here. A profile is something that we don’t really control very much. That’s a WordPress notion of the user’s data. A listing is something that we control, and we can enforce certain requirements on it. But profiles only require the presence of a login name, email and password, minimally. Beyond that, we have no control over what users do or don’t put in there.

    Based on that and your description, I’m not entirely clear on what your goal is here since you didn’t mention what specific fields are supposed to be connected to a profile somehow…

    Thread Starter Scren

    (@scren)

    Sorry, I wrote that at the end of a long day and totally confused my terms. I didn’t mean profiles at all, I actually meant to say adverts. Here’s what I was trying to say, but with the correct words:

    “I need to add listings that don’t actually have full advert pages, but will still appear in the search results. Is there any way of doing this? Or do all listings get their own advert, no matter how few fields are filled in? Is there a way to make this happen? Say, whenever a specific field is left empty then there is no advert.”

    So let’s say for simplicity, that there’s a field called “full-advert”. If it says “yes” then when a search is done, that listing will be clickable and have its own page. But if it says “no” then the listing will appear in the search results but it won’t be clickable and the person searching will not be able to get more details that what is in the search results page.

    I hope that makes more sense this time! Apologies again

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi Scren,

    Each listing gets a full set of fields to display, no matter how the fields are filled in. You probably want to make certain fields required, preventing a user from submitting it if they haven’t filled them all in. But we don’t conditionally display listings based on the fields being filled in or not.

    Thread Starter Scren

    (@scren)

    Is there a way you suggest I might be able to approach attempting this?

    For example, I think possibly the wpbdp_the_listing_sort_options function might need a tweak, but I’m not sure where I can find what it does (I just found a reference to it in businessdirectory-listings.tpl php file). Then I’d add something in my functions file that would just prevent the advert title in search results being hyperlinked to a profile. If the advert still has to be created, then that’s fine, I just want to prevent it being easily reached.

    I appreciate this probably sounds a bit unusual, but any pointers you can give would be most appreciated. Thanks!

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    I think you’re on the right track, but the logic to do this would require some thought to get it right. The listings template is definitely the right place, though.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preventing half-filled-in listings from having profiles’ is closed to new replies.