Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Plugins & Atahualpa »

"The event calendar"


  #1  
Old Apr 21, 2010, 04:41 AM
silva
 
25 posts · Apr 2010
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!
  #2  
Old Apr 21, 2010, 05:31 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 21, 2010, 05:48 AM
silva
 
25 posts · Apr 2010
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
  #4  
Old Apr 21, 2010, 06:01 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what do you have set at ato->Style & configure SIDEBARS->RIGHT sidebar: Display on: and 'RIGHT sidebar: Don't display on Pages:'?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Apr 21, 2010, 06:43 AM
silva
 
25 posts · Apr 2010
Hello...

* "right sidebar: display on": all options are ticked.
* "right sidebar: don't display on": is blank
  #6  
Old Apr 21, 2010, 07:15 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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:
Hey Pankus & ncitravel,

Just found this thread- and without too much mucking around (time is money!) I found that it's easy enough to make it work with Atahualpa.

Simply do as Shaine has said

Create a new folder called "events" in your template directory and copy over the following files from within the plugin folder (simple-events/views/):

* gridview.php
* list.php
* single.php

Edit all of the above 3 files, in the new location, and perform the two actions below on each file-

Replace include (TEMPLATEPATH.'/header.php');
with include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header();

Replace include (TEMPLATEPATH.'/footer.php');
with get_footer();

All done!

ShadowQ.
so in each of the three files, you have to replace the line
HTML Code:
	include (TEMPLATEPATH.'/header.php'); ?>
with
HTML Code:
	include (TEMPLATEPATH.'/functions/bfa_get_options.php');
	get_header(); ?>
and replace the line
HTML Code:
	include (TEMPLATEPATH.'/footer.php');
with
HTML Code:
	get_footer();
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Apr 21, 2010, 07:22 AM
silva
 
25 posts · Apr 2010
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
  #8  
Old Apr 21, 2010, 07:46 AM
silva
 
25 posts · Apr 2010
(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
  #9  
Old Apr 21, 2010, 07:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Replace the lines EXACTLY as I show. You probably deleted something you needed
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Apr 21, 2010, 08:05 AM
silva
 
25 posts · Apr 2010
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();
  #11  
Old Apr 21, 2010, 08:08 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You are missing the '?' before the '>' after the 'get_header();' this is why I said to copy EXACTLY what I put in my post
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Apr 21, 2010, 08:22 AM
silva
 
25 posts · Apr 2010
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
  #13  
Old Apr 21, 2010, 08:29 AM
silva
 
25 posts · Apr 2010
mmm-... actually problem is NOT yet solved...
Now the calendar view is misbehaving

see footer of page
http://www.groshgrup.net/blog/category/calendar/
  #14  
Old Apr 21, 2010, 08:39 AM
silva
 
25 posts · Apr 2010
(there is no side bad there because I removed it from the category "calendar", otherwise the calendar table would not fit in the page!)
  #15  
Old Apr 21, 2010, 02:13 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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:
?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #16  
Old Apr 21, 2010, 02:28 PM
silva
 
25 posts · Apr 2010
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();
  #17  
Old Apr 22, 2010, 05:22 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
events.zip
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Oct 28, 2010 at 03:51 PM.
  #18  
Old Apr 22, 2010, 05:32 AM
silva
 
25 posts · Apr 2010
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.
  #19  
Old Apr 22, 2010, 05:42 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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)
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #20  
Old Apr 22, 2010, 05:52 AM
silva
 
25 posts · Apr 2010
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!
  #21  
Old Oct 28, 2010, 03:16 PM
jonasgrumby
 
19 posts · Aug 2009
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
  #22  
Old Oct 28, 2010, 03:37 PM
jonasgrumby
 
19 posts · Aug 2009
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
  #23  
Old Oct 28, 2010, 04:05 PM
jonasgrumby
 
19 posts · Aug 2009
For Atahualpa 3.5.3 you need

PHP Code:
<?php     /* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;
get_header(); ?>
This will cause the page to display without error but it does not seem to address the issue of how to include the sidebar(s).
  #24  
Old Oct 28, 2010, 05:14 PM
jonasgrumby
 
19 posts · Aug 2009
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
global $spEvents;
$spEvents->loadDomainStylesScripts();
get_header();
?>
I also tried changing that to:

PHP Code:
<?php
global $spEvents;
$spEvents->loadDomainStylesScripts();
include (
TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;
get_header();
?>
as well as:

PHP Code:
<?php
global $spEvents;
$spEvents->loadDomainStylesScripts();
     
/* get all options: */
# error_reporting(-1);
include (TEMPLATEPATH '/functions/bfa_get_options.php');
global 
$bfa_ata;
get_header();
?>
So far all three ways I have tried show the page without error but do not display the sidebar on the single post page (i.e. as if I had just used the plugin's stock template files). I also tried purposely breaking the code to make sure it is reading the template in the theme folder and not the one in the plugin folder and that test worked.

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
  #25  
Old Oct 28, 2010, 05:27 PM
jonasgrumby
 
19 posts · Aug 2009
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.

Bookmarks

Tags
"the event calendar", sidebar



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with plugin event calendar 3 ciocchi Sidebars & Widgets 0 Feb 28, 2010 12:16 PM
How to change the font of "1 comment to..." and "Leave a Reply" headers RHCdG Header configuration & styling 1 Nov 28, 2009 05:56 AM
Event Calendar???? marineceo Plugins & Atahualpa 4 Nov 17, 2009 09:12 PM
[SOLVED] Event Calendar 3 Per Lund Plugins & Atahualpa 0 Sep 5, 2009 02:06 PM
Help installing event calendar widget in sidebar echamings Sidebars & Widgets 2 May 7, 2009 05:55 AM


All times are GMT -6. The time now is 01:50 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.