![]() |
"The event calendar"
Hello... I am using "the event calendar" (http://wordpress.org/extend/plugins/...ents-calendar/) in my blog.
The problem is that when looking at individual posts, the right sidebar disappears My blog is http:www.groshgrup.net, if you want to see what I mean! I looked for help on the calendar forum, and found a post about how to make atahualpa work with the events calendar... ( http://wordpress.org/support/topic/357338?replies=33 ). But the solution offered did not work for me. Any help? Thanks in anticipation! |
What version of Atahualpa and WP?
the link points at a landing page with no calander, please point at a page showing the calander and another showing it missing |
Hello...
the layout of a "normal page" (not an event page) is: http://www.groshgrup.net/blog/2010/04/mah/ the layout of a page linked to an event (with right sidebar missing) is: http://www.groshgrup.net/blog/2010/04/ritorno-ai-bagni/ I am using the latest versions of wordpress and atahualpa wordpress 2.9.2 atahualpa 3.4.6 Thanks Silva |
what do you have set at ato->Style & configure SIDEBARS->RIGHT sidebar: Display on: and 'RIGHT sidebar: Don't display on Pages:'?
|
Hello...
* "right sidebar: display on": all options are ticked. * "right sidebar: don't display on": is blank |
It's the plugin, it's ignoring the sidebars. I did a search and came up with this thread discribing the problem (http://wordpress.org/support/topic/357338) and there is a get around
Quote:
HTML Code:
include (TEMPLATEPATH.'/header.php'); ?> HTML Code:
include (TEMPLATEPATH.'/functions/bfa_get_options.php'); HTML Code:
include (TEMPLATEPATH.'/footer.php'); HTML Code:
get_footer(); |
Hello...
I had tried it (I had put a reference to this post in my message...I should have highlighted it better, sorry!) but I am getting an error: Parse error: syntax error, unexpected '<' in /web/htdocs/MY DOMAIN NAME/home/blog/wp-content/themes/atahualpa/events/single.php |
(I will try again, just in case, and I will let you know how it goes)
and, btw, thanks for the fantastic support so far |
Replace the lines EXACTLY as I show. You probably deleted something you needed
|
I replaced the text again, and I still have the error
"Parse error: syntax error, unexpected '>' in /web/htdocs/www.groshgrup.net/home/blog/wp-content/themes/atahualpa/events/single.php on line 4" This is the beginning of the single.php file <?php The_Events_Calendar::loadStylesAndScripts(); include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header();> <div id="tec-content" class="tec-event widecolumn"> <?php the_post(); global $post, $spEvents; ?> <div id="post-<?php the_ID() ?>" <?php post_class() ?>> . . . and this is the end <?php get_footer(); |
You are missing the '?' before the '>' after the 'get_header();' this is why I said to copy EXACTLY what I put in my post
|
I did a cut and paste :-(((
The problem was that I did not have a ? in the original file... I did the replacement according to the code in the original post (which was omitting the ?) , not to yours, so it did not work. Anyway... it works GREAT now! Thanks so much for helping me to sort this problem. really big thanks |
mmm-... actually problem is NOT yet solved...
Now the calendar view is misbehaving see footer of page http://www.groshgrup.net/blog/category/calendar/ |
(there is no side bad there because I removed it from the category "calendar", otherwise the calendar table would not fit in the page!)
|
I can't test it right now because I'm on my way out, but try making the LAST line of gridview.php this
HTML Code:
?> |
Thanks for the suggestion... It did not work
I still get the message Warning: include() [function.include]: Filename cannot be empty in /web/htdocs/www.groshgrup.net/home/blog/wp-content/themes/atahualpa/events/gridview.php on line 25 Warning: include() [function.include]: Filename cannot be empty in /web/htdocs/www.groshgrup.net/home/blog/wp-content/themes/atahualpa/events/gridview.php on line 25 Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/php5/lib/php/') in /web/htdocs/www.groshgrup.net/home/blog/wp-content/themes/atahualpa/events/gridview.php on line 25 This is the gridfile as it is now (I reverted back to the version without '?>' as a last line): <?php global $spEvents; $spEvents->loadStylesAndScripts(); include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header();?> <div id="tec-content" class="grid"> <div id='tec-events-calendar-header' class="clearfix"> <h2 class="tec-cal-title"><?php _e('Calendar of Events', $spEvents->pluginDomain) ?></h2> <?php get_jump_to_date_calendar( "tec-" ); ?> <span class='tec-calendar-buttons'> <a class='tec-button-off' href='<?php echo events_get_listview_link(); ?>'><?php _e('Event List', $spEvents->pluginDomain)?></a> <a class='tec-button-on' href='<?php echo events_get_gridview_link(); ?>'><?php _e('Calendar', $spEvents->pluginDomain)?></a> </span> </div><!--#tec-events-calendar-header--> <?php event_grid_view( ); // See the plugins/the-events-calendar/views/table.php template for customization ?> </div> <?php include get_footer(); |
1 Attachment(s)
Hmm I'm not getting that error when I look at the full page calendar - maybe you did something wrong on the edits. Attached is a copy of the events folder with the code I am using, try it out.
Attachment 476 |
It works great now... thanks... really a zillion thanks.
I wonder what went wrong, I checked again and I have done the edits right. One last question... the font in the body of an event page (see for example http://www.groshgrup.net/blog/2010/04/bivacco-urbano-2/ ) is different from the font used in the home page. It is a very very minor thing, but I wonder if it depends on the plugin or is an issue with the theme. Thanks a lot again for all your really kind help. |
This plugin seems to be a work in progress.
1) you have to add code to the theme folder(should not work this way) 2) on a full calendar page, making the window narrower causes the calendar to floats over the sidebar. 3) doesn't respect the themes styling 4) documentation is scarse (I still can't figure out how to make a full calendar page) |
Agree... still room for improvement!
(and in addition their widget does not work with a multilingual site) But this is the only plugin i found so far allows me to update events directly from a post (I tried another few and had even more problems!) If you have any suggestion for events plugin working well with Athaualpa they are of course welcome... I am looking for something that: * works in a multilingual site * allows to link an event to a post (i.e. edit dates and location when writing the post) * has a widget showing future events * display summary calendar pages * having a location map is a bonus But now that I have done these basic edits I am happy with the behaviors of the calendar, and hope it will be improved with time! thanks again for your work on atahualpa, a great theme really and great support! |
I am going to be trying this with Atahualpa 3.5.3.
A few misconceptions going on here though... 1) you have to add code to the theme folder(should not work this way) Not true. That's just a way to prevent an upgrade of the plugin from wiping out your modifications to the templates. 2) on a full calendar page, making the window narrower causes the calendar to floats over the sidebar. If you set #tec-content to a fixed width and then make your window narrower, it may no longer fit next to your sidebar. You could try using percentage widths instead of fixed widths. That's a general CSS issue and not a "fault" of the plugin. 3) doesn't respect the themes styling You can earn that respect by knowing a little bit of code :) 4) documentation is scarse Seems fine to me. HTH |
Thanks for the files @juggledad. Out of the box they did not work for me but I realize they were not written for Atahualpa 3.5.3. I'll see if I can locate the problem. Here is the error I get:
Fatal error: Call to undefined method The_Events_Calendar::loadStylesAndScripts() in /home/thesn8/public_html/1/wp-content/themes/atahualpa353/events/single.php on line 2 Thanks |
For Atahualpa 3.5.3 you need
PHP Code:
|
Seems like the template files that come with the plugin have also changed since this thread was started. So much for the idea of saving your template files in your theme folder so that the changes don't get overwritten.
The latest version of the plugin, single.php looks like this: PHP Code:
PHP Code:
PHP Code:
This is a site that I volunteer on so I'm going to have to put this aside for a little while. I will keep an eye in this thread and will post the answer if I find it. Thanks |
I'm thinking that the thing to do is probably to take the Atahualpa index.php, replace the loop (center column area) with their code, save it with the appropriate file name and upload it to the theme's /events folder. I haven't tried it though.
|
All times are GMT -6. The time now is 12:11 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.