Genius is nothing but great effort applied. – Awa Kenzo

Jock Rotator for Joomla

Download

Jock Rotator v2.5.0 (2.63 kB, 12 hits)

Jock Rotator v1.7.1 (2.99 kB, 1288 hits)
Jock Rotator v1.6 (1.63 kB, 1626 hits)
Jock Rotator v1.5 (1.53 kB, 6746 hits)

Instructions

Step 1. Upload to Joomla using the Extension Manager

Step 2. Open “mod_jock.php” with any HTML editor

Step 3. Edit the HTML according to the time your jocks are on the air

Step 4. Save and Upload into /your-site/modules/mod_jock/

Change Log

Version 2.5.0February 21st, 2012

  • Added Joomla 2.5 native compatibly
  • Cleaned up code and comments

Version 1.7.1November 16th, 2011

  • Disabled caching
  • Added Module Suffix
  • Added ability to use minutes

Version 1.7August 30th, 2011

  • Added Joomla 1.7 native compatibly

Version 1.6March 6th, 2010

  • Added Joomla 1.6 native compatibly

Version 1.5February 8th, 2010

  • Removed CSS
  • Added Joomla 1.5 native compatibly
  • Cleaned up code

Version 1.4January 12th, 2009

  • Added “Set Default Timezone” functionality (PHP 5.1+ ONLY)

Version 1.3January 9th, 2009

  • Cleaned up code
  • Added more comments for easier installation instructions

Contribute

You can now contribute to the code at Github

Example Usage

Actual Working Code from http://700thefarm.com

Greg Rickaby runs on the Genesis Framework

Genesis Framework

The theme you're viewing is the eleven40 Child Theme, which was built on Genesis.

Genesis empowers you to quickly and easily build incredible websites with WordPress. Whether you're a novice or advanced developer, Genesis provides the secure and search-engine-optimized foundation that takes WordPress to places you never thought it could go. It's that simple - start using Genesis now!

Take advantage of the 6 default layout options, comprehensive SEO settings, rock-solid security, flexible theme options, cool custom widgets, custom design hooks, and a huge selection of child themes ("skins") that make your site look the way you want it to. With automatic theme updates and world-class support included, Genesis is the smart choice for your WordPress website or blog.

