WordPress Plugin – DJ On-Air Widget
Description
The DJ On-Air Widget adds a “Dj Shifts” field to user profiles that allows them to be scheduled for on-air shifts on an hourly basis and provides a sidebar widget that displays any user(s) scheduled for the current hour.
Download
WordPress Repo: http://wordpress.org/extend/plugins/dj-on-air-widget/
Direct Downloads:
Version 0.2.6 – 11/25/2011 ** bug fix**
Version 0.2.5 – 11/23/2011
Version 0.2.4 – 10/31/2011
Version 0.2.3 – 10/26/2011
Version 0.2.2 – 10/17/2011
Version 0.2.1 – 10/5/2011 **bug fix**
Version 0.2 – 9/19/2011
Version 0.1 – 9/2/2011
Screenshots
Contributors: kionae
Tags: dj, music, radio, scheduling
Donate link: http://nlb-creations.com/donate/
Requires at least: 3.2.0
Tested up to: 3.2.1
Stable tag: trunk
Installation
- Upload plugin .zip file to the
/wp-content/plugins/
directory and unzip. - Activate the plugin through the ‘Plugins’ menu in WordPress
- Under Settings > DJ On-Air, set your shift length and role access for the plugin.
- When editing users, you will now find a “DJ shifts” field at the bottom of the form. Use this to set up your on-air schedule for any user.
- Add the DJ On-Air widget to your site’s sidebar and set it’s options.
Frequently Asked Questions
Can I display a full schedule of my DJs?
Yes, as of version 0.2.5. Use the shortcode [dj-schedule] in any page or post. The name of the default DJ can be set on the plugin’s options page under settings, and styles for the schedule output can be changed in dj-on-air-wdiget/styles/djonair.css.
Can I change the length of a shift?
As of version 0.2.3, yes. Under Settings > DJ On-Air, you can select hour, half-hour, or 15 minute shifts.
How do I use the widget in my template or individual posts?
The widget can be embedded into posts usings the following shortcode:
[dj-widget title="Current DJ On-Air" show_avatar="1" show_link="1" default_name="Some DJ"]
title = The title that will appear above the name(s) of the current DJ(s) – (optional)
show_avatar = Whether or not to display avatars, 1 for yes, 0 for no (optional – default is 0)
show_link = Whether or not to link to profile page, 1 for yes, 0 for no (optional – default is 0)
default_name = The name or text to display if no DJ is currently scheduled
To use it in a template file include the following PHP code:
echo do_shortcode('[dj-widget title="Current DJ On-Air" show_avatar="1" show_link="1" default_name="Some DJ"]');
or
$args = array("title" => "Current DJ On-Air", "show_avatar" => 1, "show_link" => 1, "default_name" => "Some DJ");
echo dj_show_widget($args);
Can I set it so that only certain roles can add schedules to user accounts? I don’t want Subscribers to start adding themselves to the widget.
Yes, as of version 0.2. The options page is under the Settings tab.
I don’t like the way the sidebar widget is styled. Can I change it?
Yes. Just edit the /dj-on-air/styles/djonair.css file and change whatever you want.
How do I change the DJ’s avatar?
It’s the same avatar that’s assigned to the user’s account…. so you would need to change their Gravatar.
Can I have more than one DJ on air during the same hour?
Yes. If two users are scheduled for the same hour on the same day, they will both show up in the widget.
Changelog
0.2.6
- Bug fix in the dj-schedule shortcode function.
0.2.5
- Added shortcode to output a full schedule on any page or post.
0.2.4
- Fixed a conflict DJ On-Air Widget had another plugin
- Fixed the admin menu in WordPress 3.3
0.2.3
- Added the ability to change the length of shifts
0.2.2
- Added shortcode so that the widget can be used outside of the sidebar
- Schedules are now based on the timezone set in WordPress rather than servertime
0.2.1
- Fixed a bug that was causing problems with schedules before 10am
0.2
- Added the ability to limit addition/removal of DJ schedules by role.
0.1
- Initial release
Upgrade Notice
- 0.2.6
- Bug fix in the dj-schedule shortcode function.
- 0.2.5
- Added shortcode to output a full schedule on any page or post.
- 0.2.4
- Fixed a conflict DJ On-Air Widget had another plugin
Fixed the admin menu in WordPress 3.3
- 0.2.3
- Added the ability to change the length of shifts
- 0.2.2
- Added shortcode so that the widget can be used outside of the sidebar
Schedules are now based on the timezone set in WordPress rather than servertime
- 0.2.1
- Fixed a bug that was causing problems with schedules before 10am
- 0.1
- Initial release
After setting up my dj times on air anything prior to 9am comes up with my standard dj back to back music and not the dj am i missing something
John
Bay Trust Radio
Hospital Radio for Morecambe Bay
Thanks for the heads up. That bug should be fixed in version 0.2.1.
i was wondering if i could get this to be put in the template so it can be in the header.php and not as a widget.
Thanks
Sure, I’ll add that to my list of updates.
I love the plugin, however I found a single (simple) issue: If there is a time difference in the server vs. the local time, there is no option to add a time difference or timezone for the programming…
I think it’s a good thing to add an option to have an option to compensate for a time-difference in the servertime vs. localtime.
Good point. I’m so used to running things on in-house servers I hadn’t considered that. It shouldn’t be too hard to tie it into the timezone set for the site rather than server time.
Heck yeah this is exactly what I nedeed.
Hi, I can’t seem to get anything displayed except for the Widget title.
I installed the plugin and updated to 0.2.4 , created user’s profile and used “add shift”for our hosts schedule and double checked that the settings were at hourly, added the widget to the sidebar and enabled the users avatars. Still nothing pops up under the displayed title. I tried to use the short code outside of the title but it only displays the generic code, doesn’t pull the info from the set times. I will probably re-install it to see if it makes a difference. Is there some sort of connection between the users role in the settings section? Any help would be nice, thanks
Check your site’s Timezone settings. The plugin sets the schedule based on the site’s timezone.
I’m not quite sure how to say this; you made it etxeremly easy for me!
Hey there. First – tnakhs for this widget. It’s awesome. I tried the shortcode of [dj-schedule] but I get the error:Warning: Invalid argument supplied for foreach() in /home/****/public_html/***/wp-content/plugins/dj-on-air-widget/dj-on-air.php on line 135Line 135 shows:foreach($shifts as $shift) {
Hey there. First – thanks for this widget. It’s awesome.
I tried the shortcode of [dj-schedule] but I get the error:
Warning: Invalid argument supplied for foreach() in /home/****/public_html/***/wp-content/plugins/dj-on-air-widget/dj-on-air.php on line 135
Line 135 shows:
foreach($shifts as $shift) {
Thanks for the bug report. Should be fixed in the newest release. 🙂
Hey, that’s a celevr way of thinking about it.
Good job mikang it appear easy.
Hi, do you have to have a playlist with the widget? Is there a way to remove it?
This is a great plugin, it saves me a lot of work, however the website I am working on is a regular station with some news shows, in that case they dont broadcast music, so is there a way to turn the playlist off ?
thanks
hello there,
please help me, i want to add the songs and audio streaming into it. how do i use it?
please help
regards
That’s really not the purpose of this plugin. It’s only intended to display who is on air based on the schedules you set.
hello Nikki,
great plugin, i have questions.
1. how to show djs Name in Widget sidebar, widget only show avatar.
2. if two djs on-air together how to show both avatar of djs?
thanks
I’ve an established ‘Show Page’ structure on my site, but I’m keen to use your plugin – is it possible for me to redirect the show page links to my existing pages.
Alternatively, is it possible to add a sidebar to the blogs and I could use it, at present if I take Brunch as an example it’s showpage is existing page which I’m happy with, I could copy and paste to the automatically generated blog, but it’s using full width new blog page which doesn’t fit right for the style of our new site (apologies I couldn’t see how to do it myself).
Thanks for a great plugin and any help you can provide.
Hey there!
New to all this, I use WordPress v4.0.
Whenever I try to install the plugin, I get this error message:
“Fatal error: Cannot redeclare dj_get_current() (previously declared in C:\Domains\mdantsanefm895.co.za\wwwroot\wp-content\plugins\radio-station\includes\support_functions.php:108) in C:\Domains\mdantsanefm895.co.za\wwwroot\wp-content\plugins\dj-on-air-widget\dj-on-air.php on line 239”
Csn you kindly assist? 🙁
It looks like you are attempting to install it alongside the Radio Station plugin. The two are not compatible, because the DJ On-Air Widget plugin is actually built into Radio Station (and uses a lot of the same code and function names).
So if you’re using Radio Station, you already have all the functionality this plugin provides, and don’t need to install it.
Hello. How can i display all times in 24 Hours and all day’s in Icelandic?