Link to logged in person's listings – within a button, not the widget.

This topic contains 10 replies, has 3 voices, and was last updated by  Guust 9 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #16775

    Tom
    Buyer
    Post count: 123

    Dear support team,
    I’d love to use a simple button that links to the listings of a logged in person.
    Your widget is nice – but may partner doesn’t like the look of it, so we’d like to do that with a normal button.
    I see that the link is dynamically generated, with the name of the logged in person being part of it.
    Is it possible to write this link with some kind of placeholder, that get’s the name of the logged ins person somehow and links to the right posts?

    Thanks,
    Tom

    #16805

    Guust
    Moderator
    Post count: 29970

    Do you mean the “GDF > Welcome Login” or the “GD > Loginbox” widget?
    A URL would be helpful.

    #16807

    Tom
    Buyer
    Post count: 123
    This reply has been marked as private.
    #16816

    Guust
    Moderator
    Post count: 29970

    The widget will link to the listings of a user if they have listings, and if you added the type of listings at GD > design > navigation > Show listing link in user dashboard.

    So if I understand you correctly, you want the heading of that widget to say something like “Welcome Username” when logged in, instead of just My Dashboard.

    #16838

    Tom
    Buyer
    Post count: 123
    This reply has been marked as private.
    #16843

    Guust
    Moderator
    Post count: 29970

    I think it would be a lot simpler to change the CSS and the text rather than trying anything else, but let’s hear from Stiofan, he might have better ideas.

    #16847

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I Agree with Guust, CSS would be the easiest option otherwise you can copy the widget code to your child theme and make a custom widget as you described.

    Stiofan

    #17022

    Tom
    Buyer
    Post count: 123

    Thanks for your answers.
    Custom widget sound great – something new to learn.

    I do not understand what you mean with changing the CSS. The link that is behind the button has to be different for every user that is logged in – because the username is in the URL: http://www.sitename.com/author/username/?geodir_dashbord=true&stype=gd_place

    So how can I get the username dynamically inserted into the link? Can I put soe kind of placeholder there?

    Thanks,
    Tom

    #17054

    Guust
    Moderator
    Post count: 29970

    What we mean is just to change the look of the link as it is now, just like the Register or Login buttons have been styled. The url of the link will not change at all, only the look of the button will change.
    http://docs.wpgeodirectory.com/customizing-your-style/

    You seem to be using 2 different registration processes, so I suggest you look at this article:
    http://docs.wpgeodirectory.com/redirecting-the-login-page/

    #17109

    Tom
    Buyer
    Post count: 123

    Hi Guust,
    ah, OK, I understeand.
    Thanks, I will see which way I go,
    cheers,
    Tom

    #17122

    Guust
    Moderator
    Post count: 29970

    I’ll set this to resolved.
    Just post something here if you need more help, we’ll re-open it if we need to.

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