purpleedge
Forum Replies Created
-
AuthorPosts
-
I misread another post – https://wpgeodirectory.com/support/topic/issue-with-creating-a-listing/#post-6540 – where I thought it said that selecting Yes for business owner automatically published the listing.
After re-reading I see that the risk is in the hands of the directory owner, and not as great as I first thought.
Vigilance is always important!
Maybe I should engage my brain before reporting “bugs” – I had forgotten to enter my username and password for my new site! Sorry :$
Unless the spammer creates the listing and claims to be the business owner???
@Punch –
1. What is the Region for your default location?
2. Have you enabled Multi-regions – Geodirectory->MultiLocations->Location Settings tab?
Thanks mate!
I’m using Enfold and not seeing these effects?
Have you installed the mods to your child theme functions.php file?
If you can post a link, private if you only want the admins to see it, then you will get better help.
OK, I updated the code to make it a hidden field and the default ownership is set to “No” (0)
I did a quick test and once the listing is created a user can go through the “Business Owner” process. When the claim is approved the ownership is set to “Yes” (1)
It seems to work OK, please do your own testing.
Paolo, I noticed that the link to “Verified Owner Author” goes to the wrong listings?
You can hide the option control by editing the code above. But I’m not sure how that will affect the other Claim Listing functionality?
You want it to be a two step process, create the listing and then claim it? Hiding the option boxes might be the best solution for that scenario.
Let me have a think about it – and see above, I updated my last reply after your last reply.
Hi, that just sets the default value to “No”, but still displays the option boxes.
You want them hidden and always “No” ??
Hmmm, just re-read your first message. The problem seems to be that if they choose “Yes” the listing doesn’t go to draft status. I’ll see if I can find where that is set, that doesn’t sound like a desirable setting? Especially since anyone can register and create a listing!
I’ll test it on the GD site, should be interesting <g>
Sorry looks like I missed the closing brace when I copied.
I’ve added it as an attachment.
Paolo can you fix the original?
Add this to your child functions.php…
// Set default business owner to "No" on Add Listing form remove_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form', 1); add_action('geodir_before_main_form_fields' , 'geodir_add_claim_fields_before_main_form_checked', 1); function geodir_add_claim_fields_before_main_form_checked(){ global $post; $is_claimed = isset($post->claimed) ? $post->claimed : ''; ?> <div class="required_field geodir_form_row clearfix"> <label><?php echo CLAIM_BUSINESS_OWNER_ASSOCIATE;?><span>*</span> </label> <input class="gd-radio" <?php if($is_claimed == '1'){echo 'checked="checked"';} ?> type="radio" name="claimed" value="1" field_type="radio"> <?php echo CLAIM_YES_TEXT;?> <input class="gd-radio" <?php if($is_claimed == '0' || $is_claimed == ''){echo 'checked="checked"';} ?> type="radio" name="claimed" value="0" field_type="radio"> <?php echo CLAIM_NO_TEXT;?> <span class="geodir_message_error"><?php echo CLAIM_DECLARE_OWNER_ASSOCIATE;?></span> </div><?php
Hi Liberty, I was having a look at your site and noticed that the link to http://dev.liberty.menu/events/ generates a page not found error. Might be because of the way you have split events into local and major?
It shows up in the breadcrumbs which is where I noticed it.
I brought this up previously – there should be a simple option available to choose whether or not we want users to be logged in after they register. We shouldn’t have to choose another plugin for registration?
I created a dummy listing on your demo site using a non-existent email address. It is a recipe for spam listings and I don’t want to be searching through listings to separate the genuine ones from spam listings on my site every day!
You were going to ask Vikas to look at it?
@DJ
Do you have the same names for fields across different CPT?
What field names do you want to display across the different CPT in the widget?
Have you tried these…
https://wpgeodirectory.com/support/topic/widget-that-pulls-from-all-post-types/#post-7099
He’s a free user Paolo, a few other free users have reported the same problem.
They don’t have Payment Manager.
-
AuthorPosts