davy_yg

davy_yg

Member Since 3 Years Ago

Jakarta

Experience Points
96,780
Total
Experience

3,220 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
444
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 20
96,780 XP
Nov
18
1 week ago
Activity icon

Replied to No Video With Supported Format And MIME Type Found

Now, I try to add video plugin to ckeditor:

https://ckeditor.com/cke4/addon/video

The only place that I know to add config.extraPlugins is in here:

ckeditor\samples\old\toolbar\toolbar.html

CKEDITOR.config.extraPlugins = 'toolbar'; CKEDITOR.config.extraPlugins = 'video'; CKEDITOR.config.extraPlugins = 'dialog'; CKEDITOR.config.extraPlugins = 'dialogui'; CKEDITOR.config.extraPlugins = 'fakeobjects';

I don't know where the other correct place is?

Yet, the video icon still did not appears. Any clue why?

Activity icon

Replied to No Video With Supported Format And MIME Type Found

For some reason it still does not works!

ref: https://appuals.com/how-to-fix-no-video-with-supported-format-and-mime-type-found/

I do not know where to change the setting where to upload in froala.

Should I changes my cms to ckeditor to make it works?

Nov
11
2 weeks ago
Activity icon

Started a new Conversation Malformed Communication Packet

My site shows this error:

Illuminate\Database\QueryException SQLSTATE[HY000]: General error: 1835 Malformed communication packet (SQL: select * from portfolio order by created_at desc limit 8)

It works earlier until one day I found the above error message.

ref: https://stackoverflow.com/questions/64677836/sqlstatehy000-general-error-1835-malformed-communication-packet-on-laravel

If I upgrade my php version to 7.3 I am afraid if another error might appears since I built it under php 7.2.

Oct
30
4 weeks ago
Activity icon

Started a new Conversation No Video With Supported Format And MIME Type Found

I uploaded a video with froala and get this error message:

No video with supported format and MIME type found

on the video.

ref: https://appuals.com/how-to-fix-no-video-with-supported-format-and-mime-type-found/

I did everything on the link to fix it and the error remains. (no video appears)

Oct
27
1 month ago
Activity icon

Replied to Blog

I will try that suggestion after this post, I have another question such as I insert video in my content editor. Then, when trying to see the content, my website loads so slowly.

I can wait forever just waiting for this 1 minute video to loads.

Activity icon

Replied to Blog

I am using Froala free version. On the blog list on the first page, I am listing the summary of each blog and the main image.

And on the blog detail page, I would like to show all the contents (I have no problem on this).

Right now, my problem is not only the main image appears on the blog list, the second image also appears if I have the second image on the blog.

On wordpress, they can cut the main image into particular size. I mean only showing certain part of the image (in a fixed size). and only show text next to it (eventhough I have many images before the text).

Activity icon

Started a new Conversation Blog

Hello,

I want to create a blog list for the company I work for. Now, I create this articles using text rich input which could includes pictures and text.

Now, on the blog list on the front, I only want to show 1 main image and text only next to it. Any clue how to do this?

Oct
21
1 month ago
Activity icon

Replied to Sort Desc

Symfony\Component\Debug\Exception\FatalThrowableError Too few arguments to function Illuminate\Database\Query\Builder::orderByDesc(), 0 passed in E:\xampp72\htdocs\aws_admin\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php on line 23 and exactly 1 expected http://localhost/aws_admin/public/f_web_portfolio

Get this error

Activity icon

Started a new Conversation Sort Desc

I am trying to sort my portfolio desc:

public function web_portfolio()
	{
    $list = WebPortfolio::all()->sortByDesc();

    $blogs = Blog::take(3)->get();

    PageSeen::where('menu', 'Web Portfolio')->increment('view');

	return view('web_portfolio')->with(compact('list', 'blogs'));
	}

ref: https://laravel.com/docs/8.x/collections#method-sortbydesc

I got this error:

Symfony\Component\Debug\Exception\FatalThrowableError Too few arguments to function Illuminate\Support\Collection::sortByDesc(), 0 passed in E:\xampp72\htdocs\aws_admin\app\Http\Controllers\FPController.php on line 43 and at least 1 expected

Any clue how?

Activity icon

Started a new Conversation Update Service Content

Hello,

I am trying to update the service content:

HomeIntroController.php

public function update(Request $request, $id)
	{
    //

    $intro = HomeIntro::find($id);

        $this->validate($request, [
            'title' => 'required',
            'content' => 'required|max:5000'
        ]);

    

    $intro->title = $request->title;
    $intro->content = $request->content;

    $intro->update();

    Session::flash('flash', 'Successfully save data');

    $intro = HomeIntro::find($id);

    dd($intro);
    
    return view('admin.home.home_intro')->with('list', $intro);
	}

There is one problem with this issue. It looks like it still showing the old data - "the data before I updated the content."

How to update the content then showing the new data?

Can you use Js syntax such as promise? I forget how to implement the syntax if that is possible.

Oct
20
1 month ago
Activity icon

Replied to Feedback Form

With Gmail I only get one email message.

With Yahoo I get two identical email messages. Any clue why?

The only problem is I rarely check my gmail message. I often checked my yahoo email in case the user send me an email by replying the feedback form.

Activity icon

Replied to Feedback Form

No email receive!

Activity icon

Replied to Feedback Form

It only triggers once!

[2020-10-20 06:55:19] local.DEBUG: Mail was sent!

but I receive two emails.

without to what the code looks like?

 Mail($contact->contact_email)
        ->send(new FeedbackMail($request->all()));

Like this?

Activity icon

Replied to Feedback Form

Yes.

For example: 1 email with 2 bodies with the messages:

Feedback Mail (2)

Feedback untuk Anda

Name : John

Email : [email protected]

Posisi : Developer

Pelayanan : 4

Pesan : Top!

       *******************************************

