How would I put the schedule in my menu?

Comments

drewish’s picture

Status: Active » Fixed

If you've enabled the station_schedule module, it should be in your menu under station/schedule. if you enable Drupal's menu module it will let you move the menu item to a different location.

qforq’s picture

For some reason I get this error when trying to view my schedule:

* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.

Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?

Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)

qforq’s picture

Status: Fixed » Active

For some reason I get this error when trying to view my schedule:

* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.

Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?

Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)

qforq’s picture

Sorry for the double post :O

I had another question, is there a way to make the distance between each tab in the schedule smaller? Right now I have my theme set to fixed width but the schedule is bleeding into my right menu. Can I fix this?

mattrock’s picture

I also get a completely blank page at url /station. [http://wsum.net/station/]

drewish’s picture

The blank page was due to a change in the way the views module generates menus. It was breaking the code for the /station page. I've committed a fix for that.

qforq, adjusting the width between the tabs is a theming issue. I can't really help with that.

drewish’s picture

Status: Active » Fixed

the error: * warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975. seems like it's a problem with the archive links. are you using the archive module? if not disable it and it should remove the errors.

mattrock’s picture

This still didn't fix the /station page. I have updated the module files and have verified that views.defaults is @ 1.4.2.2. Do I need to refresh the views somehow?

qforq’s picture

Status: Fixed » Active

Okay....well since Station is completely blank is there some way that I can not display it at all?

And I'm sorry man, but I have a hard time believing that the Schedule's tab spacing is determined in my theme. There isn't anything in your code that sets the tab spacing to 5px or something? It wastes a ton of space for no reason at all:
http://www.uberguilds.org/radio/station/schedule

Thanks

mattrock’s picture

The tab spacing is definitely not in the station module or in your theme.  The tab style sheeting comes from system.css I believe.  If you are using firefox, download the firebug extension and use the inspector to highlight the tabs.  Because of how Drupal loads the .css files, all you will need to do is to override the css element in your theme since your .css files load after the system files.  If you want to disable the system stylesheets all together, check this thread.

drewish’s picture

Status: Active » Fixed

mattrock, yeah i only updated the default views. you might need to goto /admin/build/views to have it refresh it's cache. though if you changed the default views you'll probably have to make the changes by hand.

qforq, i'm pretty familiar with the station module's code so i can say with some certainty that the tabs are formatted by your theme. if you need help with that go ask about theming in the forums.
also i already described how you can use the /admin/build/menu form to modify your menus.

please try and read my replies carefully. i've got a finite amount of drupal time in the day and re-answering support questions isn't the way i like spending it.

mattrock’s picture

Status: Fixed » Active

Also, with respect to hiding the station page, all you need to do is to disable the "station" menu item in the admin/build/menu configuration. This will have the side effect, however, of bringing all of the sub-menu items to the top level. You can always override any default menu items which modules create by disabling and building a new item from scratch.

drewish’s picture

Status: Active » Fixed

it looks like we cross posted.

qforq’s picture

Alright thanks guys, I appreciate the time and patience helping me get used to this module(and I'm learning drupal at the same time).

I have one last question, is there a way to specify the time zone that your schedule is in?

drewish’s picture

qford, it uses the site's default time zone (there's a setting for that under admin/settings/date-time). at this point the module doesn't support multiple. there was some discussion of it on this issue: http://drupal.org/node/90860

qforq’s picture

Ack I have a new problem all of a sudden.

When trying to put in a new program I get this:

"Validation error, please try again. If this error persists, please contact the site administrator."

Is there a reason that this is occuring?

qforq’s picture

Never mind, fixed it !

Thanks Drewish for your work on this project. I appreciate the work that you're doing for sure, it's definitely made things a lot easier on me.

Anonymous’s picture

Status: Fixed » Closed (fixed)