How to make some listing content un-editable for listing claimers

This topic contains 20 replies, has 3 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #447435

    Rafaela
    Full Member
    Post count: 131

    Hi GD team,
    We add at the end of every listing an ad for us and encourage our website visitors to sign up etc.
    Currently we do this manually and add this code when we create a listing or edit it later again.
    Over time we have polished and improved our sign up message, but this of course means we have to change the remaining 500 or so listings. Appreciate this could be done by downloading the content, editing it and uploading again however I wonder if I can add this somewhere central and it automatically gets added to every listing?

    The second reason for wanting to do this centrally is that businesses who have claimed their listing cannot edit that central content.
    At the moment, someone who claims their listing can remove all our content without our control.

    Any ideas?

    Thanks!

    Rafaela

    #447436

    Rafaela
    Full Member
    Post count: 131
    This reply has been marked as private.
    #447448

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    If the field is “For Admin use only?” (aka Admin Only) then the end user or listing owner cannot edit it (unless you make them an admin).

    https://wpgeodirectory.com/docs/core-place-settings/#custom

    You can set a default value for the field using the custom fields settings.
    There is built in support for updates via CSV Import/Export.

    That content can also be added via Widget, or through an alteration of the template. In some cases it might be shown conditionally, for example only if the listing is not yet claimed.

    For custom solutions, anything is possible but you will need to contact a developer. One thing a developer might do is build you an APP to update listings via the API.

    Changing the template around to achieve something like this will be easier with V2. Have you already tested it?

    #447581

    Rafaela
    Full Member
    Post count: 131

    Hi Alex,
    Thanks for the response and hints!

    I have now tried the following:
    Added a new HTML Custom Field with our HTML code (in the next message along with sign on details)
    Made it Admin Only and to display in the listing.
    I have created two test listings one as Admin and one as Non-Admin.
    For Admin User the field shows up in the Add Listing form and for Non-Admin the field does not show in the Add Listing form (which is fine as the User is not supposed to edit it anyways) but for neither does the info show up in the listing.
    If I create the listing as Admin the HTML code will show up in the field Sign up to Pupsy now! in the Place info and the code is there.
    Pls check pending listing Pupsy team dog walking to see this in practice.
    If I create the listing as Non-Admin the field Sign up to Pupsy now! is in the place listing but the HTML code is not. Please see attached screenshots.

    In neither case however does the field show up in the Front-end listing.
    What am I doing wrong?

    Thanks!

    #447586

    Rafaela
    Full Member
    Post count: 131
    This reply has been marked as private.
    #447589

    Rafaela
    Full Member
    Post count: 131
    This reply has been marked as private.
    #447633

    Alex Rollin
    Moderator
    Post count: 27815

    The field needs more values in “Show in what locations”, like, maybe “More info tab”?

    It will require a customization to append it to the description field contained in the profile tab, but that will be easier in V2.

    GeoDirectory does not strip HTML on HTML fields. I did look at the test HTML, and if it is the content below the shortcode, there does not appear to be any other shortcodes in the content, so shortcodes would not need to be enabled on the field.

    I tried testing with a test user ‘alexrouted’ but I could not add a listing, as I was redirected to the profile each time I tried.

    You can try deactivating non-GD plugins and themes to identify which plugin or theme is stripping the html tags out of the content. Because it is limited to subscriber role that probably means the function is related to a plugin or theme feature that uses roles.

    #447733

    Rafaela
    Full Member
    Post count: 131
    This reply has been marked as private.
    #447808

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can look through the forum to find examples of that kind of customization, or contact an expert here: https://geodirectoryexperts.com We don’t perform customizations here in the forum.

    For GDV2, if you get a chance, even with a quick look at a test site and the new tabs interface for the detail page, or the templates for archive and archive items, they will give you very precise control of how your fields are presented.

    https://wpgeodirectory.com/docs-v2/geodirectory/templates/

    Basically the new tabs interface allows you to drag and drop your way to the exact presentation you want to make.

    All that said, you can try disabling non-GD plugins to try to find which one is responsible for stripping the HTML.

    https://wpgeodirectory.com/docs/troubleshooting-guide/#conflict

    You could also try adding the content as a text widget, and place the widget in the GD Detail Bottom widget area.

    #448079

    Rafaela
    Full Member
    Post count: 131

    Hi Alex,

    Good thinking!!! Awesome!!!

    I love your little trick on the text widget, I did not think of this at all. This is not perfect but for now definitely good enough and it took me about 2 mins to implement, which is just what I needed 🙂
    This is at the moment the best option for us before we upgrade to V2 later on and also spend more money on more customisations and then we will revisit this.
    Thanks so much!!

    Rafaela

    #448088

    Rafaela
    Full Member
    Post count: 131

    Hi Alex,

    The text widget is an awesome idea!
    For some reason though the sidebar in the GD Detail bottom section is a higher priority as the text widget I placed despite the following CSS settings to get the text box to line up just below the Next and Previous buttons with float left and clear left settings. Pls see screenshot of what I want and a screenshot of what is happening if the post_ProfileTab is shorter then the sidebar.
    Next post contains a link where you can see the problem, that i just can’t get the text widget to display to the left of the sidebar and not underneath.
    What setting am I missing here?

    My CSS settings:
    #text-9 {
    clear: left !important;
    display: inline-block !important;
    box-sizing: border-box;
    background: #e9f9fc;
    vertical-align:top;
    margin-left: 15px;
    margin-top: 10px;
    }

    #448091

    Rafaela
    Full Member
    Post count: 131
    This reply has been marked as private.
    #448092

    Rafaela
    Full Member
    Post count: 131

    Sorry, these are actually the css settigns:
    #text-9 {
    float: left !important;
    clear: left !important;
    width: 67%;
    display: inline-block !important;
    box-sizing: border-box;
    background: #e9f9fc;
    vertical-align:top;
    margin-left: 15px;
    margin-top: 10px;
    }

    #448362

    Kor
    Moderator
    Post count: 16516

    Hi Rafaela,

    Thanks for your reply. I’ve just tested some custom CSS code and it doesn’t seem possible to achieve what you needed there. I’ll forward this to a developer for a second look.

    Thanks!

    #448579

    Rafaela
    Full Member
    Post count: 131

    Hi Kor,

    Thanks!
    Any updates on this?
    Surely this is possible?
    The field should behave similar to the Profile section, it works for that part?

    Thanks for your help, much appreciated!

    Rafaela

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

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

Open Support Ticket