Help modifying calendar

Started by acoustika, October 22, 2005, 05:47:38 PM

Previous topic - Next topic

acoustika

Hey there, I'm trying to modify Post.template.php so that my calendar will only post to a specific board.

I found this code and think I could hardcode a specific board number to be the only one users can post events in.

<tr>
                        <td align="right"><b>', $txt['calendar13'], '</b></td>
                        <td class="smalltext">
                           <select name="board">';
      
         foreach ($context['event']['boards'] as $board)
         
         
            echo '
                              <option value="', $board['id'], '"', $board['id'] == $context['event']['board'] ? ' selected="selected"' : '', '>', $board['cat']['name'], ' - ', $board['prefix'], $board['name'], '</option>';

         echo '
                           </select>
                        </td>
                     </tr>';


Anyone who can see how this should be done????

JayBachatero

It's easier than that.  ;)

For 1.1

Admin > Calendar > Default board to post events in:

For 1.0.x

Admin > Features and Options > expand calendar and you will see the option
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

acoustika

Yes I have found that, but even when you set it to a default board, members can still choose another board to post in??

Jack.R.Abbit™


Advertisement: