Hi, I talked to the host manager and he was able to solve the problem. Apparently, the issue was caused by some PYX plugin. When it detects 3 attempts to hack the site, it locks the login area so that no one can enter. The host company solved it. Thank you for your concern!
This reply has been marked as private.
It seems to have worked, thanks!
That worked, thanks a lot!
Yes, man, I understand that. But the main issue is not that. The code above adds one field. If you copy paste the code and change field ID to add another field, it will give you a 500 Server Error. Is there no solution to this? I need to add much more than just one field.
This reply has been marked as private.
It doesn't work, the newly created fields appear in the course details, but I can't add a value to it through the edit course page, cause it's not there. I want to display something like this:
Anticipated Subscription - discount value
And I need to be able to add specific discounts for each course. The code I'm using - I got it from this forum - allows me to do something similar, but it's a one time thing. I need to add many fields to course details.
This is a custom field I have, it looks like this in the edit course page:
http://prntscr.com/gfsb7g
It is displayed like this in Course Details:
http://prntscr.com/gfskwy
This is the custom code I'm using:
/* Adicionar campo Carga Horária */
add_filter('wplms_course_metabox','wplms_custom_course_details_repeatable');
function wplms_custom_course_details_repeatable($metabox){
$metabox['vibe_course_details'] = array(
'label' => __('Carga Horária','vibe-customtypes'), // <label>
'desc' => __('Duração do curso.','vibe-customtypes'), // description
'id' => 'vibe_course_details', // field id and name
'type' => 'repeatable', // type of field
'std' => ''
);
return $metabox;
}
/* Exibir campo Carga Horária em Course Details RightSidebar */
add_filter('wplms_course_details_widget','wplms_custom_course_details_information',99999999);
function wplms_custom_course_details_information($details){
$custom_info = vibe_sanitize(get_post_meta(get_the_ID(),'vibe_course_details',false));
if(isset($custom_info) && is_array($custom_info)){
foreach($custom_info as $k=>$val){
$details[]='<i class="icon-clock"></i>'.htmlspecialchars_decode($val).'';
}
}
return $details;
}
Yes, but there is no option to choose the icon
Yes, it's working fine, now. Thank you!
This reply has been marked as private.
Well, actually, it is sending me to a checkout page. Although the course is free, we set the Apply for Course option intentionally. It is part of an offer, you see. The user has to do things like like our page on facebook, for example, then apply for course. Then, we check if the user did that and, if so, we approve his subscription without costs.
I connected the product to the course, but the link still insists in not being gererated
http://prntscr.com/dki4ee
http://prntscr.com/dki41d
This is a free product, so I thought there was no need to connect a product. And though it's free, students have to apply for course to subscribe
Product:
http://prntscr.com/dki5mp
This reply has been marked as private.