Business Owner? / Claim listing link

This topic contains 10 replies, has 4 voices, and was last updated by  Stiofan O’Connor 8 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #63569

    jkirker
    Lifetime Member
    Post count: 298

    First, how would I change the text of the “Business Owner?” link on the detail page using a filter? Is this possible?

    Second, would it also be possible to change the destination of this link for logged in and non-logged in users.

    If someone is logged in the process can remain as it, however if someone is not logged in I want to take them down my own custom path.

    Please let me know.

    Thanks all,
    John

    #63588

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the text can be changed via translation file, not via Hook.

    The claim link for non logged in users is :

    http://domain.com/gd-login/?redirect_to=http://url-listing-being-claimed/?gd_go=claim

    You could use the var in the URL

    ?gd_go=claim

    to build your redirect function and determin the new path.

    Hope this helps,

    Thanks

    #63617

    jkirker
    Lifetime Member
    Post count: 298

    Thanks Paolo

    #63624

    jkirker
    Lifetime Member
    Post count: 298

    PS. I need to differentiate between the Claim Listing and Review link in the tab. Currently the review link in the tab reads as:

    You must be logged in to post a comment.

    I’ve gone into poedit and have edited the language file (https://ayecode.b-cdn.net/wp-content/plugins/geodirectory/languages/geodirectory-en_US.po) and compiled a new .mo file and replaced the file on the server.

    I modified:

    You must be <a href="%s">logged in</a> to post a comment.

    to:

    You must be <a href="“%s/?review#respond”">logged in</a> to post a review.

    I also need to append the ?review to the “Write a Review” button…

    But things aren’t changing. The only way I can find to accomplish what I’m trying to do is by manually editing /wp-content/themes/GeoDirectory_whoop/reviews.php

    Thoughts???

    Thanks,
    John

    PS. Short of manually editing the files I have everything working well. Check it out… 😉
    https://www.rinktime.com/rinks/united-states/california/san-clemente/roller-skating-rink/sc-sk8-san-clemente-skate/

    #63627

    Guust
    Moderator
    Post count: 29970

    Your MO file has to be at /wp-content/languages/geodirectory/geodirectory-en_US.mo

    https://wpgeodirectory.com/docs/translate-core/

    #63629

    jkirker
    Lifetime Member
    Post count: 298

    See above – I was editing my last post while you were replying. 😉

    #63630

    jkirker
    Lifetime Member
    Post count: 298

    Trying something – stand by.

    #63631

    jkirker
    Lifetime Member
    Post count: 298

    Didn’t work… 🙁 My Business Owner? to Claim This Listing worked though – so I know I’m editing the files correctly…

    #63632

    Guust
    Moderator
    Post count: 29970

    If you are trying to remove the curly quotes, you are correct 🙂
    But not sure that that URL would work, let’s wait for Paolo after the weekend.

    #63633

    jkirker
    Lifetime Member
    Post count: 298

    Grrrr… I was hoping it’d have been the curly’s… I hate ” vs ” haha… Didn’t do it though.

    So for now I’m living with the manually edited reviews.php file. It’s working but it’ll get wiped on the next update..

    Look forward to getting this one figured out. 😉

    #63889

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Get me on skype and we will figure it out.

    Stiofan

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

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

Open Support Ticket