Chuks33

Chuks33

Member Since 5 Months Ago

Experience Points
210
Total
Experience

4,790 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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 1
210 XP
Jun
13
5 months ago
Activity icon

Replied to How To Make Links Clickable

@SNAPEY - Can this be done dynamically with Laravel after a form submission?

Activity icon

Replied to How To Make Links Clickable

Aha! As can be seen above, the link I added to my last post is clickable. Is there a Laravel function that parses text for links and makes them clickable?

Activity icon

Replied to How To Make Links Clickable

I apologize for not being clear of what I'm asking. I'm basically asking whether Larvel has a built in custom function that parses input for links and makes them. A function probably using 'preg_replace' behind the scenes.

Below is a way it would be done in vanilla php:

http://www.developphp.com/video/PHP/Active-Clickable-Link-Function-preg_replace-Programming-Tutorial

Activity icon

Started a new Conversation How To Make Links Clickable

Hi guys. Sorry, I'm a bit new to Laravel and I haven't seen a solution of how to make links clickable. Say, for instance, has adds a link to his writeup for a blog application. Is there a way to make it clickable.

Jun
08
5 months ago
Activity icon

Replied to Adsense Code On Blade Template

@MVD - Much thanks! After approval from Google ads are showing up on the blade templates.

Thank you @ftiersch and @snapey for your contributions.

Jun
04
5 months ago
Activity icon

Replied to Adsense Code On Blade Template

@MVD - It's a public page.

I'm getting in the console:

Failed to load resource: the server responded with a status of 403 ()

Perhaps

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

should be placed in between the header tags leaving only

<ins class="adsbygoogle"
                     style="display:block"
                     data-ad-test="on"
                     data-ad-client="ca-pub-xxxxxxx"
                     data-ad-slot="xxxxxxxxx"
                     data-ad-format="auto"
                     data-full-width-responsive="true"></ins>
                <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
              </script>

in the body of the blade template...

Activity icon

Replied to Adsense Code On Blade Template

@SNAPEY - a) THe network tab didn't show any errors

b) The console showed this error:

The resource https://pagead2.googlesyndication.com/pagead/js/r20190530/r20190131/show_ads_impl.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.

Jun
03
5 months ago
Activity icon

Replied to Adsense Code On Blade Template

@mvd

@extends('layouts.master')

@section('title')
    {{$post->username}} on ClassDey: {{$post->post_title}}
@endsection
@section('og-title'){!! $post->post_title !!} @stop
@section('og-url'){!! url()->current() !!} @stop
@section('meta-description'){!! $post->post_body !!}  @stop