To: [email protected]

Feedback untuk Anda

Name : John

Email : [email protected]

Posisi : Developer

Pelayanan : 4

Pesan : Top!

Anything to do with this:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mail.yahoo.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=*******
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME="Advance Web Studio"
[email protected]
Activity icon

Replied to Feedback Form

FeedbackMail.php

class FeedbackMail extends Mailable
{
	use Queueable, SerializesModels;

	/**
 	* Create a new message instance.
 	*
 	* @return void
 	*/
	public function __construct($data = [])
	{
    //
    $this->data['nama'] = $data['nama'];
    $this->data['email'] = $data['email'];
    $this->data['posisi'] = $data['posisi'];
    $this->data['servis'] = $data['servis'];
    $this->data['pesan'] = $data['pesan'];
	}

	/**
 	* Build the message.
 	*
 	* @return $this
 	*/
	public function build()
	{
    return $this->
        subject("Feedback Mail")->
        view('mail.feedback', $this->data);
	}
}
Activity icon

Replied to Feedback Form

Yes identical. Exactly the same email as if filling the form twice.

Activity icon

Replied to Feedback Form

I receive two similar emails. It appears like one email but that one email has two email bodies with the same contents.

Activity icon

Started a new Conversation Feedback Form

Hello,

I created this feedback form:

feedback.blade.php

<h3><b>FEEDBACK</b></h3><br><br>

@if($errors->any())
		<div class="alert alert-danger">
    		@foreach($errors->all() as $error)
        	<li>{{ $error }}</li>
    @endforeach
		</div>
@endif

@if($message = Session::get('flash'))
		<div id="flash" class="alert alert-success">
    		{{ $message }}
		</div>
@endif

<br>
<form class="form-horizontal" action="{{ url('sendfeedback') }}" method="POST">
@csrf
<div class="form-group">
	<label class="control-label col-sm-2" for="nama">Nama:</label>
		<div class="col-sm-4">
 			<input type="text" class="form-control" name="nama" id="email">
		</div>
	</div>
<div class="form-group">
<label class="control-label col-sm-2" for="email">Email:</label>
<div class="col-sm-4">
 	<input type="email" class="form-control" name="email" id="pwd" >
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="posisi">Posisi:</label>
<div class="col-sm-4">
 	<input type="text" class="form-control" name="posisi" id="pwd" >
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="servis">Pelayanan:</label>&nbsp;&nbsp;&nbsp;&nbsp;
<div class="col-sm-6">
    <input type="radio" id="servis" name="servis" value="5">
    <label for="servis">5 (Baik Sekali)</label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" id="servis" name="servis" value="4">
    <label for="servis">4 (Baik)</label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" id="servis" name="servis" value="3">
    <label for="servis">3 (Cukup)</label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" id="servis" name="servis" value="2">
    <label for="servis">2 (Buruk)</label>&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="radio" id="servis" name="servis" value="1">
    <label for="servis">1 (Buruk Sekali) </label>&nbsp;&nbsp;&nbsp;&nbsp;
	</div>                             
</div>

 <div class="form-group">
<label class="control-label col-sm-2" for="pesan">Pesan:</label>
<div class="col-sm-4">
 	<textarea name="pesan" class="form-control"></textarea>
</div>
</div>


<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
 	<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>

FPController.php

public function sendfeedback(request $request)
	{   
    $this->validate($request, [

        'nama' => 'required',
        'posisi' => 'required',
        'email' => 'required',
        'servis' => 'required',
        'pesan' => 'required'
    ]);

    $blogs = Blog::take(3)->get();

    $contact = Contact::find(1);

    Mail::to($contact->contact_email)
        ->send(new FeedbackMail($request->all()));

    Session::flash('flash', 'Sukses mengirim pesan feedback');

    return view('feedback')->with(compact('blogs'));
	}

I only wonder why after filling in the feedback form, I get two similar email messages?

Oct
14
1 month ago
Activity icon

Replied to Testimonial Slider

It's there!

$(document).ready(function() {
  $(".testimonial-carousel").slick({
		infinite: true,
		slidesToShow: 1,
		slidesToScroll: 1,
		autoplay: false,
		arrows: true,
		prevArrow: $(".testimonial-carousel-controls .prev"),
		nextArrow: $(".testimonial-carousel-controls .next")
   });
});

It works in the downloaded files. If I open the downloaded files in its own folder the slider works. It does not work after I integrate it with the website.

