• Resolved leinster

    (@leinster)


    Event link added but won’t display.

    Tried to apply solution from Brunos post

    Don’t know where to place this code?

    if ($event->event_link != '') { $linky = stripslashes($event->event_link); }
    else { $linky = '#'; }
    $output = '<span class="calnk"><a href="'.$linky.'">'
    .$day_of_week.'<span>';

    You also have to comment the line 2907.

    The calendar code…

    // Used to create a hover will all a day's events in for minical
    function minical_draw_events($events,$day_of_week = '')
    {
      // We need to sort arrays of objects by time
      usort($events, "time_cmp");
      // Only show anything if there are events
      $output = '';
      if (count($events)) {
        // Setup the wrapper
        $output = '<span class="calnk"><a href="#" style="background-color:#F6F79B;">'.$day_of_week.'<span>';
        // Now process the events
        foreach($events as $event)
          {
    	if ($event->event_time == '00:00:00') { $the_time = 'all day'; } else { $the_time = 'at '.date(get_option('time_format'), strtotime(stripslashes($event->event_time))); }
    	$output .= '* <strong>'.$event->event_title.'</strong> '.$the_time.'<br />';
          }
        // The tail
        $output .= '</span></a></span>';
      } else {
        $output .= $day_of_week;
      }
      return $output;
    }
    
    function minical($cat_list = '') {
    
      global $wpdb;
    
      // Deal with the week not starting on a monday
      if (get_option('start_of_week') == 0)
        {
          $name_days = array(1=>__('Su','calendar'),__('Mo','calendar'),__('Tu','calendar'),__('We','calendar'),__('Th','calendar'),__('Fr','calendar'),__('Sa','calendar'));
        }
      // Choose Monday if anything other than Sunday is set
      else
        {
          $name_days = array(1=>__('Mo','calendar'),__('Tu','calendar'),__('We','calendar'),__('Th','calendar'),__('Fr','calendar'),__('Sa','calendar'),__('Su','calendar'));
        }
    
      // Carry on with the script
      $name_months = array(1=>__('January','calendar'),__('February','calendar'),__('March','calendar'),__('April','calendar'),__('May','calendar'),__('June','calendar'),__('July','\
    calendar'),__('August','calendar'),__('September','calendar'),__('October','calendar'),__('November','calendar'),__('December','calendar'));
    
      // If we don't pass arguments we want a calendar that is relevant to today
      if (empty($_GET['month']) || empty($_GET['yr']))
        {
          $c_year = date("Y",ctwo());
          $c_month = date("m",ctwo());
          $c_day = date("d",ctwo());
        }

    https://www.ads-software.com/plugins/calendar/

Viewing 1 replies (of 1 total)
  • Plugin Author Kieran O’Shea

    (@kieranoshea)

    If you’re talking about the sidebar calendar then no, links won’t work – only on the full-page version.

    While there are code alterations out there that add this feature I can’t vouch for them or support them – please get in touch directly with the author of these changes if you need help.

Viewing 1 replies (of 1 total)
  • The topic ‘Event Link not displaying’ is closed to new replies.