StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
  #1  
Old 09-07-2012, 11:14 AM
protechig protechig is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Feb 2012
Location: Philadelphia
Posts: 155
Default Event Calendar Widget?

Hello Everyone,
I am developing a website for a non-profit organization that i'm involved with, and they want a plugin that they can edit their own events, and have a widget that will display an event calendar.

What is my best bet?

Thanks for your help
Zach
  #2  
Old 09-07-2012, 12:08 PM
Justin Twerdy Justin Twerdy is offline
Registered User
GenesisConnect
Pro Plus Member
 
Join Date: Nov 2010
Location: Dallas, TX
Posts: 165
Default

I highly recommend this one:

http://wordpress.org/extend/plugins/...vent-calendar/

Use it for just about any client site that needs this functionality (:
__________________
GenesisTweaks.com | jt@genesistweaks.com
  #3  
Old 09-08-2012, 05:13 PM
Michael Atkins's Avatar
Michael Atkins Michael Atkins is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2010
Location: South London, England
Posts: 111
Default

I think I tried all the events plugins and after weighing up pros & cons of each my preference is for event organiser http://wordpress.org/extend/plugins/event-organiser/ the widget display works perfectly with Genesis and the level of customisation available by using provided shortcodes to display the events exacly as you want is the most flexible I've seen. It was necessary to make some genesis-specific templates for my site for the events pages, but if you're used to developing with Genesis, that's very straightforward.

You can see how I used the event listing widget of the plugin in the sidebar at http://o5b.co.uk
  #4  
Old 10-31-2012, 02:45 PM
ODG ODG is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jun 2012
Posts: 4
Default

Hey Michael,

Can you elaborate on how you implemented Event Organiser? Specifically how you set up your genesis templates to? (event listing, event-single, etc) I'm having a hard time pulling the event listings on one page.

Thanks in advance!

Quote:
Originally Posted by Michael Atkins View Post
I think I tried all the events plugins and after weighing up pros & cons of each my preference is for event organiser http://wordpress.org/extend/plugins/event-organiser/ the widget display works perfectly with Genesis and the level of customisation available by using provided shortcodes to display the events exacly as you want is the most flexible I've seen. It was necessary to make some genesis-specific templates for my site for the events pages, but if you're used to developing with Genesis, that's very straightforward.

You can see how I used the event listing widget of the plugin in the sidebar at http://o5b.co.uk
  #5  
Old 11-06-2012, 05:06 PM
Michael Atkins's Avatar
Michael Atkins Michael Atkins is offline
Registered User
Pro Plus Member
 
Join Date: Nov 2010
Location: South London, England
Posts: 111
Default

Just seen your message ODG.

This is my single-event.php in my o5b theme

PHP Code:

<?php

/**
 * Single CPT Template: events
 *
 * This file is used to display single posts of the custom post type events.
 *
 *
 */

remove_action('genesis_post_title','genesis_do_post_title');

// Venue Name
add_action'genesis_post_title''cc_gig_venue_title' );

function 
cc_gig_venue_title(){
    
$venue_name eo_get_venue_name();
        echo 
'<h1 class="venue-name">' $venue_name '<span> ' get_the_title() . '</span></h1>';
}

// Remove the post info & post meta function
remove_action'genesis_before_post_content''genesis_post_info' );
remove_action'genesis_after_post_content''genesis_post_meta' );

