Home ›› Plug-Ins ›› Jock Rotator for Joomla

Jock Rotator for Joomla

by Greg Rickaby on January 9, 2009

jock_rotatorDownload

Jock Rotator v1.5 (434)

Instructions

Step 1. Download and install into Joomla

Step 2. Using your favorite HTML editor, open “mod_jock.php”

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

Step 4. Save and Upload “mod_jock.php” into /modules/mod_jock/

Examples

http://newstalk1079.com

http://v935.com

Example Script

Change Log

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

Version 1.3January 9th, 2009

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

{ 1 trackback }

Why I left Joomla! (and you should too)
May 4, 2009 at 09:07

{ 45 comments… read them below or add one }

Doug February 21, 2010 at 21:17

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

Reply

Doug February 21, 2010 at 22:52

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

Reply

Kris February 13, 2010 at 16:01

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.

Reply

Greg Rickaby February 23, 2010 at 08:45

I have posted an example of a working script above under “Examples”. Hope this helps.

Reply

Alfie January 16, 2010 at 17:35

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

Reply

Greg Rickaby February 8, 2010 at 10:54

Alfie, I just released v1.5. See above to download.

Reply

Howick January 9, 2010 at 15:27

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.

Reply

Keith February 9, 2010 at 06:25

Hi Howick,

I would love a copy if you could email me 1 thank you (cllive@gmail.com)

Reply

Doug February 21, 2010 at 12:22

Howick
I too would greatly appreciate if you could send me a copy to sample from
(dougburgess@metalassaultradio.com)
Thanks in advance

Reply

Elwood March 6, 2010 at 02:52

Hi Howick,

can you please send me it too?

thanks,

regards

Reply

sinan November 3, 2009 at 00:51

great job Greg!

Reply

sinan November 2, 2009 at 18:51

great job Greg!

Reply

Steve August 23, 2009 at 17:19

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

Reply

Michel August 13, 2009 at 06:32

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…

Reply

Steve Woods August 12, 2009 at 06:45

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

Reply

Gary Spires August 8, 2009 at 04:45

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.

Reply

Greg Rickaby August 8, 2009 at 07:20

Gary – I will look into this.

Reply

Name August 8, 2009 at 07:43

many thanks :)

If needed I can send the file I have uploaded for you to look at.
I have checked as soon as I have disabled this module, the site functions properly again, weird.

Reply

Gary Spires August 9, 2009 at 10:25

The module shows as incompatible when I look in the modules section of the Extension Manager. I have Legacy support enabled so it should work.

Reply

Jason June 10, 2009 at 06:06

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

Reply

Hector June 7, 2009 at 09:39

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

Reply

Dustin Cook May 3, 2009 at 03:18

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

Reply

Andy May 2, 2009 at 14:52

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

Reply

Greg Rickaby May 2, 2009 at 15:26

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.

Reply

Greg Rickaby April 24, 2009 at 10:46

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
"; }

Reply

Chuck April 25, 2009 at 04:15

Parse error: syntax error, unexpected ‘:’

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

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

Reply

Greg Rickaby April 25, 2009 at 10:57

Try removing the colon and just use 530 and 645

Reply

Chuck April 24, 2009 at 14:57

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

Reply

andrethea April 15, 2009 at 15:51

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

Reply

Greg Rickaby April 20, 2009 at 21:20

Check the .css in mod_jock.php It appears it’s interfearing with your templates .a tags

Reply

Anonymous April 27, 2009 at 17:46

Thanks..that did the trick

Reply

Amy February 19, 2009 at 09:56

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

Reply

MARKY February 13, 2009 at 16:59

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

Reply

Greg Rickaby February 16, 2009 at 22:28

@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! :)

Reply

Adrian Badino January 22, 2009 at 16:02

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!!

Reply

John January 16, 2009 at 13:32

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 ) ?

Reply

Greg Rickaby January 17, 2009 at 11:34

John,

The script is using a ‘case statement’ which requires .php or .asp…let me know if you are still interested.

Reply

John January 17, 2009 at 12:04

definately, I’d love to use this either as a .php or in wordpress. I run a sight using wordpress and another with joomla.

Reply

Adrian Badino January 12, 2009 at 20:40

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

Reply

Greg Rickaby January 12, 2009 at 20:52

Adrian,

Thank you for your interest as well. The codes are located at this website: http://unicode.org/cldr/data/diff/supplemental/territory_containment_un_m_49.html

Scroll down to South America, and then you will see Argentina. When you locate Argentina find the city closest to you. For example: If Buenos Aries was closest the code would be:

date_default_timezone_set(‘America/Buenos_Aires’);

I hope this helps!!

Reply

Adrian Badino January 13, 2009 at 04:11

Thank you very much for your help, but where is “date_default_timezone_set? in mod_jock.php, mod_jock.xml, my template index?
sorry for my questions but I am interested that the module works perfectly, it is very interesting for several functions.
Thank you!!!

Reply

Greg Rickaby January 13, 2009 at 16:22

Download v1.4 and you’ll see it in mod_jock.php

Reply

Adrian Badino January 14, 2009 at 04:35

can see work properly at http://lacienfm.com “En el aire ahora”
Really thank you !!

amy January 12, 2009 at 11:54

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!

Reply

Greg Rickaby January 12, 2009 at 13:21

Amy,

Thank you for the compliment and great question!

The script runs based on the time of your web server. Is your web server using PHP5?

Reply

Leave a Comment

Previous post:

Next post: