Author Topic: Creating Rating script for radiodj (Listener is able to like or dislike songs)  (Read 1642 times)

Jhonny

  • Hero Member

  • Online
  • *****
  • 3405
  • Personal Text
    Peace, enjoy life.it's over before you've lived it
    • Jhonny's RadioDJ tutorials.
Think 2gb can be oke for space on a server.
most of the time you use les than 1 gb.
R.T.F.M. means to me, Read The Fantastic Messages.
Make things simple, but don't make simple things simpler!
I don't do drugs, I do tuts. ( ͡° ͜ʖ ͡°) visit https://radiodj.info

Testing v.2.0.1.5 beta

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
I VE YTRIED, BUT  i think this javascriptconflict is breaking me down,its ready,but i really want to make it responsive, and i dont want to let an absolute player and like/dislike buttons, its not good,but its hard to make it work with this javascript conflict. can you look and see if you get an solution?


the first code the first part, sends likes/dislikes to the pages that willsend it to database.

The seconds part of code is the code to load the main div of script to reload after 1 minute, then the song - image- bio etc changes automaticaly, but theres a conflict, if i put everything (php code) at the same div the page loads slowly and i can see the loading at the tab.

and if i press f5 for example after have pressed like or dislik button, the page shows an alert box syn that if i do it itll send data or something like this, its almost like itll send the like again, but of course it wont go because even going, my code prevent the same moment, anyway,idk ,because, if a few moments has spent, idk if its gonna be sent anyway.
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Its gonna be really good guys :), . i haeve to make a really good style, in it, i also have to solve some issues. but look to it now...




And now totally responsive! :cool: ive rebuilt all the code. and the player too, the other was stopping without warning.  :D
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Hey guys,m please, can you make a test on my webpatge, if tis working like its supposed to [question mark]


http://radiorockfm.com.br/like_song/live_stat.php

Thank you all guys :)
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Please, let your reviews here guys :)


Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
THERES ONLY ONE PROBLEM with the script.

You enter the page, then you click submit button (like or dislike).
BUT instead the rating to be sent, the page refresh, then when its refreshed, you have to click again in the rating submitt button (like/dislike).

What is hapenning, i coudlnt discover yet :(
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

stevewa

  • Sr. Member

  • Offline
  • ****
  • 383
live_stat.js:2 Uncaught ReferenceError: $ is not defined
    at live_stat.js:2
(anonymous) @ live_stat.js:2

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

bpromma

  • New User

  • Offline
  • *
  • 30
    • THAI MUSIC RADIO
Please, try again:
http://radiorockfm.com.br/like_song/live_stat.php
I tried, clicking on the button to like the music, the whole page is recharging and that causes the cut of the audio player.My web browser is Firefox.
THAIMUSIC.ME - BEST Thai Music! - https://www.thaimusic.me/

stevewa

  • Sr. Member

  • Offline
  • ****
  • 383
Neste momento, nosso servidor de pedidos está fora do ar, por favor volte mais tarde...

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
I tried, clicking on the button to like the music, the whole page is recharging and that causes the cut of the audio player.My web browser is Firefox.

This is my problem now, the same thing happens to me trying in Chrome :(

Idk more what bto do to try toi fix this issue.

I really dont understand why it has this behavior, honestly it wasnt sdupposed to happen like this.
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Eu nao posso mais perder muito tempo com programação do site e scripts , pois tenho que dar um carinho especial pro meu canal no youtube hehehe. mas aos pouquinhos devagarinho quando der uma brechinha vou produzindo mais codigo pra fazer um puta sistema interativo em site de radio.
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/

PresidentOfACPJ

  • Full Member

  • Offline
  • ***
  • 100
  • Personal Text
    We play all kinds of Rock!
    • RADIO ROCK FM - O ROCK ALTERNATIVO COM PITADAS DE CLASSIC ROCK!
Im gonna have to get another kind of code javascript to send, ajax actually, to sent data from the form to database. but now i have 3 youtubechannels to increase, thank, if you fell able to solve this code issue, please tell us and post the code back again here.
Rádio Rock FM:

http://radiorockfm.com.br/
twitter.com/radiorockfmreal/
fb.com/radiorockfmreal/