Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Raiat

Playlist, fazer ela automatica.

Recommended Posts

Eu não entendo muito ainda de php, eu tenho um script que a playlist nao e automatica:( alguem pode me ajudar a deixar ela rodando automatica. Digo escuto uma musica passa para outra ? Se quiser olhar melhor http://looktune.com ocmo funciona o playlist do meu site.

 

<?php $title = Lang::get('words.my_playlist'); ?>

@extends('master')

@section('content')

<div class="panel">

<div class="panel-body">

<div class="row">

<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 result-container">

<h1><span class="fa fa-music"></span> {{ Lang::get('words.my_playlist') }}</h1>

<div class="sidebar pull-left visible-lg visible-md">

<div class="ad-box">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/box') }}" width='300' height='250' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->box }}

@endif

</div>

<div class="affix-sidebar affix-top">

<div class="ad-box">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/box') }}" width='300' height='250' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->box }}

@endif

</div>

<div class="ad-box">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/box') }}" width='300' height='250' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->box }}

@endif

</div>

</div>

</div>

<div class="pull-left">

@if($tracks->count() == 0)

<div class="row">

<div class="col-lg-12 col-md-12 col-sm-12">

<div class="ad-large">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/banner_large') }}" width='728' height='90' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->banner_large }}

@endif

</div>

<div class="ad-mobile">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/mobile') }}" width='300' height='50' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->mobile }}

@endif

</div>

</div>

</div>

<h2 class="text-center">{{ Lang::get('words.empty_playlist') }}<br /><i class="fa fa-meh-o" style="font-size:12em"></i></h2>

<div class="row">

<div class="col-lg-12 col-md-12 col-sm-12">

<div class="ad-large">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/banner_large') }}" width='728' height='90' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->banner_large }}

@endif

</div>

<div class="ad-mobile">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/mobile') }}" width='300' height='50' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->mobile }}

@endif

</div>

</div>

</div>

@else

@foreach($tracks as $i => $track)

@if($i%$ads->ads_per==0 || $i==0)

<div class="row">

<div class="col-lg-12 col-md-12 col-sm-12">

<div class="ad-large">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/banner_large') }}" width='728' height='90' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->banner_large }}

@endif

</div>

<div class="ad-mobile">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/mobile') }}" width='300' height='50' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->mobile }}

@endif

</div>

</div>

</div>

@endif

<div class="row search-results" style="border: 1px solid #fff; margin:0; padding: 10px;">

<div class="col-lg-12 col-md-12 col-sm-12 padding0" style="padding-left:5px">

<h2 class="song-title pull-left">{{ $track->title }}</h2>

<div class="btn-group pull-right" role="group" data-authentication="@if(Auth::guest()) false @else true @endif" data-track-id="{{ $track->track_id }}" data-image="{{ $track->image }}" data-title="{{ $track->title }}">

<button class="btn btn-sm btn-default play"><i class="fa fa-play fg-green"></i> <span>{{ Lang::get('words.play') }}</span></button>

<button class="btn btn-sm btn-default playlist" data-delete="true"><i class="fa fa-plus fg-amber"></i> <span>{{ Lang::get('words.remove') }}</span></button>

<button class="btn btn-sm btn-default download" data-adfly="{{ $ads->adfly_ad }}"><i class="fa fa-download fg-blue"></i> <span>{{ Lang::get('words.download') }}</span></button>

@if($ads->ad_center != '')<a title="{{ $track['title'] }}" href="{{ $ads->ad_center }}&q={{urlencode($track['title'])}}" target="_blank" class="btn btn-sm btn-default ringtone"><i class="fa fa-mobile fg-red"></i> <span>{{ Lang::get('words.ringtone') }}</span></a>@endif

</div>

<div class="clearfix"></div>

</div>

<div class="clearfix"></div>

</div>

@endforeach

<div class="pagination-outter">

{{ $tracks->links() }}

</div>

@endif

</div>

<div class="pull-right hidden-800" style="width:160px; height:600px">

<div class="right-ad">

@if($ads->ajax_loading)

<iframe src="{{ URL::to('ads/skyscrapper') }}" width='160' height='600' frameborder='0' border='0' marginwidth='0' marginheight='0' scrolling='no'></iframe>

@else

{{ $ads->skyscrapper }}

@endif

</div>

</div>

<div class="clearfix"></div>

</div>

</div>

</div>

</div>

 

@stop

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.