Edit Place button for "non admin – users"

This topic contains 18 replies, has 3 voices, and was last updated by  Paolo 7 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #347436

    alphavader
    Buyer
    Post count: 75

    Hey,

    is it possible if the non-admin user is logged in and
    view his project (detail) – that there is an edit profile button?
    That button just goes back to the edit mode (like the preview mode – when you submit
    the profile) – and then he can edit stuff and save it.

    I dont want my users in the WordPress dashboard. I just want them
    to edit in the front-end area – is this possible?

    Thanks

    #347440

    Guust
    Moderator
    Post count: 29970

    That’s how it works.
    Create a non-admin test user and have a few tests.

    #347450

    alphavader
    Buyer
    Post count: 75

    hmm then i must have disbaled them somehow.
    Can i add a button with calling this function ?

    #347604

    Guust
    Moderator
    Post count: 29970

    Have a look at what you disabled at GD > Design > Detail page
    Otherwise, send us URL and WP admin details.
    Thanks

    #347899

    alphavader
    Buyer
    Post count: 75

    Can you have a look please.

    Also is it possible to add it via Codesnipped.

    Just a button “edit” – under the info-sidebar-area.

    THe button only appears when the project owner is logged in and views his project
    in detail.

    When he clicks on the button, the project goes in the preview mode and he can edit things.

    This would be so clean and nice!

    #347900

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    #347990

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    I added it back via regular option. Adding it any other way requires custom code, which goes beyond support (especially if a regular option exist.)

    Thanks

    #347992

    alphavader
    Buyer
    Post count: 75

    Hi,

    thanks alot – did you do the thing described above ?
    When the user isnt logged in – there is still this “box” – can i remove this ?

    Thanks – the button is exactly what i wanted.

    #347993

    Paolo
    Site Admin
    Post count: 31206

    Which box?

    #347996

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    #348000

    alphavader
    Buyer
    Post count: 75

    I dont want to have the favorite – so when its now my own project – there is only the favorite button – but its disabled.

    Is there a way only to show the edit button and if the box is empty – then no box at all ?

    #348002

    alphavader
    Buyer
    Post count: 75
    This reply has been marked as private.
    #348159

    Paolo
    Site Admin
    Post count: 31206

    the only way to hide that box for logged out users is to add a new body class for logged out users and hide it with CSS.

    You can see this tutorial to add a body class: https://wpgeodirectory.com/add-custom-body-classes-to-wordpress/

    And use this function to determine if the user is logged in or not: https://developer.wordpress.org/reference/functions/is_user_logged_in/

    Once you’ll have you logged in/out class, it’ll be easy to hide it with css.

    Thanks

    #348160

    Paolo
    Site Admin
    Post count: 31206
    #348164

    alphavader
    Buyer
    Post count: 75

    Thanks man, that helped alot.
    Is it possible to put the geodir-details-sidebar-user-links BELOW the infobox ?

Viewing 15 posts - 1 through 15 (of 19 total)

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

Open Support Ticket