Comments

  1. Paul says:

    Greg, like your profile (Believer). Looking to use your extension in creating a new Joomla site for WJSA radio in Jersey Shore, PA. I was wondering if the extension has been tested yet under Joomla v2.5?

  2. Leanna says:

    I got the module to function however, it’s not changing – even when I refresh. Any ideas?
    Contact me and I’ll send you a copy of the altered script.

  3. phil says:

    hi greg i just installed your mod-jock on joomla 1.7 i got every thing working just fine but it dont refresh its self i have to refresh the page i have turnd all cache of in globle and in cache pluging but still doesnt refresh what do you think this could be thanks

  4. Fan says:

    How do we add a module suffix to the 1.7 module?

  5. Sensi says:

    I must be doing something wrong because I can’t get anything to show up in the module. I’ve checked my php file many times so I must be missing something. Can someone please help.. just spent an hour or so altering the file to my stations schedule so I would like for that work to not be in vain. Please help! You can contact me through my website’s Contact Us link on the left side of the page. I will send you a copy of my code or whatever you need. Thanks so much!
    To clarify – The module is enabled but blank. I’ll leave it up so you can see. It’s called Jock Rotator.

  6. Kerry says:

    Hi Greg,

    I’m having the same trouble that a few others are having. No matter what configuration I use, I can’t seem to get the module to change over on the half hour.

    My code is for the first airshift of the day:

    if ($x < 530 ) { echo '

    With the half hour time in place, the module seems to "lock" on that shift and won't change at any time.

    I'm running PHP 5.2.x and Joomla's cache is turned off. Can you offer some help or even a complete working module featuring the half hour or alternative time examples? In other words, not just the line in question, but the entire PHP file that you've tested as working which includes times such as 530 etc.

    Thanks in advance.

    Kerry

    • Tess says:

      Hi Kerry

      We’ve got it working our side!

      Change:
      $x = date(“G”); to $x = date(“Gi”);

      So then every hour needs to be hour (without leading 0) and minutes
      e.g 7:30 am becomes 730
      and 3:45 pm becomes 1545

      :)
      Tess

      • Kerry says:

        Thanks Tess. Strangely, that doesn’t seem to have fixed my problem, even though the server is running a PHP version higher than the minimum.

        It might just be a cached session, so I’ll try again in the morning to see if anything has changed.

        Thanks again for your help.

        Kerry

        • Tess says:

          Hi Kerry!

          So strange that it’s not working your side.. did it come right?

          • Yes it has come good Tess, but it took a LOT more work to get it there (partly because I needed to update the code on ten different websites). For anyone who’s interested, here’s what it took to provide ‘supreme control’ over the shift changes:

            Change $x = date(“G”); to $x = date(“Hi”);

            The H is for 2 digit 24 hour time, eg, 00-23
            The i is for 2 digit minutes, eg, 00-59

            Then you need to change ALL of your times to have 4 digits, eg, 0600 for 6am, or 2130 for 9.30pm.

            The beauty of using 4 digit 24 hour time is that you can fine-grain your shift changes to any time combination you choose, and it will work. Eg, 1117 or 2342, they’ll all work properly.

            But here’s the big one to remember. If you have a shift change at midnight, the time needs to be entered as 0000, NOT as 2400 as suggested by Greg’s example code, as 24 and 2400 are non-existant time intervals on a 24 hour clock.

            I hope that helps someone, in particular Greg, the author of this otherwise excellent module.

  7. Tess says:

    Thanks for this awesome little extension! We’ve been using it on our radio station for over a year now with not one day’s hassle. We’re upgrading to Joomla 1.7 soon. Any plans for an upgraded release of Jock Rotator anytime soon?

  8. Mark says:

    Mod works fine… does exactly what i want – however it will not handle minutes…

    elseif ($x < 330 ) { echo '

    it works fine with single digits and hours….

    elseif ($x < 3 ) { echo '

    next change

    elseif ($x < 4 ) { echo '

    the above works fine….

    but it will not work if I try anything longer than single digits…. what am I missing?

  9. Pedro says:

    What is the code for saturday or sunday ” case “6″ and Case “7″ ” ?

  10. Sam says:

    Great module. Got it to display as per our schedule, different shows on some days/weekends. Except for one thing, it seems to ignore half hour e.g. (1030, 2330).
    If anyone knows how to fix this please send me an email, if you want a copy of the code I used send me an email, you’ll find my email on our website contact page click on the tech support link.

    • Sam says:

      Edit: It also refuses to update automatically have to refresh the page each hour to change jock. Joomla cache is turned off already. Any ideas, on this issue?

  11. Lesley says:

    Very helpful module for me! Works like a charm on our website. Would love a backend schedule planner though! Easier to change the program if dj’s swap shows for example…

  12. Helder says:

    Please send me a copy of a example to edit my mod_jock.php please.

  13. Hello Greg,
    This module is awesome! I have managed to get it to display a different show for every day of the week and at unusual start and end times too. If anyone wants my copy to help them, just let me know.
    Thanks Greg.

    • Trey says:

      Hey bro can you email me your copy please, having trouble with the different shows on different days.

      Thanks

    • Sam says:

      Cesario Camacho: I hope it’s not too late but I’d love to have a copy of your verison. I did a version as well but for some reason, the noon to 5pm show displays at 11am therefore through off the whole thing + the auto refresh doesn’t seem to work the page has to be reloaded or refresh in other for the jock info to change. My Joomla cache is turned “Off”.

  14. Hi,

    Great module. Look’s brilliant on the site :)

    Just got a few questions….

    On the demonstation site newstalk there is links to facebook pages and stuff. How can I add that?

    Also is it possible to turn the information into a full schedule page? If so any tips on how to?

    Thanks again :)

  15. Brian Daly says:

    Greg, is it possible to have your core day time shows Mon-Fri say 7am – 7pm and then have break exceptions for the night time schedule and the weekends. I have been trying to do this without much success.

    I’m trying to code it efficiently!!

  16. Mark says:

    Great Module, I have this working perfectly on our site at: http://www.stompradio.com the only problem is some listeners will have their browsers open for hours at a time and they wont see the current Jock unless they refresh, is there any way to force a refresh each time the Jock changes?

  17. Rayant says:

    Hi First of all that module is great. The only problem I have is that the DJ does not display correctly. For example I have a dj that start at 10:30 but although 10:30 passes by it will not change the name.

    this is the code I am using :

    elseif ($x < 10.30 ) { echo '
    DJ Name

  18. danny says:

    Hi Greg, I’m trying out the jock rotator and it works awesome changes just like it’s setup to do .. I have one problem though that maybe you could help me with, I get this “a “tag that auto nest in all my other modules, all my links seem to point to /listenlive:

    it seems to be related to the jock rotator i think, do you have any tips ?

    Blessings !

  19. Greg,
    your modules is exactly what I was looking for. Thank you for taking the time to create it. I do have one question. According to the PHP file it is looking for dj images in a specific directory. I copied the image and edited the php to point to that directory for the specific DJ playing at that time. But only the name shows up, no image. Is there something more I have to do to make the image show? Below is the line from the PHP. I have verified directory and file name.
    DJ Ferret

    Thanks in advance
    Orion

  20. David says:

    We need to add shows that end at 13:30 PM . We put the above string but mod jock shows wrong image…. how can we do that?

    //——————————- Ya es mediodia —————————–

    elseif ($x < 1330 ) { echo '

    ‘; }

  21. mordy says:

    hi, this might be a noob question, but where do you save the images for the diff presenters?

  22. lamont says:

    Do you have one that can be use in dreamweaver?

  23. Henry says:

    HI I was wondering if I could mask the url so people have to register to listen to my radio??

  24. lamont says:

    Hi
    Great job,
    I was wondering can i get a template like V935 to build a radio station site?

  25. DJ Shad says:

    hi is there3 a way to do 2 hour intervals of shows for every day instead of the mormal set schedual like you have it set at mon-friday i have a dj line up that is 2 hours shifts and the djs ponly work lie 2 maybe 3 days a week please help me

  26. DJ Shad says:

    Hey greg great plug in it works great

    My question is i have a different DJ line up every day of the week how would i go about doing this? and also i have my DJs only do a 2 hour show at a time how would i change this as well?

    Is there a way to do it? if so please get back to me as soon as possible!

    DJ Shad
    djshad@rocketmail.com
    Wicked-DJ Owner

  27. Kutlwano says:

    Hey Greg

    Can you please send me a sample file of the module. I’m so looking forward to using the module, It’s a community radio station project.

  28. Greg Grinnell says:

    The time function works great but I am having trouble getting it to move through the days. It just loops on Monday (the first set if if/else statements). Any ideas? Anybody have this same problem? Thanks!
    Greg G | greg@plant802.com

  29. Pakistani says:

    Great Module…. Thanx again.

  30. Doug says:

    can anyone post a working example using time and date for seperate shows? I am completly lost in php, but this is exactly what i have been looking for, if i can get it working

    • Doug says:

      i have everything set, but i cannot get the day function to work, please advise as to what the day and time function should look like. Thank you to whoever can answer this question

  31. Kris says:

    Hi Greg, Thanks for a very great job doen on this module. Something baffles me though. I install the module last night and already set the timezone in the .php file. When I returened tonight to continue working on it, I just couldn’t find the module again in my module manager.. I’m just wondering what I may have doen wrong. Thank you.

  32. Alfie says:

    Hi..I’m experiencing the same problem with the menu font sizechanging when the module is enabled. However the solution says “Check the .css in mod_jock.php It appears it’s interfearing with your templates .a tags”

    But there’s no reference to.css in mod_jock 1.4, and
    What are we checking for?
    What do we do once we find it?

    Cheers

  33. Howick says:

    This module is awesome! I have managed to get it to display a different show for every day of the week and at unusual start and end times too. If anyone wants my copy to help them, just let me know. Thanks Greg, nice work.

  34. sinan says:

    great job Greg!

  35. sinan says:

    great job Greg!

  36. Steve says:

    Is there anyway of showing a different show for each weeknight?

  37. Michel says:

    Hello

    When i want only day by day how can i do that.
    Ervery dj has his ons show on a day and time..
    I tried everything but i cant get ik working…

  38. How would you make it so a different show would display for each night during the weekday?

  39. I have installed the module on Joomla 1.5.8, and all I get is a completely white blank page. I have checked I have installed the correct PHP version, any idea’s as this is a script I have been looking for for ages, and from the example is a fantastic script.

  40. Jason says:

    This looks pretty awesome. Do you plan on making a version of this one for WordPress?

  41. Hector says:

    How can i get a template like V935 to build a radio station site, or can you help.

  42. Dustin Cook says:

    And how do you change it if everyday has a different lineup? How do I expand the code?

  43. Andy says:

    Hi,

    This is a great script but I was wondering if you happened to have a version with a full back-end version so that the script can be edited within Joomla. EG, items can be selected with text boxes – so that idiots can use it basically?

    Thanks

    • Unfortunetly I do not. I wish I had more time to devote to the script! Between all my freelancing and contract engineering work I’m swamped! If you need help lemme know and I’d be happy to answer any questions.

  44. Easy Breezy!

    if ($x < 5:30 ) { print"
    Meridian's Best Variety

    VPOD
    Make A Request
    "; }
    //------------------------------- Weekday Mornings 6a-10a -----------------------------
    elseif ($x < 6:45 ) { print"
    Breakfast Club

    Mornings 5a - 10a
    Make A Request
    "; }

    • Chuck says:

      Parse error: syntax error, unexpected ‘:’

      //——————————- Weekday Mornings 6a-10a —————————–
      elseif ($x < 6:45 ) { print”
      Breakfast Club

      Mornings 5a – 10a
      Make A Request
      “; }

  45. Chuck says:

    Hi!
    How to display a program that starts the 5:30 am and goes until 6:45 am? I would like to present an example using the time in minutes. Can you help me?

    Thanks

  46. andrethea says:

    this module seems to make my menus text smaller.
    what can be done?

  47. Amy says:

    Greg! Thank you so much for your help, I hadn’t checked back in a bit, but you are a lifesaver!! thanks again :)

  48. MARKY says:

    Does this script work with a frontpage/ dreamweaver site as I need somthing like this on my website I’m building but have not got a clue how this script works lol

    • @MARKY

      Yes, this could be run from any .PHP page using any WSYIWYG editor (aka Dreamweaver). Simply download v1.4, extract and open mod_jock.php and edit as you see fit. After all, I did! :)

  49. Hello again, I’m using firefox and everithing is ok, but i see now in Explorer a porblem with your mod.
    If this mod is activ, the web is down.
    can help me??
    my msn is lacienfm@hotmail.com i’m is online every day.
    tnks!!

  50. John says:

    is it possible to plug this into a standard html page? And if I wanted to add days of the week, would I just edit like this:
    if ($i=1, $x < 6 ) ?

  51. sorry my english, i’m argentine.
    I can not make it work properly.
    What would be the Argenta ID? AR, [AR], another?

  52. amy says:

    hey greg thanks so much for this module! for some reason (maybe i messed up the php, i dunno much about it) but its 12:55 my time and it’s displaying the 5-530am program. can you help?! thanks!

Speak Your Mind

*