@section('content')
    @include('includes.message-block')
    <!-- Section: Follow -->
      <section class="section section-follow center">
        <div class="container">
          <div class="row">
            <div class="col s12">
              <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <!-- CD-01 -->
                <ins class="adsbygoogle"
                     style="display:block"
                     data-ad-test="on"
                     data-ad-client="ca-pub-xxxxxxx"
                     data-ad-slot="xxxxxxxxx"
                     data-ad-format="auto"
                     data-full-width-responsive="true"></ins>
                <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
              </script>
            </div>
          </div>
        </div>
      </section>
      <section class="section section-follow teal darken-1 white-text center">
        <div class="container">
          <div class="row">
            <div class="col s12">
              <a style='border-radius: 4px !important;font-size: 14px;background: #fff !important; padding: .1em .5em;color: rgb(0,139,139)' href="{{url('/fposts')."/".$post->category_id}}/filter">
                <span>{{$post->name}}</span>
              </a>
              <h5>{{$post->post_title}}</h5>
            </div>
          </div>
        </div>
      </section>
      <section class="section section-main"><!-- Bread crum -->
        <div class="container">
          <div class="row row-1">
            <a style='border-radius: 4px !important;font-size: 14px;background: #fff !important; padding: .1em .5em;color: rgb(0,139,139)' href="{{url('/fposts')."/".$post->category_id}}/filter">
              <span>< {{$post->name}}</span>
            </a>
          </div>          
        </div>
      </section>
      <section class="section section-main">
        <div class="container">
          <div class="row row-1">
            <div class="col">
              <div>
                <a href="/profile/{{$post->username}}"><img src={{$post->avatar}} alt="{{$post->username}}" style='width: 50px; height: 50px;border-radius: 50%'></a>
              </div>
            </div>
            <div class="col">
              <div>
                <span class="title"><a href="/profile/{{$post->username}}">{{$post->username}}</a></span> {{$post->created_at->diffForHumans()}}
              </div>
              <div>
                <p>
                  @if(!empty($post->image_url))
            <img style="width:50%" alt="{{$post->post_title}}" src="{{$post->image_url}}">
        @endif
        <br />
      {!! nl2br(e($post->post_body))!!}</p>

              </div>
            </div>
          </div>          
        </div>
      </section>
 <section class="section section-main"><!-- Share button -->
    <div class="container">
      <div class="row row-1">
        <a href="whatsapp://send?text=From IUO's virtual bulletin board {{ url()->current() }}" class="btn btn-large white green-text"><i class="small fa fa-whatsapp"></i> Share</a>
      </div>          
    </div>
  </section>
      <!-- Section: Comment -->
  <section class="section section-contact scrollspy">
    <div class="container">
      <div class="row">        
          <div>
            <h5>Comment</h5>                      
            
            {!! Form::open(['action' => '[email protected]', 'method' => 'POST', 'enctype' => 'multipart/form-data']) !!}

            {{Form::hidden('parent_id', $post->id)}}

            <div class="input-field">
              {{Form::textarea('comment', '', ['id' => 'article-ckeditor', 'class' => 'materialize-textarea', 'placeholder' => 'Write a comment...'])}}
            </div>
            

            {{Form::submit('Submit', ['class'=>'btn btn-primary'])}}
              
            {!! Form::close() !!}          
        </div>        
      </div>
    </div>
  </section>
  <!-- Section: Comment list -->
  <section class="section">
    <div class="container">
      <div class="row">
        <div class="col s12">
          <ul id="productData" class="collection">
          @if(count($comments) > 0)
              @foreach($comments as $comment)
                  
                <li class="collection-item avatar">
                    
                    <a href="/profile/{{$comment->username}}"><img src={{$comment->avatar}} alt="{{$comment->username}}" class="circle"></a>
                  <span class="title"><a href="/profile/{{$comment->username}}">{{$comment->username}}</a></span> {{$comment->created_at->diffForHumans()}}
                  <p>{{$comment->post_body}}<br>
                     
                  </p>
                  
                </li>
             
              @endforeach
              @else
                  <li class="collection-item">No comments found</li>
              @endif
           </ul>
        </div>
      </div>
    </div>
  </section>
    <article class="post" data-postid="{{ $post->id }}">
        <!-- <div style='background-color:rgb(0,139,139);text-align: center;'>
            
            <ul>  
                <li>
                    <a style='border-radius: 4px !important;font-size: 14px;background: #fff !important; padding: .1em .5em;' href="#">
                    <span>For Sale</span>
                    </a>
                  
                </li>              
                <li>
                    <h2 style='margin: 0; font-size: 16px; font-weight: normal; line-height: 1.5em; color: #fff'>
                        {{$post->post_title}}
                    </h2>
                  
                </li>
             </ul>

        </div> -->
      
       
     
        <!-- <a href="{{ route('report1', ['id' => $post->id]) }}">Report</a>
 -->        <!-- {!!Form::open(['action' => ['[email protected]', $post->id], 'method' => 'POST', 'class' => 'pull-right'])!!}
            {{Form::submit('Report', ['class' => 'btn btn-danger'])}}
            {{Form::hidden('id', $post->id)}}
        {!!Form::close()!!} -->

    
    </article>

    <!-- <ul id="productData" class="collection">
    @if(count($comments) > 0)
        @foreach($comments as $comment)
            
                <li class="collection-item avatar">
                    
                    <a href="/profile/{{$comment->username}}"><img src={{$comment->avatar}} alt="{{$comment->username}}" class="circle"></a>
                  <span class="title"><a href="/profile/{{$comment->username}}">{{$comment->username}}</a></span> {{$comment->created_at->diffForHumans()}}
                  <p>{{$comment->post_body}}<br>
                     
                  </p>
                  
                </li>
           
        @endforeach
    @else
        <li class="collection-item">No comments found</li>
    @endif
     </ul> -->
    
    <script>
        var token = '{{ Session::token() }}';
        var urlLike = '{{ route('like') }}';
    </script>
    
@endsection
Activity icon

Replied to Adsense Code On Blade Template

@mvd I just created a new ad unit. I added data-ad-test="on" as a parameter to the ad code yet the ad is still not appearing.

Activity icon

Replied to Adsense Code On Blade Template

@MVD - I added the script tags.

I didn't test within test mode. I'll give it a shot. Thanks

Activity icon

Replied to Adsense Code On Blade Template

@FTIERSCH - 1. Yes

(adsbygoogle = window.adsbygoogle || []).push({});
  1. Which library? I thought the ad code was sufficient...
Activity icon

Started a new Conversation Adsense Code On Blade Template

Is there a particular way Adsense code is supposed to be added to blade.php files?

I have added the below code in a div on my template file yet nothing appears. It's been roughly 2 weeks now.

(adsbygoogle = window.adsbygoogle || []).push({});