$(".testimonial-carousel").slick({

slick is underlined in red mentioning that "Type error is not a function".

Activity icon

Started a new Conversation Testimonial Slider

When trying to make the testimonial slider that I downloaded from the internet, I get this error:

Uncaught TypeError: $(...).slick is not a function
<anonymous> http://localhost/aws_admin/public/js/test-slider-fullwidth.js:2
jQuery 2
    j
    k

These are my headers:

<!-- untuk testimonial slider -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="{{ url('css/test-slider-fullwidth.css') }}" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.8.1/slick.min.js"></script>
<script src="{{ url('js/test-slider-fullwidth.js') }}"></script>

<!-- end testimonial slider -->

Any clue why? The header slider also does not work! Unlike the example.

Oct
12
1 month ago
Activity icon

Replied to Web Migration

So the point of .htaccess is to make the link works without index.php?

<IfModule mod_rewrite.c>
	<IfModule mod_negotiation.c>
    Options -MultiViews -Indexes
	</IfModule>

	RewriteEngine On

	# Handle Authorization Header
	RewriteCond %{HTTP:Authorization} .
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

	# Redirect Trailing Slashes If Not A Folder...
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_URI} (.+)/$
	RewriteRule ^ %1 [L,R=301]

	# Send Requests To Front Controller...
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^ index.php [L]
</IfModule>
Activity icon

Replied to Web Migration

For some reason there is no .htaccess file so that I copy and paste it again.

Activity icon

Replied to Web Migration

It is strange, you can checked before the migration:

https://sample.advance-web-studio.com/f_tentang

where the public folder united with the laravel folder. It works just fine.

See, I cannot unite the public folder inside the laravel folder and place them inside public_html since the path will incorrect, except on subdomain where I can repath.

Activity icon

Started a new Conversation Web Migration

Hello,

After migrating my website into a new domain I get a missing link:

[ link deleted ]

I think because I seperate the public folder outside the laravel folder. Any idea why the missing link occured? It works in my old sub domain where I keep the public folder inside the laravel folder.

Oct
02
1 month ago
Activity icon

Replied to Call To Undefined Function Illuminate\Support\mb_strimwidth()

[[email protected] victoryshop.advance-web-studio.com]$ apt install php7.2-mbstring bash: apt: command not found

Activity icon

Replied to Call To Undefined Function Illuminate\Support\mb_strimwidth()

On the server terminal I type:

[[email protected] victoryshop.advance-web-studio.com]$ sudo apt install php7.2-mbstring bash: sudo: command not found

What did I do wrong?

Activity icon

Started a new Conversation Call To Undefined Function Illuminate\Support\mb_strimwidth()

I am getting this error message:

Call to undefined function Illuminate\Support\mb_strimwidth()

on my online shop. I thought it first it must be the php version. Already change it to php version 7.2 which is the same like my offline version. But the error still remains.

ref: https://codersatellite.com/question-with-identifier-39825131

Any idea why?

Oct
01
1 month ago
Activity icon

Replied to TokenMismatchException

Should I copas from view-source:

view-source:http://localhost/lekaeshop/vito/public/checkout

<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<meta charset="UTF-8">
		<meta name="csrf-token" content="Jmz46ammfDtxQWo1iVxJCzfe3zqLSVnJo4WrVNDu">
	<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="csrf-token" content="Jmz46ammfDtxQWo1iVxJCzfe3zqLSVnJo4WrVNDu">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1" />
	<meta name="viewport" content="width=device-width" /> -->
	<title>Adrian EShop</title>
	<!-- <link rel="icon"
  type="image/x-icon"
  href="http://localhost/lekaeshop/vito/public/images/favicon/favicon.png"> -->

<!-- Start CSS Link -->
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/main.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/bootstrap.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/font-awesome.min.css" type="text/css" media="all">
<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/owl.carousel.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/chosen.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/superslides.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/magnific-popup.css" type="text/css" media="all">
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/jquery.mCustomScrollbar.css" type="text/css" media="all">
	<!-- <link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/animate.css" type="text/css" media="all"> -->
	<link href='https://fonts.googleapis.com/css?family=Lato:400,300,700,900' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Raleway:400,700,500' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="http://localhost/lekaeshop/vito/public/css/style.css" type="text/css" media="all">
	<!-- End CSS Link -->

</head>

<body class="">
	<header class="header">
    <div class="top-header">
        <div class="container">
            <div class="top-header-menu">
                <a href="#"><i class="fa fa-phone"></i> +84 868.8568</a> 
                <a href="#"><i class="fa fa-clock-o"></i> MON - SAT: 08 am - 17 pm</a>
                <a href="#"><i class="fa fa-envelope-o"></i> [email protected]</a> 
            </div>
            <div class="top-header-right">

                

                <ul>
                                              <li><a href="http://localhost/lekaeshop/vito/public/profile"><img alt="" src="http://localhost/lekaeshop/vito/public/images/my_account.png"> HELLO, ADMIN</a></li>
                      <li><a href="http://localhost/lekaeshop/vito/public/wishlists"><img alt="" src="http://localhost/lekaeshop/vito/public/images/mywish_list.png"> MY WISHLIST</a></li>
                      <li><a href="http://localhost/lekaeshop/vito/public/logout"><img alt="" src="http://localhost/lekaeshop/vito/public/images/log_out.png"> LOGOUT</a></li>
                                            <li><a href="http://localhost/lekaeshop/vito/public/login"><i class="fa fa-key"></i> LOGIN</a></li>
                    <li><a href="#"><i class="fa fa-user"></i> REGISTER</a></li>
                    <li class="dropdown">
                        <a data-toggle="dropdown" href="#"><i class="fa fa-cog"></i> SETTINGS</a>
                        <ul class="dropdown-menu">
                            <li><a href="#">MY ACCOUNT</a></li>
                            <li><a href="#">My Wishlist</a></li>
                            <li><a href="#">PAYMENT</a></li>
                            <li><a href="#">POLICY</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a data-toggle="dropdown" href="#">USD</a>
                        <ul class="dropdown-menu">
                            <li><a class="current" href="#">USD</a></li>
                            <li><a href="#">Euro</a></li>
                        </ul>
                    </li>
                    <li class="dropdown language">
                        <a data-toggle="dropdown" href="#"><img src="images/en.jpg" alt=""/>ENGLISH</a>
                        <ul class="dropdown-menu">
                            <li><a class="current" href="#">ENGLISH</a></li>
                            <li><a href="#">French<img src="images/fr.jpg" alt="" /></a></li>
                            <li><a href="#">GERMANY<img src="images/gren.jpg" alt="" /></a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
	<div class="main-header">
        <div class="container main-header-inner">
            <div id="form-search" class="form-search">
                <form>
                    <input type="text" placeholder="YOU CAN SEARCH HERE..." />
                    <button class="btn-search"><i class="fa fa-search"></i></button>
                </form>
            </div>
            <div class="row">
                <div  class="col-sm-12">
                    <div class="logo">
                        <a href="index.html"><img src="http://localhost/lekaeshop/vito/public/images/logo.png" alt="" /></a>
                    </div>
                </div>
                <div class="col-sm-10 main-menu-wapper">
                    <a href="#" class="mobile-navigation"><i class="fa fa-bars"></i></a>
                    <nav id="main-menu" class="main-menu">
                        <ul class="navigation">
                            <li><a href="http://localhost/lekaeshop/vito/public">Home</a></li>
                            
                            <li><a href="http://localhost/lekaeshop/vito/public/about">About Us</a></li>
                            <li><a href="http://localhost/lekaeshop/vito/public/catalog">Catalog</a></li>
                                                             <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/1">
                                                        Women
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/1/1">Dresses</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/2">
                                                        Men
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/2/3">Dresses</a></li>

                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/2/5">Coats &amp; Jackets</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <li class="menu-item-has-children">
                              <a href="http://localhost/lekaeshop/vito/public/catalog/3">
                                                        Accessories
                                                    </a>
                              
                                <ul class="sub-menu">
                                
                                    <li><a href="http://localhost/lekaeshop/vito/public/catalog/3/4">Watches</a></li>

                                                                    </ul>

                              
                            </li>
                                                            <!-- <li class="menu-item-has-children">
                            <a href="#">Category</a>
                            <ul class="sub-menu">                                      
                                <li><a href="http://localhost/lekaeshop/vito/public/c_men">Men</a></li>
                                <li><a href="http://localhost/lekaeshop/vito/public/c_women">Women</a></li>
                            </ul>                                  
                                                            
                            <li><a href="http://localhost/lekaeshop/vito/public/product">Products</a></li> -->
                            <li><a href="http://localhost/lekaeshop/vito/public/faq">FAQ</a></li>
                            <li class="menu-item-has-children">
                                <a href="#">Blog</a>
                                <ul class="sub-menu">                                      
                                    <li><a href="http://localhost/lekaeshop/vito/public/blog">Blog Grid 3 columns</a></li>
                                    <li><a href="http://localhost/lekaeshop/vito/public/blog_single">Blog Single post</a></li>
                                </ul>
                            </li>
                            <li><a href="http://localhost/lekaeshop/vito/public/contact">CONTACT</a></li>
                        </ul>
                    </nav>
                </div>
                <div class="col-sm-2">
                    <!-- Icon search -->
                    <div class="icon-search">
                        <span class="icon"><i class="fa fa-search"></i></span>
                    </div>
                    <!-- ./Icon search -->
                    <!-- Mini cart -->
                    <div class="mini-cart">
                        <a class="icon" href="#">Cart <span class="count">2</span></a>
                        <div class="mini-cart-content">
                            <ul class="list-cart-product">
                                <li>
                                    
                                    <div class="product-thumb">
                                        <a href="#"><img src="images/products/product-cart1.jpg" alt="" /></a>
                                    </div>
                                    <div class="product-info">
                                        <h5 class="product-name"><a href="#">Ledtead Predae</a></h5>
                                        <span class="price">.00</span>
                                        <span class="qty">Qty: 1 - Size: L</span>
                                        <a href="#" class="remove">remove</a>
                                    </div>
                                </li>
                                <li>
                                    <div class="product-thumb">
                                        <a href="#"><img src="images/products/product-cart2.jpg" alt="" /></a>
                                    </div>
                                    <div class="product-info">
                                        <h5 class="product-name"><a href="#">Ledtead Predae</a></h5>
                                        <span class="price">.00</span>
                                        <span class="qty">Qty: 1 - Size: M</span>
                                        <a href="#" class="remove">remove</a>
                                    </div>
                                </li>
                            </ul>
                            <p class="sub-toal-wapper">
                                <span>SUBTOTAL</span>
                                <span class="sub-toal">0.00</span>
                            </p>
                            <a href="http://localhost/lekaeshop/vito/public/cart" class="btn-view-cart">VIEW SHOPPING CART</a>
                            <a href="http://localhost/lekaeshop/vito/public/checkout" class="btn-check-out">PROCESS TO CHECK OUT</a>
                        </div>
                    </div>
                    <!-- ./Mini cart -->
                </div>
            </div>
        </div>
    </div>
</header>
	    <section class="banner banner-cart bg-parallax">
    <div class="overlay"></div>
    <div class="container">
        <div class="banner-content text-center">
            <h2 class="page-title">CHECK OUT PAGE</h2>
            <div class="breadcrumbs">
                <a href="#">Home</a>
                <span>CHECK OUT PAGE</span>
            </div>
        </div>
    </div>
</section>

    <div class="maincontainer">
    <div class="container">
        <!-- Step Checkout-->
        <div class="step-checkout">
            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-2">
                    <div class="step cart">
                        <div class="icon"></div>
                        <span class="step-count">01</span>
                        <h3 class="step-name">Shopping Cart</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step checkout active">
                        <div class="icon"></div>
                        <span class="step-count">02</span>
                        <h3 class="step-name">Check out</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step complete">
                        <div class="icon"></div>
                        <span class="step-count">03</span>
                        <h3 class="step-name">Order Complete</h3>
                    </div>
                </div>
            </div>
        </div>
        <!-- ./Step Checkout-->

        <form action="http://localhost/lekaeshop/vito/public/checkout" method="POST" id="myForm">
            
            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
                        <!-- <p>
                        required
                            <label>Country <span class="required">*</span></label>
                            <select>
                                <option>United states</option>
                                <option>Hanoi</option>
                            </select>
                        </p> -->

                        <div class="row">
                            <div class="col-sm-12">
                                <p>
                                    <label>NAMA <span class="required">*</span></label>
                                    <input type="text" name="order_name" value="Admin"/>
                                </p>
                            </div>                                
                        </div>
                        <p>
                            <label>ALAMAT</label>
                            <input type="text" name="order_address" value="Jln Wara-Wiri"/>
                        </p>
                       
                        <p>
                            <label>PROVINSI <span class="required">*</span></label>
                            <select class="form-control" name="order_province" id="order_province" value="select">
                                <option id="order_province-placeholder">
                                    Silahkan pilih provinsinya.
                                </option>
                                
                                    <option value="1" >
                                        Bali
                                    </option>
                                
                                    <option value="2" >
                                        Bangka Belitung
                                    </option>
                                
                                    <option value="3" >
                                        Banten
                                    </option>
                                
                                    <option value="4" >
                                        Bengkulu
                                    </option>
                                
                                    <option value="5" >
                                        DI Yogyakarta
                                    </option>
                                
                                    <option value="6" >
                                        DKI Jakarta
                                    </option>
                                
                                    <option value="7" >
                                        Gorontalo
                                    </option>
                                
                                    <option value="8" >
                                        Jambi
                                    </option>
                                
                                    <option value="9" >
                                        Jawa Barat
                                    </option>
                                
                                    <option value="10" >
                                        Jawa Tengah
                                    </option>
                                
                                    <option value="11" >
                                        Jawa Timur
                                    </option>
                                
                                    <option value="12" >
                                        Kalimantan Barat
                                    </option>
                                
                                    <option value="13" >
                                        Kalimantan Selatan
                                    </option>
                                
                                    <option value="14" >
                                        Kalimantan Tengah
                                    </option>
                                
                                    <option value="15" >
                                        Kalimantan Timur
                                    </option>
                                
                                    <option value="16" >
                                        Kalimantan Utara
                                    </option>
                                
                                    <option value="17" >
                                        Kepulauan Riau
                                    </option>
                                
                                    <option value="18" >
                                        Lampung
                                    </option>
                                
                                    <option value="19" >
                                        Maluku
                                    </option>
                                
                                    <option value="20" >
                                        Maluku Utara
                                    </option>
                                
                                    <option value="21" >
                                        Nanggroe Aceh Darussalam (NAD)
                                    </option>
                                
                                    <option value="22" >
                                        Nusa Tenggara Barat (NTB)
                                    </option>
                                
                                    <option value="23" >
                                        Nusa Tenggara Timur (NTT)
                                    </option>
                                
                                    <option value="24" >
                                        Papua
                                    </option>
                                
                                    <option value="25" >
                                        Papua Barat
                                    </option>
                                
                                    <option value="26" >
                                        Riau
                                    </option>
                                
                                    <option value="27" >
                                        Sulawesi Barat
                                    </option>
                                
                                    <option value="28" >
                                        Sulawesi Selatan
                                    </option>
                                
                                    <option value="29" >
                                        Sulawesi Tengah
                                    </option>
                                
                                    <option value="30" >
                                        Sulawesi Tenggara
                                    </option>
                                
                                    <option value="31" >
                                        Sulawesi Utara
                                    </option>
                                
                                    <option value="32" >
                                        Sumatera Barat
                                    </option>
                                
                                    <option value="33" >
                                        Sumatera Selatan
                                    </option>
                                
                                    <option value="34" >
                                        Sumatera Utara
                                    </option>
                                                                </select>
                        </p>

                        <p>
                            <label>KOTA <span class="required">*</span></label>
                            <select class="form-control order-city-selector" name="order_city_destination" id="order_city_destination" disabled>
                                <option>
                                    Silahkan pilih provinsi terlebih dahulu.
                                </option>
                            </select>
                        </p>

                        <label><small>Pengiriman (JNE):<strong>*</strong></small></label>
                            <span id="shipping-info-area">

                            </span><br>

                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>EMAIL ADDRESS <span class="required">*</span></label>
                                    <input type="email" name="order_email" value="[email protected]"/>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label>PHONE NUMBER <span class="required">*</span></label>
                                    <input type="text" name="order_phone" value="081234"/>
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>Bank Transfer</label>
                                    <option type="radio" name="bank" value="bank"><label for="bank">BCA Davy Gunarso</label></option>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label><small>Masukkan Kupon:</small></label>
                                    <input type="text" id="coupon_code" class="width" value="" size="42" tabindex="1" />
                                    <input type="hidden" id="realcoupon_code" name="coupon_code" />
                                    <input type="hidden" id="original_coupon" class="width" value="" size="42" tabindex="1" />
                                    <button id="btn_apply_coupon" type="button" class="btn btn-default">Check</button>
                                    <button id="btn_reset_coupon" type="button" class="btn btn-default">Reset</button>
                                </p>
                            </div>
                        </div>  
                        <div>
                            <label class="checkbox-inline">
                              <input type="checkbox" id="inlineCheckbox1" value="option1"> CREATE AN ACCOUNT ?
                            </label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <h3 class="form-title">YOUR ORDERS</h3>
                    <div class="order-review">
                        <table>
                            <tbody>
                                <tr>
                                    <td>Product name</td>
                                    <td>Qty</td>
                                    <td>Sub total</td>
                                </tr>
                                                                                                                                            <tr>
                                    <td>Tokean Black</td>
                                    <td>1</td>
                                    <td><span class="amount"> Rp. 95000</span></td>
                                                                                                        </tr>
                                                                    <tr>
                                    <td>AP Rubber</td>
                                    <td>2</td>
                                    <td><span class="amount"> Rp. 440000</span></td>
                                                                                                        </tr>
                                                                    <tr>
                                    <td colspan="2">CART SUBTOTAL</td>
                                    <td>
                                        <span class="amount">Rp. 535000</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">COUPON DISC</td>
                                    <td>
                                        <span id="CDisc">-</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">SHIPPING & HANDLING</td>
                                    <td>
                                        <span id="spCost">FREE SHIPPING</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">ORDER TOTAL</td>
                                    <td>
                                        <span class="amount">Rp. </span><span id="spTotal">535000</span>
                                        
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="paymment-method">
                        <h3 class="form-title">PAYMENT METHOD</h3>
                        
                        <div class="checkbox">
                            <label>
                            <input type="checkbox" value="">
                            I’VE READ AND ACCEPT THE TERM & CONDITIONS
                            </label>
                        </div>
                    </div>
                    <button type="submit" class="button pull-right">Checkout</button>
                </div>
            </div>
        </div>
    </form>
    </div>
</div>
Activity icon

Replied to TokenMismatchException

This is enough right?

checkout.blade.php

@extends('layouts.store.store-next')

@section('breadcrumb')
<section class="banner banner-cart bg-parallax">
    <div class="overlay"></div>
    <div class="container">
        <div class="banner-content text-center">
            <h2 class="page-title">CHECK OUT PAGE</h2>
            <div class="breadcrumbs">
                <a href="#">Home</a>
                <span>CHECK OUT PAGE</span>
            </div>
        </div>
    </div>
</section>
@endsection

@section('content')
<div class="maincontainer">
    <div class="container">
        <!-- Step Checkout-->
        <div class="step-checkout">
            <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-2">
                    <div class="step cart">
                        <div class="icon"></div>
                        <span class="step-count">01</span>
                        <h3 class="step-name">Shopping Cart</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step checkout active">
                        <div class="icon"></div>
                        <span class="step-count">02</span>
                        <h3 class="step-name">Check out</h3>
                    </div>
                </div>
                <div class="col-sm-1"></div>
                <div class="col-sm-2">
                    <div class="step complete">
                        <div class="icon"></div>
                        <span class="step-count">03</span>
                        <h3 class="step-name">Order Complete</h3>
                    </div>
                </div>
            </div>
        </div>
        <!-- ./Step Checkout-->

        <form action="{{ url('/checkout') }}" method="POST" id="myForm">

            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
                        <!-- <p>
                        required
                            <label>Country <span class="required">*</span></label>
                            <select>
                                <option>United states</option>
                                <option>Hanoi</option>
                            </select>
                        </p> -->

                        <div class="row">
                            <div class="col-sm-12">
                                <p>
                                    <label>NAMA <span class="required">*</span></label>
                                    <input type="text" name="order_name" value="{{ $user->name }}"/>
                                </p>
                            </div>                                
                        </div>
                        <p>
                            <label>ALAMAT</label>
                            <input type="text" name="order_address" value="{{ $user->alamat_temp }}"/>
                        </p>
                       
                        <p>
                            <label>PROVINSI <span class="required">*</span></label>
                            <select class="form-control" name="order_province" id="order_province" value="select">
                                <option id="order_province-placeholder">
                                    Silahkan pilih provinsinya.
                                </option>
                                @foreach ($provinsi as $item)

                                    <option value="{{ $item->province_id }}" @if($item->province_id == $user->provinsi_id) selected @endif>
                                        {{ $item->province }}
                                    </option>
                                @endforeach
                            </select>
                        </p>

                        <p>
                            <label>KOTA <span class="required">*</span></label>
                            <select class="form-control order-city-selector" name="order_city_destination" id="order_city_destination" disabled>
                                <option>
                                    Silahkan pilih provinsi terlebih dahulu.
                                </option>
                            </select>
                        </p>

                        <label><small>Pengiriman (JNE):<strong>*</strong></small></label>
                            <span id="shipping-info-area">

                            </span><br>

                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>EMAIL ADDRESS <span class="required">*</span></label>
                                    <input type="email" name="order_email" value="{{ $user->email }}"/>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label>PHONE NUMBER <span class="required">*</span></label>
                                    <input type="text" name="order_phone" value="{{ $user->phone }}"/>
                                </p>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <p>
                                    <label>Bank Transfer</label>
                                    <option type="radio" name="bank" value="bank"><label for="bank">BCA Davy Gunarso</label></option>
                                </p>
                            </div>
                            <div class="col-sm-6">
                                <p>
                                    <label><small>Masukkan Kupon:</small></label>
                                    <input type="text" id="coupon_code" class="width" value="" size="42" tabindex="1" />
                                    <input type="hidden" id="realcoupon_code" name="coupon_code" />
                                    <input type="hidden" id="original_coupon" class="width" value="" size="42" tabindex="1" />
                                    <button id="btn_apply_coupon" type="button" class="btn btn-default">Check</button>
                                    <button id="btn_reset_coupon" type="button" class="btn btn-default">Reset</button>
                                </p>
                            </div>
                        </div>  
                        <div>
                            <label class="checkbox-inline">
                              <input type="checkbox" id="inlineCheckbox1" value="option1"> CREATE AN ACCOUNT ?
                            </label>
                        </div>
                    </div>
                </div>
                <div class="col-sm-12 col-md-6">
                    <h3 class="form-title">YOUR ORDERS</h3>
                    <div class="order-review">
                        <table>
                            <tbody>
                                <tr>
                                    <td>Product name</td>
                                    <td>Qty</td>
                                    <td>Sub total</td>
                                </tr>
                                @php($subtotal = 0)
                                @php($totalweight = 0)
                                @foreach($cart as $content)
                                <tr>
                                    <td>{{ $content->product->prod_name }}</td>
                                    <td>{{ $content->amount }}</td>
                                    <td><span class="amount"> Rp. {{ (int) ($content->product->prod_price * $content->amount) }}</span></td>
                                @php($subtotal = $subtotal + ($content->product->prod_price * $content->amount))
                                @php($totalweight = $totalweight + ($content->product->prod_weight * $content->amount))
                                </tr>
                                @endforeach
                                <tr>
                                    <td colspan="2">CART SUBTOTAL</td>
                                    <td>
                                        <span class="amount">Rp. {{ (int) $subtotal }}</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">COUPON DISC</td>
                                    <td>
                                        <span id="CDisc">-</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">SHIPPING & HANDLING</td>
                                    <td>
                                        <span id="spCost">FREE SHIPPING</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">ORDER TOTAL</td>
                                    <td>
                                        <span class="amount">Rp. </span><span id="spTotal">{{ (int) $subtotal }}</span>
                                        
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="paymment-method">
                        <h3 class="form-title">PAYMENT METHOD</h3>
                        
                        <div class="checkbox">
                            <label>
                            <input type="checkbox" value="">
                            I’VE READ AND ACCEPT THE TERM & CONDITIONS
                            </label>
                        </div>
                    </div>
                    <button type="submit" class="button pull-right">Checkout</button>
                </div>
            </div>
        </div>
    </form>
Activity icon

Replied to TokenMismatchException

Form Data

order_name=Admin&order_address=Jln+Wara-Wiri&order_province=3&order_city_destination=106&order_shipping_type=OKE&order_email=admin%40admin.com&order_phone=081234&coupon_code=

Activity icon

Replied to TokenMismatchException

I did step 7.

https://sample.advance-web-studio.com/checkout.jpg

I already clicked the link that appeared on the console:

POST http://localhost/lekaeshop/vito/public/checkout 500 (Internal Server Error)

I cannot understand why the csrf is not present in the request:

I have the @csrf written down in the script.

<form action="{{ url('/checkout') }}" method="POST" id="myForm">
            
            @csrf

        <div class="checkout-page">
            <div class="row">
                <div class="col-sm-12 col-md-6">
                    <div class="form">
                        <h3 class="form-title">DELIVERY DETAILS</h3>
Activity icon

Replied to TokenMismatchException

I don't understand step 8 -

What I could do is click right mouse button on the web and view page source.

Activity icon

Replied to TokenMismatchException

Do you mean this:

@laracoft

checkout:1 POST http://localhost/lekaeshop/vito/public/checkout 500 (Internal Server Error)

@haroon1296

I already have such script on the header.

Activity icon

Started a new Conversation TokenMismatchException

I am getting this error message after pressing the checkout button.

I already have the @csrf:

 <form action="{{ url('/checkout') }}" method="POST" id="myForm">
            
            @csrf

ref: https://stackoverflow.com/questions/34866404/tokenmismatchexception-in-verifycsrftoken-php-line-67

Any idea why?

Sep
30
1 month ago
Activity icon

Replied to Star Rating

Yes, I would like to change the servis part of the form with the star rating.

<div class="container">
    <p>
<input class="rating">

<!-- jQuery first, then Tether, then Bootstrap JS. -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>

<script src="js/simple-rating.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	$('.rating').rating();
});
</script>

