Forum Replies Created
-
AuthorPosts
-
May 18, 2018 at 3:29 am in reply to: I need an Error Message next to submit Button on Contact Form #958393
I have not been able to get this too work for me.
In fact no error message shows up?
Hi Ismael,
Here is my gmail account. Can you set up the http referrer for me please
Thanks
Hi Victoria,
I think I may have found the error.
I have looked at the page source for this page http://joannagianniotis.com.au/neighbourhood/bulimba/ (see screenshot)
When I look at it the the API key I have entered into enfold (actual api key) is the one I have set up in google. However in the line below it the google maps API is showing a different key.
I have cleared my cache and still seeing this.
Why would that be?
Thanks
Hi Victoria,
Yes that is the only website one that account. It only receives around 500 visits per month so shouldn’t be exceeding it’s quota.
I have tried removing all restrictions on the key like enfold say in the instructions to set up an API key. That didn’t help.
I have tried removing all plugins and that didn’t help.
What else can I try?
Hi Victoria,
Can I please get some assistance. I started this thread and nobody has been able to help me.
I have gone through and set up a new google api key correctly and the error is still occurring. I am also having the issue on this site: http://joannagianniotis.com.au/recent-sales/
Your help is appreciated.
Thanks
Hi Ismael,
Can I please get some assistance. I started this thread and nobody has been able to help me.
I have gone through and set up a new google api key correctly and the error is still occuring. I am also having the issue on this site: http://joannagianniotis.com.au/recent-sales/
Your help is appreciated.
Thanks
Kyran
Hi Victoria,
I have tried using a completely new API and still no luck. Can you please provide me some answers.
Thanks
Kyran
Hi Victoria,
I can’t find how to change what you asked. BTW I have the same API key on other websites and it is working fine.
Thanks
Kyran
Hi Mike,
I changed the key but still no luck. What else could I try?
Thanks
Hi Here it is:
Hi,
Here are the details
Hi Nikko,
I added that code to wp-config.php and still no luck. What else can I try?
Thanks
I have also reinstalled wp and that didn’t solve the issue
Hi,
You have my permission to disable the plugins on the site. ( however they were disabled before and that didn’t help)
Do you have any other ideas?
Thanks
Kyran
Hi,
I cleared my cache before disabling the cache plugin, cleared my cache again and check the post, same issue.
Can you please check if there are other factors why it doesn’t work?
Here’s screencast
http://screencast-o-matic.com/watch/cbfqhBXiykThanks!
Hi,
Yes, the theme is updated same with plugins installed.
I already deactive, and active the plugins one by one to see if there’s any conflict with them, they are not.
But when I switch to twentysixteen, the visual works fine. Its when I went back to enfold, same issue on the visual editor.
Hi,
I have reinstalled wordpress and the error is still occuring.
What else can I do?
Thanks
Kyran
Hi Josue
I appreciate your comments but I am finding that even after following your directions I still can not get the comments to appear.
Also I would like the related posts to appear as well but these seem not to work either.
Your assistance would be appreciated.
GD
Hi Josue
Your response makes no sense.
The age that you referred me to has a facebook plugin, for the comments, because I can not get the Enfold comments to work.
My problem is that this is an old blog and it has lots of existing comments that do not show up, because I can not get the Enfold comments to show up when I use the ALB.
GDHi Josue
I have used the Comments element but it has never worked on posts when we use the ALB.
Hey Guys
Different issue with Enfold.
I use the advanced layout builder for my blog post but how can i get the comments to appear on the page.Thanks
GDHi,
Thanks for that, but we are not planning to use shortcode.
We are planning to use taxonomy.php to display the variables (email, phone, business email)
On this screenshot, those are the variables we wanted to display
http://i63.tinypic.com/14kwk5h.jpg
on this page http://i68.tinypic.com/33o77t5.jpg
Can you please let us know if we can use taxonomy.php and which section can we add those variables?
Appreciate it!
Hi,
I just wanted to know how we can take advantage of the taxonomy.php in enfold.
We have a CPT good,bad and taxonomy of business_name, each business_name has its
own term (ABC Company) and has several metabox fields attached to it.Question:
How can we show these metabox data per business_name term? On the front-end
Which file to edit and what is the exact hook we need?Hi Josue
The code didn’t fix the said issue.
The issue is, on our layout builder the form shortcode is at the bottom section. On front-end it is on top.
The shortcode is not using any CSS or DIVs, but it is showing in the bottom. Please help
on this page http://saywhat.reviews/Reputation/wp-admin/post.php?post=15&action=edit
the shortcode form is at the bottom
this one shows on top http://saywhat.reviews/Reputation/abc-company/
<?php ob_start();
function bad_review_form() {
$title = “”;
$cemail = “”;
$phone = “”;
$content =””;
$title_error =””;
$cemail_error =””;
$phone_error =””;
$content_error =””;
$cats =””;
$post_tags =””;
$hasError =””;
$link =””;
$terms =””;
$facebook =””;
$google =””;
$business_name =””;
$bemail =””;if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’] && !empty( $_POST[‘action’] ) && $_POST[‘action’] == “new_post”) {
if(trim($_POST[‘title’]) === ”) {
$title_error = ‘Please enter your Subject’;
$hasError = true;
} else {
$title = trim($_POST[‘title’]);
}if(trim($_POST[‘cemail’]) === ”) {
$cemail_error = ‘Please enter your email address.’;
$hasError = true;
} else if (! preg_match(‘/\.([^\.]*$)/’, trim($_POST[‘cemail’]))) {
$cemail_error = ‘You entered an invalid email address.’;
$hasError = true;
} else {
$cemail = trim($_POST[‘cemail’]);
}if(trim($_POST[‘phone’]) === ”) {
$phone_error = ‘Please enter your Phone’;
$hasError = true;
} else {
$phone = trim($_POST[‘phone’]);
}if(trim($_POST[‘content’]) === ”) {
$content_error = ‘Please enter your content.’;
$hasError = true;
} else {
$content = trim($_POST[‘content’]);
}//$tags = $_POST[‘post_tags’];
// ADD THE FORM INPUT TO $new_post ARRAY
$new_post = array(
‘post_title’ => $title,
‘post_category’ => $business_name, // Usable for custom taxonomies too
‘post_status’ => ‘publish’, // Choose: publish, preview, future, draft, etc.
‘post_type’ => ‘bad’, //’post’,page’ or use a custom post type if you want to
‘post_content’=> $content,
‘cemail’ => $cemail, //url of the site
‘bemail’ => $bemail,
‘phone’ => $phone //url of the site);
if($hasError != ‘true’){
//SAVE THE POST
$pid = wp_insert_post($new_post);
// if ($_FILES) {
// foreach ($_FILES as $file => $array) {
// $newupload = insert_attachment($file,$pid);
// $newupload returns the attachment id of the file that
// was just uploaded. Do whatever you want with that now.
// }
add_post_meta($pid, ‘cemail’, $cemail, true);
add_post_meta($pid, ‘phone’, $phone, true);
update_post_meta($pid, ‘bemail’, $_POST[‘bemail’]);
// update_post_meta($pid, ‘facebook’, $_POST[‘facebook’]);
// update_post_meta($pid, ‘google’, $_POST[‘google’]);
//add_post_meta($pid, ‘taxonomyName’, $taxonomyName, true);
//to insert taxonomies
wp_set_object_terms($pid, $_POST[‘terms’], ‘business_name’);}
//SET OUR TAGS UP PROPERLY
//wp_set_post_tags($pid, $_POST[‘post_tags’]);//REDIRECT TO THE NEW POST ON SAVE
//$link = get_permalink( $pid );
$link =”http://saywhat.reviews/Reputation/thank-you/”;
wp_redirect( $link );//POST THE POST YO
do_action(‘wp_insert_post’, ‘wp_insert_post’);
}
//} // END THE IF STATEMENT THAT STARTED THE WHOLE FORM
?><div class=”custom-form”>
<form id=”new_post1″ name=”new_post1″ method=”post” action=”” class=”forms forms-inline” enctype=”multipart/form-data”>
<label>Full Name: *</label>
<input type=”text” id=”title” value=”<?php if(isset($title)){echo $title; }?>” tabindex=”5″ name=”title”/>
<?php if($title_error != ”) { ?>
<span class=”error”><?php $title_error;?></span>
<?php } ?><label for=”cemail”>Email Address: * </label>
<?php if($cemail_error != ”) { ?>
<span class=”error”><?php $cemail_error;?></span>
<?php } ?>
<input type=”text” id=”cemail” value=”<?php if(isset($cemail)){echo $cemail; }?>” tabindex=”5″ name=”cemail” /><label for=”phone”>Phone Number </label>
<?php if($phone_error != ”) { ?>
<span class=”error”><?php $phone_error;?></span>
<?php } ?>
<input type=”text” id=”phone” value=”<?php if(isset($phone)){echo $phone; }?>” tabindex=”5″ name=”phone” /><label for=”content”>Message</label>
<?php if($content_error != ”) { ?>
<span class=”error”><?php $content_error;?></span>
<?php } ?>
<textarea rows=”10″ cols=”70″ id=”content” value=”<?php if(isset($content)){echo $content; }?>”name=”content” /></textarea><?php
$bemail = get_post_meta( get_the_ID(), ‘bemail’, true );
echo ‘<input type=”hidden” name=”bemail” id=”‘.$bemail.'” value=”‘.$bemail.'”;>’;
?><?php
$terms = get_the_terms( get_the_ID(), ‘business_name’ );
if ( $terms && ! is_wp_error( $terms ) ) :
$business_name = array();
foreach ( $terms as $term ) {
$business_name[] = $term->name;
}
$business_name = join( “, “, $business_name );echo ‘<input type=”hidden” name=”terms[]” id=”‘.$business_name.'” value=”‘.$business_name.'”;>’;
endif; ?><input type=”submit” value=”Submit” tabindex=”40″ id=”submit” name=”submit” class=”btn” />
</fieldset>
<input type=”hidden” name=”action” value=”new_post” />
<?php wp_nonce_field( ‘new_post’ ); ?>
</form>
</div> <!– custom-form –><?php }
add_shortcode(‘bad_review_form’, ‘bad_review_form’);
?>- This reply was modified 8 years, 3 months ago by Geoffdoyle.
Hi Josue
It is some code that we have created. But we cant get it to work with enfold
Thanks we seem to be moving forward.
We do have another problem.
Can you please help why the shortcode form is being rendered on top of the page, even though it is set up in layout builder in the bottom.
please check the screenshot
http://i66.tinypic.com/2u7lzrq.jpg
http://i66.tinypic.com/2igzwy0.jpgno this is an ongoing problem that we have been working on. We have moved every thing to a new site saywhat.reviews/Reputation
Hi,
I have added several files in functions.php in child-theme, in my local server
they are working 100% fine, but once I upload them into the live site, they were
throwing errors like “Warning: include_once”I have all the files in the right folder and checked them via FTP, permission was
changed to 755 also. Not sure why the functions.php won’t see my attached file.Attached are images from FTP and my codes.
http://i64.tinypic.com/2s6okrk.jpg
http://i63.tinypic.com/29aqn1g.jpgThanks a lot!
Maintenance mode is gone now.
-
AuthorPosts