Download
Jock Rotator v2.5.0 (2.63 kB, 591 hits)
Jock Rotator v1.7.1 (2.99 kB, 1424 hits)
Jock Rotator v1.6 (1.63 kB, 1707 hits)
Jock Rotator v1.5 (1.53 kB, 7022 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.0 – February 21st, 2012
- Added Joomla 2.5 native compatibly
- Cleaned up code and comments
Version 1.7.1 – November 16th, 2011
- Disabled caching
- Added Module Suffix
- Added ability to use minutes
Version 1.7 – August 30th, 2011
- Added Joomla 1.7 native compatibly
Version 1.6 – March 6th, 2010
- Added Joomla 1.6 native compatibly
Version 1.5 – February 8th, 2010
- Removed CSS
- Added Joomla 1.5 native compatibly
- Cleaned up code
Version 1.4 – January 12th, 2009
- Added “Set Default Timezone” functionality (PHP 5.1+ ONLY)
Version 1.3 – January 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










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.
Nevermind! Tess’ fix worked.
Change:
$x = date(“G”); to $x = date(“Gi”);
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?
This is how much I use Joomla: I had no idea 2.5 was out, much less v2.5.1. :)
I will test this over the weekend and have something by Monday(ish)
Greg, any luck?
Tested, and the module has been updated to version 2.5.0.
Thanks Greg. This is one item I know we will use. Have a blessed day!
For those of you wanting to use the jock rotator for sites with different shows/jocks at odd times etc. use my method below
____-------------------=----------- date_default_timezone_set( 'America/Chicago' ); /** * Begin Jock Rotator * * @since 1.0 * @author Greg Rickaby * The Jock Rotator is nothing more than a PHP Case Statement. What it does is look at the server date and time, and asks: "Is it before 10:00am? Yes? Then display this jock. etc..." Edit the HTML in each respective time-slot below to customize. $i = equals the numerical value of the day of the week Sunday = 0 Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 $x = equals the 24-hour format of an hour with minutes (without the leading zero). You must use 24-hour time! Examples: 0000 = Midnight 900 = 9:00 AM 1200 = Noon 1430 = 2:30 PM 1845 = 6:45 PM */ $i = date( "w" ); // day of the week $x = date( "Gi" ); // hour and minutes switch ($i) { // start the case statement case "1": if ($x < 0600 ) { echo ' MORNING BLEND 6AM-12PM, Jockname ';} Use 00:00 for midnight. Also the exta code for website,twitter & Facebook are not necessary if you don't use or need it. Break days like this elseif ($x < 0000 ) { echo ' '; } break; case "2": if ($x < 0600 ) { echo 'Great module! Love freebies…however… I have been struggling now for a day on getting the image to display.
1) I do have the image path correct;
2) I have meddled with the module style to see if the problem is not in the module code
3) I have the module title displaying, the DJ name and even the time – it also updates automatically when time changes
Alas, no picture of the DJ???
PLEASE PLEASE PLEASE help…
As a simple example, I am using Joomla! 1.7 with template Beez_20 as a standard template and my DJ Jock module is positioned in Position-6 of the template
What about Daylight Savings Time. how do I work around that?