Yet, I don't know how to make the star rating return the same numbering value to the form.

Activity icon

Started a new Conversation Star Rating

Hello,

I want to utilize star rating for feedback form.

ref: https://www.jqueryscript.net/other/Input-Field-Star-Rating-Plugin-jQuery.html

feedback.blade.php

<div class="container cont-padding">
           <div class="row">
              <div class="container">

                 @if($errors->any())
                    <div class="alert alert-danger">
                    @foreach($errors->all() as $error)
                          <li>{{ $error }}</li>
                    @endforeach
                    </div>
                 @endif

                 @if($message = Session::get('flash'))
                    <div id="flash" class="alert alert-success">
                       {{ $message }}
                    </div>
                 @endif

                 <br>
                 FEEDBACK
                 <form action="{{ url('sendfeedback') }}" method="post">   
                 @csrf 
                 <div class="form-group">
                    <label>Nama</label>
                    <input class="form-control" type="text" name="nama">
                 </div>
                 <div class="form-group">
                    <label>Email</label>
                    <input class="form-control" type="text" name="email">
                 </div>
                 <div class="form-group">
                    <label>Servis</label>&nbsp;&nbsp;&nbsp;&nbsp;   
                      <input type="radio" id="servis" name="servis" value="1">
                      <label for="servis">1 (Buruk Sekali) </label>&nbsp;&nbsp;&nbsp;&nbsp;
                      <input type="radio" id="servis" name="servis" value="2">
                      <label for="servis">2 (Buruk)</label>&nbsp;&nbsp;&nbsp;&nbsp;
                      <input type="radio" id="servis" name="servis" value="3">
                      <label for="servis">3 (Cukup)</label>&nbsp;&nbsp;&nbsp;&nbsp;
                      <input type="radio" id="servis" name="servis" value="4">
                      <label for="servis">4 (Baik)</label>&nbsp;&nbsp;&nbsp;&nbsp;
                      <input type="radio" id="servis" name="servis" value="5">
                      <label for="servis">5 (Baik Sekali)</label>&nbsp;&nbsp;&nbsp;&nbsp;
                 </div>
                 <div class="form-group">
                    <label>Pesan</label>
                    <textarea class="form-control" name="pesan"></textarea>
                 </div>
                 <button type="submit" class="btn btn-primary">Send</button><br><br>
                 </form>
                 </div>
           </div>
        </div>
     </div>

  <div class="container">
        <p>
    <input class="rating">
  </p>
