Tagged: x
-
AuthorPosts
-
January 28, 2017 at 5:36 am #1348756
MIGELANDREYParticipantShortcode
[estimation_form form_id=”4″]January 28, 2017 at 5:43 am #1348759
MIGELANDREYParticipantYes, this is my e-mail, try put the your – test, I do not mind.
Page 1Joao1 – for you.January 28, 2017 at 7:03 pm #1349188
RadModeratorThis reply has been marked as private.January 29, 2017 at 12:32 am #1349334
MIGELANDREYParticipantHi, I come to the post office as an administrator, when I write. If you put your e-mail and write as a guest, you do not get a resume. Do not come if you write as a guest. I can not set up a true test functions.php? I have been there, too, there is an error. I created a new topic for this error https://community.theme.co/forums/topic/functions-php-i-can-not-properly-do-not-know/
January 29, 2017 at 12:51 am #1349345
MIGELANDREYParticipant2)The corrected translation
Hello! me a came to the post office as an administrator, when I write. If you put your e-mail and write as a guest, you do not get a resume. Do not comes to If to write as a guest. Maybe I not tuned pravelno functions.php? I have been thereis also there is an error. I created a new topic for this error https://community.theme.co/forums/topic/functions-php-i-can-not-properly-do-not-know/
January 29, 2017 at 2:44 pm #1349855
RadModeratorHi there,
I still don’t understand. I logged in as admin too, using the same credentials you provided. Would you mind providing a visual guide like a presentation of the process and issues? And what resume?
Thanks.
January 29, 2017 at 9:35 pm #1350204
MIGELANDREYParticipant1) You have to change my on your email.
2) Exit and fill in the form as a guest, you do not get a summary. It does not work on the buyer, you will not see of his at the post office form Filled summaryJanuary 29, 2017 at 9:36 pm #1350205
MIGELANDREYParticipantIn the video I do 2 browser, one guest of another administrator
January 30, 2017 at 1:15 am #1350357
RadModeratorHi there,
1. I did, which is why I got emails.
2. I see it’s not working if the user is a guest. It’s not a bug but due to your site’s customization that limits the processing for administrator only. I traced it and the result is redirected to the home page when AJAX is requested. Please disable all your customization and test it again.
But try this one,
function wph_noadmin() { if ( wp_doing_ajax() ) return true; if ( is_admin() && !current_user_can('administrator') ) { wp_redirect( home_url() ); exit; } } add_action('init', 'wph_noadmin');Thanks.
January 30, 2017 at 4:09 am #1350482
MIGELANDREYParticipantThe code I want to hide the admin panel fully of registered users can be code is not true test? Or I not correctly placed it?
https://vk.com/doc186134011_441712908?hash=34e4e6a4bd84560148&dl=4438dcdfa29488da49
January 30, 2017 at 4:11 am #1350485
MIGELANDREYParticipantI understood – a problem in a children theme, not is put the code like pravelno to put it? It does not work because of this all the problems
January 30, 2017 at 4:15 am #1350489
MIGELANDREYParticipant//запрет доступа к админке start
function wph_noadmin() {
if (is_admin() && !current_user_can(‘administrator’) && wp_doing_ajax() ) {
wp_redirect(home_url());
exit;
} }
add_action(‘init’, ‘wph_noadmin’);
//запрет доступа к админке end//скрытие панели для всех кроме админов start
function wph_del_toolbar($content) {
return (current_user_can(“administrator”)) ? $content : false;
}
add_filter(‘show_admin_bar’ , ‘wph_del_toolbar’);
//скрытие панели для всех кроме админов endJanuary 30, 2017 at 4:16 am #1350490
MIGELANDREYParticipantThe error in the code, or have it install
January 30, 2017 at 5:07 am #1350537
RadModeratorHi there,
I implemented the fix from the video I provided from your other thread. Please check the form again after clearing your browser cache. All these ajax issue are related to the same custom code.
It’s just changing this line
if (is_admin() && !current_user_can('administrator') && wp_doing_ajax() ) {to this
if( wp_doing_ajax() ) return true; if (is_admin() && !current_user_can('administrator') ) {Thanks.
January 30, 2017 at 6:00 am #1350576
MIGELANDREYParticipantHooray ! Thanks – found)
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1344420 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
