Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter John

    (@vaughajj)

    I ended up editing the day.php file to include a db query to get a list of the times. Not the most efficient way to do things, but it works.

    class ec3_Day
    {
      var $is_event =False;
      var $titles   =array();
      function ec3_Day(){}
    
      function add_post($title,$date,$is_event,$id)
      {
        $safe_title=strip_tags($title);
        $safe_title=
          str_replace(
            array(',','@'),
            ' ',
            htmlspecialchars(
              stripslashes($safe_title),
              ENT_QUOTES,
              get_option('blog_charset')
            )
          );
        if($is_event)
        {
    
    	  global $ec3, $wpdb;
    
    	  $sql=
    		"SELECT
    		   post_id,
    		   start
    		 FROM $ec3->schedule
    		 WHERE post_id='$id'";
    	  $sql.=' ORDER BY start ASC';
    	  $times = $wpdb->get_results($sql);
    	  $first_round = 1;
    	  foreach ($times as $time){
    	  	//is the date of the showing the same as this date
    		if(mysql2date("Ymd",$date) == mysql2date("Ymd",$time->start)){
    			$time_pretty = mysql2date("g:i a", $time->start);
    			if($first_round){
    				$time_string = $time_pretty;
    				$first_round = 0;
    			}else{
    				$time_string .= " " . $time_pretty;
    			}
    	  	}
    	  }
    
    	  $safe_title.=' @ '.$time_string;
    
          $this->is_event=True;
        }
        $this->titles[]=$safe_title;
      }
      function get_titles()
      {
        return implode(', ',$this->titles);
      }
    }

    Do you know when this plugin might be up and running again for 3.1? I’m getting the same error message.

    Fatal error: Cannot redeclare class DropboxException in /XXX/wp-content/plugins/dropbox-upload-form/inc/dropbox.php on line 934

    Except in my case the file is not uploading.

    John

Viewing 2 replies - 1 through 2 (of 2 total)