</div>

	<!-- jQuery first, then Tether, then Bootstrap JS. -->
	<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>

	<script src="js/simple-rating.js"></script>

	<script type="text/javascript">
  	$(document).ready(function(){
    	$('.rating').rating();
  	});
	</script>

I can click the star rating and see how many stars it shows, but I do not know how to return the star value in numbers just like in the servis with option value.

Any idea how to?

Sep
28
2 months ago
Activity icon

Started a new Conversation Testimonial Slider

How to create testimonial slider with Bootstrap v3.2.0 ?

At first I am using this testimonial slider:

https://www.solodev.com/blog/web-design/how-to-design-a-testimonial-slider.stml

Yet, it is using a different bootstrap version than what my web used already. If I am using a different bootstrap version than it will creates a mess on my website.

Any clue how to create a testimonial slider while still using Bootstrap v3.2.0 ?

Sep
25
2 months ago
Activity icon

Started a new Conversation Migrating Wordpress Site

Anyone has experience about migrating wordpress site?

I created a wordpress site offline complete with the content in it. After migrating it online - it request me to install the whole wordpress site.

This is strange, I already setup everything, do I have to start over if I migrating it online?

I already copy the whole files to online and import the whole database online.

Any clue why I have to start over again ?

Activity icon

Replied to Kontak

