Link to another users listing.

This topic contains 6 replies, has 4 voices, and was last updated by  Kiran 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #355826

    James Stevenson
    Expired Member
    Post count: 21

    Hi, I have a pre-sales question regarding linking CPTs.

    I am building a business directory & events site with some social media capabilities, provided by BuddyPress. The idea being that anyone can put their business on our site. If their business happens to be a venue, they can add their events too. I would also like to create a CPT for “Performers”, so a Performer can be linked to an Event, that is linked to a Venue/Business/Location/place. After having read your Documentation, I can see all this is possible with GeoDirectory plus some of your Addons. Winning so far!

    My problem starts with linking to listings of another user. I have read in some of your Docs that this isn’t possible. Stated Here and Here. So this prevents me from achieving an objective.
    Example: A Performer wants to list (promote) an Event they are performing in a Venue. Unless the Performer has added the venue, they will be unable to link the Event to it. So, if it’s an existing Venues in the database, the performer would be inclined to add the Venue themselves, causing a duplicate entry.

    My request is this: Can you help me get around this? Are you able to provide me with a line or 2 of code to allow linking to another users listing?

    If you could make my dreams come true: I’d love for a user to be able request that their post is link to another users. This can then be approved or rejected by an Admin or the post owner.

    I understand that not all dreams are free. I would be happy to negotiate a fee for this work. Id love to use your plugin and the addons, from what I can see this is the only thing stopping me.

    Regards,
    James

    #355834

    Guust
    Moderator
    Post count: 29970

    Admins can link events and venues, it is only normal users that cannot.
    The best way to achieve this is for your performers to ask you to create a basic event linked to a venue, and then they can edit the information.
    Linking after the event is already created may reset some data.

    Thanks

    #355841

    James Stevenson
    Expired Member
    Post count: 21

    Hi Guust,

    Thank you for your quick reply.

    My employer has stated that the site to be as autonomous as possible. The route you have suggested would require too much additional man power, and therefore conflicts with my brief.

    I know this feature is different from the “normal”, but that’s exactly why I need it! I would mod it myself if I had your coding ability, but I don’t!

    In the simplest form, I need the ability for a user to link a post to another users post.

    Nothing is impossible if you know how. I’m sure you know how.

    Are you able to help me please, or must I continue my search for another plugin?

    #356051

    Paolo
    Site Admin
    Post count: 31206

    HI James,

    I asked to the developers if there is hook and code snippet that would allow us to change the link event to place logic and allow users to link their events to any place.

    They’ll let us know asap.

    Thanks

    #356250

    Kiran
    Moderator
    Post count: 7069

    Hi James,

    Few months back one of our customer has asked for the code snippet for same logic. I provided code snippet to our customer.
    You can find code snippet here : https://gist.github.com/kprajapatii/72a5545bb36f6d6311d6339271fee8c5

    Full conversion here: https://wpgeodirectory.com/support/topic/listing-form-permissions/#post-288450

    Let us know.

    Thanks,
    Kiran

    #356277

    James Stevenson
    Expired Member
    Post count: 21

    Hi paolo and Kiran,

    Thank you for your responses.

    The code snippet shared by Kiran could turn out to be very useful. Am I right in thinking that this would only effect linking from an Event to a Place? Is it not a global setting allowing any CPT (i.e. Performers) to be linked to any post?

    Also, I’m unable to read the thread with the full conversation as I’m a free member. I haven’t purchased membership yet.

    I have used your excellent sandbox demo extensively now. Great service, I wish more developers would do the same! I guess I’m unable to experience Kirans snippet in action without having my own install of GeoDirctory + Addons, as I cant add to sandbox code. Unless you have another solution?

    Thank you!

    #356284

    Kiran
    Moderator
    Post count: 7069

    Hi,

    That code snippet used for linking event CPT to rest all CPTs. It mean you can link event to the CPT listing. This will work for only Events => All CPTs linking.
    You can meet your requirement by making some modifications or creating your own snippet with the help of my snippet code.

    You need to purchase membership to access full thread, because free users has limited access to forum.

    Thanks,
    Kiran

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount