Announcement

Collapse
No announcement yet.

Change Calendar link default from Single to Ranged event

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Answered] Change Calendar link default from Single to Ranged event

    FYI, If you are on vBulletin 4x and want to change the 'Add New Event' link so that it defaults to Ranged event from Single event, just edit one template:

    In Style Manager, under "Calendar Templates <<", edit the "CALENDAR" template.

    Find:
    Code:
    <div id="calendar_nav">
      <a href="calendar.php?{vb:raw session.sessionurl}do=add&amp;type=single&amp;c={vb:raw calendarid}" class="textcontrol" id="neweventbutton">{vb:rawphrase add_new_event}</a>
    And replace "single" with "range"

    So, it should look like this:
    Code:
    <div id="calendar_nav">
      <a href="calendar.php?{vb:raw session.sessionurl}do=add&amp;type=range&amp;c={vb:raw calendarid}" class="textcontrol" id="neweventbutton">{vb:rawphrase add_new_event}</a>
    That's it. This will change your link so that it will open with the ranged event tab as the default instead of the single event tab.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X