Hi guys,
I’m just guy who wants to create his own website based on template. I encounter few problems and I’m reaching your help, maybe someone will have solution.
My website (temporary hosting): http://ploski.rf.gd/
Template I use:CV Portfolio - Portfolio HTML Template by kamleshyadav on Envato Elements
My problems:
- The youtube player is not loading properly. Please go Portfolio > box2 or box3 (Links are good and working outside the website)
the error i get from youtube “An error occured. Please try again later (Playback ID: WrYDZbgSa8HqYKBH). More information”
I’ve checked the link and video is playable and there was no internet connection issues.
Could you help me with this?
<a class="popup-youtube" href="https://www.youtube.com/embed/8V1aqsWfNoU" title="">
<div class="prt_portfolio_img">
<img src="http://placehold.it/370X208" alt="Portfolio">
<div class="prt_portfolio_text">
<h4>Box2</h4>
<p>video</p>
</div>
</div>
</a>
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 prt_loadmore">
<a class="popup-youtube" href="https://www.youtube.com/embed/-8bsS7DXlps" title="">
<div class="prt_portfolio_img">
<img src="http://placehold.it/370X208" alt="Portfolio">
<div class="prt_portfolio_text">
<h4>Box3</h4>
<p>video</p>
</div>
</div>
</a>
The other bug I encounter is not working contact form.
I edited contact form ajax file according to documentation, but it’s not sending emails:
<?php if(isset($_POST) && !empty($_POST)){ $full_name = (isset($_POST['full_name']))?$_POST['full_name']:''; $first_name = (isset($_POST['first_name']))?$_POST['first_name']:''; $middle_name = (isset($_POST['middle_name']))?$_POST['middle_name']:''; $last_name = (isset($_POST['last_name']))?$_POST['last_name']:''; $email = (isset($_POST['email']))?$_POST['email']:''; $subject = (isset($_POST['subject']))?$_POST['subject']:''; $message = (isset($_POST['message']))?$_POST['message']:''; $contact_no = (isset($_POST['contact_no']))?$_POST['contact_no']:''; if($full_name == ''){ $full_name = $first_name.' '.$middle_name.' '.$last_name; } $sendMessage = $mailSubject = ''; if($_POST['form_type'] == 'contact'){ $mailSubject = 'Contact Details'; $sendMessage = "Hello,
".$full_name." has sent a message having
Subject: ".$subject."
Email id: ".$email."
Query is: ".$message."
"; }elseif($_POST['form_type'] == 'inquiry'){ $mailSubject = 'Inquiry Details'; $sendMessage = ''; } if($sendMessage != ''){ $fromEmail = '[mateuszploski90@gmail.com](mailto:mateuszploski90@gmail.com)'; $toEmail = '[mateuszploski90@gmail.com](mailto:mateuszploski90@gmail.com)'; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "From: <$fromEmail>" . "\r\n"; if(mail($toEmail , $mailSubject , $sendMessage , $headers )){ echo 1; }else{ echo 0; } }else{ echo 0; } }else{ echo 0; } ?>I have really basic knowledge about websites, thanks for your help