Jump to content

[USEFUL] DJ On Air Script


James
 Share

Recommended Posts

i'm getting stuck with this part echo'
' . $img . '
' . $title . '

' . $sub . '

';

 

please help

 

Please provide some more detail. What bit are you stuck on specifically? What are you trying to achieve vs what is it doing? That line of code looks fine to me.

 

Also, please use the CODE tags when embedding code in posts for easier reading.

Studiio - All-In-One Radio Communication Platform
SMS | Phone Calls | Social Media | Content

Link to comment
Share on other sites

ok so i'm meant to be on air friday saturday and sunday? but my picture is not showing up, please help

 

// FRIDAY SCHEDULE

if ($d == 5 && $h >= 0 && $h

else if ($d == 0 && $h >= 19 && $h

else if ($d == 1 && $h >= 14 && $h

else if ($d == 2 && $h >= 16 && $h

else if ($d == 3 && $h >= 18 && $h

else if ($d == 4 && $h >= 20 && $h

else if ($d == 5 && $h >= 18 && $h

else if ($d == 6 && $h >= 0 && $h

 

 

 

 

 

 

 

 

// SATURDAY SCHEDULE

else if ($d == 0 && $h >= 0 && $h

else if ($d == 1 && $h >= 19 && $h

else if ($d == 2 && $h >= 18 && $h

else if ($d == 3 && $h >= 18 && $h

else if ($d == 4 && $h >= 18 && $h

else if ($d == 5 && $h >= 18 && $h

else if ($d == 6 && $h

 

 

 

 

 

 

 

 

// SUNDAY SCHEDULE

else if ($d == 0 && $h >= 0 && $h

else if ($d == 1 && $h >= 23 && $h

else if ($d == 2 && $h >= 10 && $h

else if ($d == 3 && $h >= 14 && $h

else if ($d == 4 && $h >= 16 && $h

else if ($d == 5 && $h >= 18 && $h

else if ($d == 6 && $h >= 23 && $h

else if ($d == 0 && $h >= 18 && $h

else if ($d == 0 && $h

 

 

 

see were it says strawbs

Link to comment
Share on other sites

For each day, you keep checking for different days...For example your Friday block:

 

// FRIDAY SCHEDULE
if ($d == 5 && $h >= 0 && $h else if ($d == 0 && $h >= 19 && $h else if ($d == 1 && $h >= 14 && $h else if ($d == 2 && $h >= 16 && $h else if ($d == 3 && $h >= 18 && $h else if ($d == 4 && $h >= 20 && $h else if ($d == 5 && $h >= 18 && $h else if ($d == 6 && $h >= 0 && $h 

 

You should only be checking the day ($d) once for each daily schedule. Plus your hours are all over the place and you should not have a / before the images urls. So it should look more like:

 

// FRIDAY SCHEDULE
if ($d == 5){
  if($h >= 0 && $h    else if ($h >= 4 && $h    else if ($h >= 5 && $h    else if ($h >= 6 && $h    else if ($h >= 7 && $h    else if ($h >= 8 && $h    else if ($h >= 9 && $h    else if ($h >= 10 && $h    else if ($h >= 11 && $h    else if ($h >= 12 && $h    else if ($h >= 13 && $h    else if ($h >= 14 && $h    else if ($h >= 15 && $h    else if ($h >= 16 && $h    else if ($h >= 17 && $h    else if ($h >= 18 && $h    else if ($h >= 19 && $h    else if ($h >= 20 && $h    else if ($h >= 21 && $h    else if ($h >= 22 && $h    else if ($h >= 23 && $h }

 

Check your PMs. I'll send you something to try.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...