I finally solved it. Creating a new class to fix the spacing and comment out the class that causes trouble.

Sep
23
2 months ago
Activity icon

Replied to Kontak

If I turn off this whole class:

<div class="wpb_column vc_column_container vc_col-sm-4">

The contact info next to it start moving out of place. Any idea how to make the form fillable but still keep place in the right place?

Activity icon

Replied to Kontak

This is the codes:

kontak.blade.php

		<div role="form" class="wpcf7" id="wpcf7-f182-p19-o1" lang="en-US" dir="ltr">
                                <div class="screen-reader-response"></div>
                                <form class="wpcf7-form" action="{{ url('sendcontactfooter') }}" method="POST" novalidate="novalidate">
                                   <div style="display: none;">
                                      <input type="hidden" name="_wpcf7" value="182" />
                                      <input type="hidden" name="_wpcf7_version" value="4.3.1" />
                                      <input type="hidden" name="_wpcf7_locale" value="en_US" />
                                      <input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f182-p19-o1" />
                                      <input type="hidden" name="_wpnonce" value="1d73f3e5f9" />
                                      @csrf
                                   </div>
                                   <div class="row">
                                      <p class="col-md-6">
                                         <span class="wpcf7-form-control-wrap name"><input type="text" name="nama" size="40" aria-required="true" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-invalid="false" placeholder="Nama *" /></span> 
                                      </p>
                                      <p class="col-md-6">
                                         <span class="wpcf7-form-control-wrap email"><input type="text" name="email" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false" placeholder="Email *" /></span>
                                      </p>
                                   </div>
                                   <div class="row">
                                      <p class="col-md-12">
                                         <span class="wpcf7-form-control-wrap subject"><input type="text" name="judul" size="40" aria-required="true" aria-invalid="false" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" placeholder="Judul *" /></span> 
                                      </p>
                                   </div>
                                   <div class="row">
                                      <p class="col-md-12">
                                         <span class="wpcf7-form-control-wrap message"><textarea name="pesan" cols="40" rows="10" aria-required="true" aria-invalid="false" class="wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required" placeholder="Pesan *"></textarea></span> 
                                      </p>
                                   </div>
                                   <div class="row">
                                      <p class="col-md-6 captcha_test">
                                         <input type="hidden" value="2088610286" /><img class="wpcf7-form-control wpcf7-captchac wpcf7-captcha-captcha-937" width="84" height="28" alt="captcha" src="#" name="_wpcf7_captcha_challenge_captcha-937"/><br />
                                         <span class="wpcf7-form-control-wrap captcha-937"><input type="text" class="wpcf7-form-control wpcf7-captchar" name="captcha-937" size="40" aria-invalid="false" placeholder="Masukan Captcha *" /></span>
                                      </p>
                                      <p class="col-md-6"><input type="submit" value="Kirim Pesan" class="wpcf7-form-control wpcf7-submit"></p>
                                   </div>
                                   <div class="wpcf7-response-output wpcf7-display-none"></div>
                                </form>
                       </div>

