Disable rating but NOT comments

This topic contains 30 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #377215

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
    #377232

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Let me see if i have got this right?
    #1 you will be adding all listings (no users will be able to add, just claim?)
    #2 Users can add review or just a comment?
    #3 owner can reply to the comment and it will show a owner badge?

    Is this all correct, am i missing something?

    Stiofan

    #377260

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
    #377382

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
    #377526

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I don’t understand why you would allow a user to edit a place but not a owner? It could be done easily but i don’t understand the logic 🙂

    So after a listing is claimed no one but the admin can edit it?

    ( The comments part should work like that by default )

    Stiofan

    #377532

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
    #377548

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    ok, then you could add a simple check on the edit form saying something like sorry the owner can no longer edit this listing, please contact support for any changes”

    This code snippet should do it:

    
    
    add_action('geodir_add_listing_form', '_owner_not_edit', 5);
    
    Function _owner_not_edit(){
    	global $post;
    	if(isset($post->claimed) && $post->claimed=='1'){
    		remove_action('geodir_add_listing_form', 'geodir_action_add_listing_form', 10);
    
    		echo "The owner can no longer edit this listing, please contact support for any changes";
    	}
    }

    Thanks,

    Stiofan

    #377598

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
    #377716

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The owner has a special class attached you can use to add any sort of not you like, for example

    
    
    .commentlist li.bypostauthor .dt-comment-header strong a.url:after {
        content: "Owner";
        background: yellow;
        margin-left: 10px;
        padding: 1px 8px;
    }

    That is just an example, u can do anything with the class.

    Thanks,

    Stiofan

    #378282

    Katrine DS
    Free User
    Post count: 29

    Hi,

    Thanks. I just realized though – that when I comment on other listings it says OWNER next to my name too. Is there no way to just comment with the Owner-‘badge’ on the listing I’m approved owner of?

    Thanks.

    #378526

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i had missed the .bypostauthor class, i have updated my CSS above, just add the .bypostauthor part and it should work.

    Thanks,

    Stiofan

    #378566

    Katrine DS
    Free User
    Post count: 29

    You are very skilled!! Thank you so much. You have been a great help!!
    I really appreciate it 😀

    #378851

    Katrine DS
    Free User
    Post count: 29

    Oops, sorry – it’s not fixed. It’s the OWNER as in claimed owner of the listing (through the Claim Listing Addon) – but now it says Owner when it’s the person who wrote the listing too. These are not the same in my case. Is there a ‘claimed and confirmed listing owner’ type of class ?

    #378988

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    i’m going to try and replicate this on my site tomorrow and i’ll let you know.

    Thanks,

    Stiofan

    #379002

    Katrine DS
    Free User
    Post count: 29
    This reply has been marked as private.
Viewing 15 posts - 16 through 30 (of 31 total)

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

Open Support Ticket