// Remove the post content & replace with our custom version
remove_action'genesis_post_content''genesis_do_post_content' );
add_action'genesis_post_content''cc_do_events_content' );
function 
cc_do_events_content() {
    global 
$post;
    
    
//setup thumbnail image args to be used with genesis_get_image();
    
$size 'large'// Change this to whatever add_image_size you want
    
$default_attr = array(
            
'class'    => "aligncenter attachment-$size",
            
'alt'    => $post->post_title,
            
'title'    => $post->post_title,
        );
    


?>
                            <div class="entry-meta">
                                <!-- Choose a different date format depending on whether we want to include time -->
                                <?php if(eo_is_all_day()): ?>
                                    <!-- Event is all day -->
                                    <?php $date_format 'j F Y'?>
                                <?php else: ?>
                                    <!-- Event is not all day - include time in format -->
                                    <?php $date_format 'l jS F Y'?>
                                    <?php $time_format 'g:ia'?>
                                <?php endif; ?>

                                <?php if(eo_reoccurs()):?>
                                    <!-- Event reoccurs - is there a next occurrence? -->
                                    <?php $next =   eo_get_next_occurrence($date_format);?>
                                    <?php if($next): ?>
                                        <!-- If the event is occurring again in the future, display the date -->
                                        <?php printf(__('This event is running from %1$s until %2$s. It is next occurring at %3$s','eventorganiser'), eo_get_schedule_start('d F Y'), eo_get_schedule_end('d F Y'), $next);?>

                                    <?php else: ?>
                                        <!-- Otherwise the event has finished (no more occurrences) -->
                                        <?php printf(__('This gig was on %s','eventorganiser'), eo_get_schedule_end('d F Y',''));?>
                                <?php endif; ?>

                                <?php else: ?>
                                    <!-- Event is a single event -->
                                        <?php printf(__('%s ','eventorganiser'), eo_get_the_start($date_format) );?>
                                        <?php printf(__('<span class="gig-start"> %s</span>','eventorganiser'), eo_get_the_start('g:ia') );?>
                                <?php endif; ?>
                            </div>
<?php

//==

    // check if the post has a Post Thumbnail assigned to it. You can delete the if conditional if you want and assume that there will always be a thumbnail
    
if ( has_post_thumbnail() ) { 
        echo 
'<div class="clear"></div>';
        
// printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), genesis_get_image( array( 'size' => $size, 'attr' => $default_attr ) ) );
        
printf'%s'genesis_get_image( array( 'size' => $size'attr' => $default_attr ) ) );
    }
    
//else {} // you can add a default thumbnail conditional here if you want.

//==    
    // Display the content, if the content editor has content
    
if( $post->post_content != "" ) {
        echo 
"<div class='event-description'>";
            
the_content__'[Read more...]' 'genesis' ) );
        echo 
"</div>";
        

    }

$venue_name eo_get_venue_name();
$venue_address eo_get_venue_address();
$venue_description eo_get_venue_description();


echo 
'<div id="gig-venue">';

echo 
do_shortcode('[eo_venue_map class="gig-venue-map"]');

echo 
'<div class="venue-description">' $venue_description '</div>';

echo 
'<dl class="address">';
echo 
'<dt>' $venue_name '</dt>';
echo 
'<dd>' $venue_address['address'] . '</dd>';
echo 
'<dd>' $venue_address['postcode'] . '</dd>';
echo 
'</dl>';

echo 
'</div> <!-- end #gig-venue -->';
}

genesis();
for the gigs listings page I was lazy & just used a normal page and put in an event organiser shortcode to list the events.

The shortcode I used was
Code:
[eo_events]
%event_venue% %event_title%
%start{l jS F Y}% %start{ g:ia}%

%event_thumbnail{thumbnail}%
%event_venue_address%
%event_venue_postcode%

More Details[/eo_events]
but the great thing about the plugin is how flexible it is in that you can make it output any way you like
  #6  
Old 11-07-2012, 07:34 AM
ODG ODG is offline
Registered User
Genesis Member
Pro Plus Member
 
Join Date: Jun 2012
Posts: 4
Default

Okay, awesome. Thanks for posting...it helped.

I was lazy too and used the shortcode, then I switched it over to an actual page template because I could see someone accidentally deleting it out.

Thanks again Michael!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Event Calendar Karen Callahan General Discussion 1 11-22-2011 08:58 AM
Event Calendar alphastate General Discussion 2 09-15-2011 03:56 AM
Event Calendar Ordicon General Discussion 6 02-16-2009 11:52 AM
Event Calendar Widget/Plugin and event list rePete General Discussion 3 02-14-2009 02:32 AM


All times are GMT -5. The time now is 07:10 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.