monodistortion
Forum Replies Created
-
Forum: Plugins
In reply to: Plugin -The Events Calendar can I add images to event entries?Every theme is different but the normal list view is generated by the
index.php
file. The calendar list view is a category archive displayed with thelist.php
template file. Compare these two files and modify yourlist.php
file.Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] mini calendar?From what I’ve read they are concentrating on developing and supporting the pro/paid version of this plugin.
It also doesn’t have a sidebar calendar widget.
https://codecanyon.net/item/events-calendar-pro-wordpress-premium-plugin/faq/109301Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Getting StartedThe documentation for this plugin isn’t very clear what you need to do. There is an “Events List Widget” but there isn’t a grid style calendar widget.
This events plugin uses posts for events. It creates an new category for events and adds a new box in the Edit Post Administration Panel. All the extra data is stored as post meta data (the same as custom fields).
Look at the 4th and 5th screenshots here:
https://www.ads-software.com/extend/plugins/the-events-calendar/screenshots/Are you still working on this or are you going without sidebars now?
I was making this plugin work with 2010 too.Basically you have to match the
div
structure of your 2010 theme files. If you comparepage.php
from 2010 togridview.php
you’ll see that afterget_header()
there are two divs before the loop starts and then these divs are closed after the loop and beforeget_sidebar()
.Put those divs into the template files and it should work.
I just looked some more into this. What is your server setup (Linux, Windows, Mac, Apache version, PHP version)?
In the General Settings, what is your
WordPress address (URL)
andSite address (URL)
?Does this happen if you disable permalinks?
This is a deprecated security feature of php that shouldn’t be relied on but somewhere your settings are most likely wrong.
https://php.net/manual/en/features.safe-mode.phpYour problem sounds a lot like this one:
https://www.ads-software.com/support/topic/php-warning-require_once-failed-to-open-stream?replies=17#post-1208269They’re probably concentrating on the paid/pro version and support for the old free version is up to you/us.
https://codecanyon.net/item/events-calendar-pro-wordpress-premium-plugin/109301Post a link and I’ll look at it when I have time.
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Fatal ErrorWhat’s on line 795 of that file? Is it this?
$base = str_replace( trailingslashit( get_option( 'siteurl' ) ), '', $url );
If so, try replacing it with this:
$base = trailingslashit( str_replace( trailingslashit( get_option( 'home' ) ), '', $url ) );
Forum: Plugins
In reply to: [The Events Calendar] The Events Calendar, breaks my Page of Posts Template.Are you using the calendar on the same page or a different page?
Are you using the code in this block here?
https://codex.www.ads-software.com/FAQ_Layout_and_Design#How_to_display_posts_in_a_Page.3FI just did a quick test and it looks like it works fine.
This may not be related to the error you’re getting but I know that you need to make this change if your WordPress files aren’t installed in your root folder.
https://www.ads-software.com/support/topic/plugin-the-events-calendar-pretty-urls-do-not-work?replies=4#post-1842904This may or may not be the same bug but it came up in my search results. This was the solution I found:
https://www.ads-software.com/support/topic/plugin-the-events-calendar-override-eventscss?replies=2#post-1843267Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Override events.cssI just ran into this same bug in version Version 1.6.4 of the-events-calendar.
To get the
events.css
file to load from the correct location in the child theme folder likethemes/child_theme/events/events.css
you’ll need to change one line in the filethe-events-calendar.class.php
. This file will be overwritten when you upgrade the plugin so make a backup.Find the function
loadDomainStylesScripts
and change the line:$templateArray = explode( '/', TEMPLATEPATH );
to:
$templateArray = explode( '/', STYLESHEETPATH );
This fix works in child themes and normal non-child themes.
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Pretty URLs do not workI just ran into this bug. My WordPress is installed in a folder called
wp
but the site address is at the root of the site. This is pretty common and explained here:
https://codex.www.ads-software.com/Giving_WordPress_Its_Own_DirectoryI’m using Version 1.6.4 of the-events-calendar and this is the solution I found. It involves editing the
the-events-calendar.class.php
file so these changes will be overwritten if you upgrade the plugin. Make a backup before this.Find the function called
filterRewriteRules
and change the line:$base = str_replace( trailingslashit( get_option( 'siteurl' ) ), '', $url );
to:
$base = trailingslashit( str_replace( trailingslashit( get_option( 'home' ) ), '', $url ) );
(Note to other developers– using camelCase is not recommended.)
https://codex.www.ads-software.com/WordPress_Coding_Standards#Variables.2C_Functions.2C_File_Names.2C_and_OperatorsThis requires a change to the file
the-events-calendar.class.php
so any time the plugin is upgraded to a new version you’ll have to make the same edit.Near the beginning of the file find the line that says:
const CATEGORYNAME = 'Events';
and change that to whatever you want.
This should probably be put into the translation file.
This plugin has a lot of bugs and the documentation isn’t that great but the features that work seem good.
Try clicking on the button that says “view post” underneath the title when editing a post.
The easiest way would be to use the <!–more–> tag where you want the post to cut off.
If you want an automatically generated excerpt you’ll have to change one template file.
First you need to have a custom version of
list.php
in your template folder. Copy the file fromplugins/the-events-calendar/views/list.php
tothemes/your_theme/events/list.php
In this copy of the
list.php
file find the line that says:<?php the_content(); ?>
And replace it with:
<?php the_excerpt(); ?>
More details here:
https://codex.www.ads-software.com/Function_Reference/the_excerpt