It needs only some little changes in the option.php. “eregi” doesn’t work with php 7 and must be replaced with preg_match. In my case it’s work fine:
<?php
/*
Copyright (c) 2005-2008, Alex Tingle. $Revision: 281 $
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/** Singleton class. Manages EC3 options. Global options that are guaranteed to
* exist (start of week, siteurl, home) are not managed by this class. */
class ec3_Options
{
// Some global variables.
var $version='3.1.4';
var $myfiles='';
var $call_count=0;
var $schedule='ec3_schedule'; // table name
// Code differences required by different versions of WordPress.
// Defaults represent the latest version of WP.
/** The name of the column wp_posts.user_nicename. */
var $wp_user_nicename='user_nicename';
/** The root of the XHTML id of the category checkboxes (edit page). */
var $wp_in_category='in-category-';
/** Is DBX available? */
var $wp_have_dbx=true;
/** Do we have categories? (WP<2.3) */
var $wp_have_categories=false;
// Settings used to flags activity between posts_where and other filters:
var $is_listing=false;
var $is_date_range=false;
var $is_today=false;
var $days=false;
var $range_from=false;
var $range_before=false;
var $join_ec3_sch=false;
var $join_only_active_events=false;
var $order_by_start=false;
/** May be set TRUE by a template before the call to wp_head().
* Turns off CSS in header. */
var $nocss=false;
/** Which category is used for events? DEFAULT=0 */
var $event_category;
/** Show only events in calendar. DEFAULT=false */
var $show_only_events;
/** Number to months displayed by get_calendar(). DEFAULT=1 */
var $num_months;
/** Should day names be abbreviated to 1 or 3 letters? DEFAULT=1 */
var $day_length;
/** Hide the 'EC' logo on calendar displays? DEFAULT=0 */
var $hide_logo;
/** Display event box within post. DEFAULT=0 */
var $hide_event_box;
/** Use advanced post behaviour? DEFAULT=0 */
var $advanced;
/** Position navigation links or hide them. DEFAULT=0 */
var $navigation;
/** Disable popups? DEFAULT=0 */
var $disable_popups;
/** Local timezone. */
var $tz;
function ec3_Options()
{
global $table_prefix,$wp_version;
$mydir=
preg_replace('%^.*[/\\\\]([^/\\\\]+)[/\\\\]options.php$%','$1',__FILE__);
load_plugin_textdomain('ec3','wp-content/plugins/'.$mydir.'/gettext');
$this->myfiles=get_option('siteurl').'/wp-content/plugins/'.$mydir;
$this->schedule=$table_prefix.$this->schedule; // table name
// wp_version < 2.0
if(preg_match('~^1[.]~',$wp_version))
{
$this->wp_user_nicename='user_nickname';
$this->wp_have_dbx=false;
}
// wp_version < 2.1
if(preg_match('~^(1[.]|2[.]0)~',$wp_version))
{
$this->wp_in_category='category-';
}
// wp_version < 2.3
if(preg_match('~^(1[.]|2[.][012])~',$wp_version))
{
$this->wp_have_categories=true;
}
$this->read_event_category();
$this->read_show_only_events();
$this->read_num_months();
$this->read_day_length();
$this->read_hide_logo();
$this->read_hide_event_box();
$this->read_advanced();
$this->read_navigation();
$this->read_disable_popups();
$this->read_tz();
}
function reset_query()
{
$this->is_listing=false;
$this->is_date_range=false;
$this->is_today=false;
$this->days=false;
$this->range_from=false;
$this->range_before=false;
$this->join_ec3_sch=false;
$this->join_only_active_events=false;
$this->order_by_start=false;
}
// READ functions
function read_event_category()
{
$this->event_category=intval( get_option('ec3_event_category') );
}
function read_show_only_events()
{
$this->show_only_events=intval(get_option('ec3_show_only_events'));
}
function read_num_months()
{
$this->num_months =abs(intval(get_option('ec3_num_months')));
if(!$this->num_months)
$this->num_months=1;
}
function read_day_length()
{
$this->day_length=intval(get_option('ec3_day_length'));
if($this->day_length==0)
$this->day_length=1;
}
function read_hide_logo()
{
$this->hide_logo=intval(get_option('ec3_hide_logo'));
}
function read_hide_event_box()
{
$this->hide_event_box=intval(get_option('ec3_hide_event_box'));
}
function read_advanced()
{
$this->advanced=intval(get_option('ec3_advanced'));
// Sometimes we want to play around with the value of advanced.
// 'advanced_setting' ALWAYS holds the REAL value.
$this->advanced_setting=$this->advanced;
}
function read_navigation()
{
$this->navigation=intval(get_option('ec3_navigation'));
}
function read_disable_popups()
{
$this->disable_popups=intval(get_option('ec3_disable_popups'));
}
function read_tz()
{
$this->tz = get_option('ec3_tz');
if(empty($this->tz) || $this->tz=='wordpress')
{
// Use WordPress default (doesn't understand daylight saving time).
$gmt_offset=-intval(get_option('gmt_offset'));
$this->tz='UTC';
if($gmt_offset>0)
$this->tz.='+'.$gmt_offset;
elseif($gmt_offset<0)
$this->tz.=$gmt_offset;
}
}
// SET functions
function set_event_category($val)
{
if($this->event_category!=$val)
{
update_option('ec3_event_category',$val);
$this->read_event_category();
}
}
function set_show_only_events($val)
{
if($this->show_only_events!=$val)
{
update_option('ec3_show_only_events',$val);
$this->read_show_only_events();
}
}
function set_num_months($val)
{
if($this->num_months!=$val)
{
update_option('ec3_num_months',$val);
$this->read_num_months();
}
}
function set_day_length($val)
{
if($this->day_length!=$val)
{
update_option('ec3_day_length',$val);
$this->read_day_length();
}
}
function set_hide_logo($val)
{
if($this->hide_logo!=$val)
{
update_option('ec3_hide_logo',$val);
$this->read_hide_logo();
}
}
function set_hide_event_box($val)
{
if($this->hide_event_box!=$val)
{
update_option('ec3_hide_event_box',$val);
$this->read_hide_event_box();
}
}
function set_advanced($val)
{
if($this->advanced_setting!=$val)
{
update_option('ec3_advanced',$val);
}
// read_advanced() does some special magic, so we always call it.
$this->read_advanced();
}
function set_navigation($val)
{
if($this->navigation!=$val)
{
update_option('ec3_navigation',$val);
$this->read_navigation();
}
}
function set_disable_popups($val)
{
if($this->disable_popups!=$val)
{
update_option('ec3_disable_popups',$val);
$this->read_disable_popups();
}
}
function set_tz($val)
{
if(!preg_match('/(WordPress|[_a-zA-Z\/]+)/',$val))
return;
if($this->tz!=$val)
{
update_option('ec3_tz',$val);
$this->read_tz();
}
}
} // end class ec3_Options
/** Singleton instance of ec3_Options. */
$ec3=new ec3_Options();
?>
]]>
Has anyone updated/rewrite this plugin to be compatible with PHP 7 or higher?
]]>In case you are using PHP5.4 and EC3 3.1.4 you might have an issue with some of the functions it has.
PHP 5.4 (think in 5.3 too) removed the usage of passing arguments to functions by reference.
EC3 has at least 6 functions that make use of these and need to be modified;
ec3_fitler_the_posts_where(),
ec3_filter_posts_join(),
ec3_filter_posts_orderby(),
ec3_filter_posts_groupby,
ec3_filter_fields(),
ec3_filter_the_content()
Just remove the ‘&’ reference notation and the plugin will continue to work correctly.
Oh, now that I look the 3.1.5 release fixes the issue of PHP 5.3. Leaving this here incase someone might find this post useful.
https://www.ads-software.com/plugins/event-calendar-3-for-php-53/
]]>I’m using your plugin and we want to know the following;
Is it possible to add an event with more than 1 start/end date (recurring)?
For example; A course is given every Tuesday, and there’s only 1 event for this course (recurring).
It would kill us if we’ve to create 52 of the same events, and we would like to have 1 event with all the dates in it.
Thanks,
Vincent
https://www.ads-software.com/plugins/event-calendar-3-for-php-53/
]]>Hello,
I am trying to set up an event list page that has only the title and the date and when you click on the title of the event to show the whole text.
Is it possible to do so?
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hello,
I updated to the new eventcalendar. But now I can’t select/see the widget for upcoming events, only calendar widget. What do I do wrong
see https://img16.imageshack.us/img16/7304/700f55762993430294cc8b4.png
Thanks in advance
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>How do I delete an event? There doesn’t seem to be a way in the Event Calendar admin. I tried to delete the post itself, it didn’t help.
Thanks,
KoffeKat
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>When I use this plugin in default theme then it is working fine but when I am using this plugin in my own theme then javascript is not working at all. <a href="ec3.go_prev()">? Dec</a>
is getting converted in <a href="https://localhost/wordpress_1/?m=201212&cat=2">? Dec</a>
autmatically
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Is there a way to export and import calendar data from one database to another?
Thanks,
-Cat
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Good evening, I installed it on the website calendar event (Event Calendar 3 for PHP 5.3), found that the only manages the calendar in the articles-posts.
I have some “need”
1 – makes the past the scheduled event, the calendar automatically bait ..
2 – Remove Article entering the date, which is on by default.
It can be done ..
thanks in advance
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>The calendar works only for the current month, but when I click next month the icon loads always…ad I can’t view the events. Help!!!
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Are there any “Event Calendar 3 for PHP 5.3” a possible extension that enables you to log participants to an event?
For example the last minute cycle on https://last-minute.rennrad-news.de/.
Thank you in advance.
Regards,
Stefan Schneider
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hi,
I used to feed my Events via the iCal link into a Google Calendar. The Link used to be https://mysi.te/feed/ical. Now its gone.
Since the Documentation is gone, I feel kind of helpless.
So – where is the iCal link gone?
TIA
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>The first row always shows Sunday as the first day of the month.
https://www.rogerscountyelectionboard.org/
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hello, great tool! i have some troubles designing the plugin.
the upcoming events are supposed to appear in my side bar,
but i want to adjust this design.
there we go:
https://www.pic-upload.de/view-16216859/sidebar-calendar.jpg.html
i dont want all bullet points (both before “events” and the event title”) and i want the date to appear a little more to move to the right.
where can i adjust this?
thx for you help in advance!
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>I’ve installed the latest version and the widget calendar works fine.
However, I’ve inserted the calendar into a page using <?php ec3_get_calendar(); ?>.
It looks great, but the navigation does not work.
I’ve tried a lot of different things and still cannot get it to work. Basically, it calls the script but it does nothing.
Anyone have any ideas?
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>The Full Documentation link on your Description page (https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/) does not work:
Full Documentation >> https://wpcal.firetree.net/
Get “Not found” error.
]]>I just migrated to new servers, requiring I upgrade Event Calendar to this version, but I see that the option to “Show Times as Icons” is not in this version, which is odd, as I thought that was in the originals’. I do see that I was running a Version 3.2.beta2 before.
Just curious if anyone knows about this, or has modified the code to display as icons.
Thanks,
Michael
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Will someone help me since i have been trying to figure out this for many hours without any success.
How do i make change the language for the names of the month to another language instead the the default ENG.
in the folder gettext , i have
event-calendar-3-for-php-53/gettext/ec3-de_DE.mo
but in the admin panel in the event calender settings, there isn’t any option like select a different language or so …
Any help? Do i need to open a file and edit or what?
Thank you for helping in advance.
Best.
K
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>I want to display events that are happening in two different cities. The 2 different cities have different categories and I need to display 2 different calendars. Does anybody know how to do this?
Thanks
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>I need to add this code to the plugin because I want to show in one column the calendar and in the next column Upcoming events
Bu I don’t know where should I add this code
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hello,
I am trying to get the widget to show 10 events.
However I cannot get the widget to show more then 5 events.
I tried to change the following settings/files:
k2/ec3_sidebar_module.php
around line 74:
array('limit' => 10)
template-functions.php
around line 373:
$limit_numposts='LIMIT 10';
around line 382:
$limit_numposts='LIMIT 10';
widget.php
around line 153:
value="<?php echo $limit? $limit: '10'; ?>"
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Fatal error: Cannot redeclare ec3_widget_title() (previously declared in /home/user/public_html/domain.com/wp-content/plugins/event-calendar-3-for-php-53/widget.php:37) in /home/user/public_html/domain.com/wp-content/plugins/event-calendar-3-for-php-53/widget.php on line 37
I cannot figure out why when I activate the Widget plugin to include the Calendar in my sidebar, I get this error message. Interesting that it is “redeclaring” line 37 on line 37. I am using Event Calendar 3 for PHP 5.3 version 3.1.5 in WordPress 3.4.1.
Is anybody else experiencing this problem?
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hello – I am testing this plugin on a site and was wondering if/how I could change the url of the day view pages to something “cleaner.”
Right now the day view urls look like:
https://www.mysite.com/?m=20120728&cat=40
where category 40 is my Events category.
I’d much rather this look something like:
https://www.mysite.com/category/events/07-28-2012
Easily doable?
Thanks!
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>hi,
Popup event editor is not working in post section. Nothing displays when i click on date picker.
Anyone help.
Thanks in advance.
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>Hi there,
the calendar widget with upcoming events takes awfully much time to update if I skip the month. That was the same with the older version. The Update to Event Calendar 3 didn’t help much. Has anyone any suggestions how to make it faster again? I already deleted some old data from the event calendar table, didn’t help. I have no more ideas what to do. The blog is found on https://www.flutepage.de/blog. Many thanks for any hint….
Claudia
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>The Event Calendar 3 is showing the events I create on the calendar, but is listing them by when they were CREATED.
This is obviously some mistake, as there could be no conceivable reason why someone would want to know when an event was first posted, rather than when the actual event was taking place.
I dread hacking this code, which is organized in a way unfamiliar to me. I have tried reinstalling to no avail.
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>NEVERMIND I”M AN IDIOT. It’s a plugin conflict that I just didn’t notice before going live.
I just moved my site up from a subdirectory to the main directory and now all the calendar links are broken.
They say something like this: https://www.mydomain.org/?m=20120621&cat=17
But they just redirect to the homepage.
This plugin is the only place where I am experiencing problems since the move. I’ve tried resetting permalinks and reinstalling the plugin. No luck.
Anyone have any ideas?
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>I’ve got the current release of EC3-for-php53 running in WP 3.3.2 in PHP 5.2 (upgrading from the old EC3 running in WP2.6 on PHP 4.x).
I get the following php notices when I set WP_DEBUG to true in my wp-config.php file.
Notice: Undefined index: ec3_before in /etcl/www/wordpress/wp-content/plugins/event-calendar-3-for-php-53/eventcalendar3.php on line 993
Notice: Undefined variable: a in /etcl/www/wordpress/wp-content/plugins/event-calendar-3-for-php-53/eventcalendar3.php on line 994
Those are being thrown by the last two lines of this block from eventcalendar3.php
if( !empty($wp_query->query_vars['ec3_after']) )
$a=$wp_query->query_vars['ec3_after'];
else if( !empty($wp_query->query_vars['ec3_from']) )
$a=$wp_query->query_vars['ec3_from'];
$b=$wp_query->query_vars['ec3_before'];
if( $a=='today' )
I’ve been unable to figure out how to ensure those entries in the query_vars array have sensible values. Has anyone else had this behaviour? Suggest a fix to this apparent bug?
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>If I set WP_DEBUG to true in my wp-config.php file, I got the following notice from php when using Events Calendar 3 for PHP:
Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available
In wp-content/plugins/event-calendar-3-for-php-53.php, there is this function call:
load_plugin_textdomain('ec3','wp-content/plugins/'.$mydir.'/gettext');
That 2-argument signature is deprecated. There should be three arguments, the second of which is “false, “. Like this :
load_plugin_textdomain('ec3',false,'wp-content/plugins/'.$mydir.'/gettext');
https://www.ads-software.com/extend/plugins/event-calendar-3-for-php-53/
]]>