I already tried to comment out this:

<span class="wpcf7-form-control-wrap name">

and this:

<div role="form" class="wpcf7" id="wpcf7-f182-p19-o1" lang="en-US" dir="ltr">

and it does not work.

Sep
22
2 months ago
Activity icon

Replied to Kontak

I already check it but do not understand which code disable the text typing?

Activity icon

Started a new Conversation Kontak

Cek this out - https://sample.advance-web-studio.com/f_kontak

I wonder why on mobile version the contact form is not refillable?

I cannot type on the contact form. Any clue why?

Activity icon

Replied to .htaccess Error

Using phpinfo() :

On the server - PHP Version 7.2.33

On local - PHP Version 7.2.24

Why the error still persist?

The version is almost the same

Activity icon

Replied to .htaccess Error

It is PHP Version 7.2.24 on localhost and it works!

My problem is migrating it to the server which uses PHP Version 7.3.6

Activity icon

Replied to .htaccess Error

The server uses : PHP version: 7.3.6

My local uses: PHP/7.2.24

The only problem now I have many websites on the server that works with PHP 7.3.6 version.

If I change the server into PHP 7.2 I am afraid the other website will not works.

Any idea how to make my current website works with PHP 7.3 ?

Activity icon

Started a new Conversation .htaccess Error

When trying to running my website online after migrating it from offline:

Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /home/advancew/sample.advance-web-studio.com/vendor/ramsey/uuid/src/functions.php on line 34

The same .htaccess works offline why it does not works online?

My hosting provider mentions that it is .htaccess script error

.htaccess

	<IfModule mod_rewrite.c>
		<IfModule mod_negotiation.c>
    	Options -MultiViews -Indexes
		</IfModule>

		RewriteEngine On

		# Handle Authorization Header
		RewriteCond %{HTTP:Authorization} .
		RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

		# Redirect Trailing Slashes If Not A Folder...
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteCond %{REQUEST_URI} (.+)/$
		RewriteRule ^ %1 [L,R=301]

		# Send Requests To Front Controller...
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteRule ^ index.php [L]
</IfModule>

Any clue why?

Sep
21
2 months ago
Activity icon

Started a new Conversation Show Part Of Strings

I would like to show the first 30 letters.

This would show the whole contents:

{!! $about->perusahaan !!}

Any idea how to?

ref: https://www.w3schools.com/php/func_string_substr.asp

Sep
18
2 months ago
Activity icon

Replied to Submit Button

I finally find the solution.

by searching for sendmail.php and comment out the whole ajax script that contains that words.