Support » Fixing WordPress » “Big” events calendar (main page, not sidebar)

  • I’m trying to get an Events Calendar that:

    1.) Sees to the future,
    2.) Is a full page, not just in the sidebar,
    3.) Is integrated with WP (by Category or not),

    I’ve been messing with <a href="http://codex.wordpress.org/Plugins/EventCalendar2">Events Calendar 2</a>, <a href="http://drosselmeyer.bpa.nu/photo">Photo Calendar</a>, and <a href="http://garrickvanburen.com/archive/introducing-the-wp-ical-plugin">wp-ical</a> which I can’t get to work.

    I’m trying to get these <a href="http://www.writingsalons.com/classes">classes</a> into something like <a href="http://www.826valencia.org/events/2005_03">826 Valencia</a> (done in MT) or <a href="http://www.ikemcg.com/scripts/pec/phpEventCalendar/index.php">phpEventCalendar</a>, but using the WP entries that are already in there.

    <a href="http://www.writingsalons.com/classes/index-1.php?m=200503">This</a> is what I have so far, which isn’t too bad, but I’d really like the class names to be visible, not just on hover. There’s got to be a way I can get the hover text (which is just the name of link and of course links to that page) into the little box that is that date.

    I’m just about to give up and use phpEventCalendar but then of course that means entering all entries twice (unless I could link up those two SQL tables or something).

    Any tips, directions, links, ideas … thanks.

    – Bradley

Viewing 15 replies - 16 through 30 (of 30 total)
  • rmhsmusic I found your error…cuz I had the same problem.

    bad part:
    echo 'day_link() . '" title="' . $calendar_days[$day_id]->get_titles() . '"';

    should be:
    echo 'day_link()' . '" title="' . $calendar_days[$day_id]->get_titles() . '"';

    I’ve been looking for something like this…I think I’ll start making some modifications on it as well…if I can get it to work…

    A few Ideas I have:
    1) use “pages” instead of categories…(see this post for why I want to do that…hehe)
    2) make calender integrated with page…not sure if that’s what Micki did…still trying to make it work.
    3) make events on calendar click able.

    I’ll let you know if I get anywhere.

    wahaca, thanks for that — I’m going to give it a try tonight. I think using “pages” is the better way to go, but I haven’t figured it out either.

    x

    from Micki’s post above.

    3) Don’t forget http://wordpress.org/support/topic/15109. Thanks Bradley for the link, it helped me a lot. I couldn’t figure out why my future events weren’t showing up.

    Does this apply to WordPress 2.0? The code is not that same. I got everything working but my future events are not showing up in the calendar.

    The stylesheet is not prefected yet but the calendar is working (kinda). Can anyone help me with the events not showing up?
    http://desotohillsyouth.com/events

    I implemented the suggestions in this thread and have a little problem. I put this in my eventcalendar3.php:
    // insert day
    $day_id = $date->day_id();
    echo "<td id='$day_id'";
    if(array_key_exists($day_id,$calendar_days))
    {
    echo ' class="ec3_postday';
    if($calendar_days[$day_id]->is_event)
    echo ' ec3_eventday';
    //echo '>' . $date->day_num;
    echo '">';
    echo 'day_link()' . '" title="' . $calendar_days[$day_id]->get_titles() . '"';
    if($calendar_days[$day_id]->is_event)
    echo ' class="eventday"';
    echo ">$date->day_num";
    echo $calendar_days[$day_id]->get_titles() ;
    }
    else
    {
    echo '>' . $date->day_num;
    }
    echo '</td>';

    but now my titles show up with bits of code in them. My calendar is here.
    Any ideas?

    There are a couple of lines that look suspicious in that quotes and stuff are confused. PHP functions and variables need to be outside of quotes while the text that you want to echo needs to be inside quotes. Maybe this revised code might help….

    Putting quotes around the whole phrase just echo’s the whole phrase.

    // insert day
    $day_id = $date->day_id();
    echo ‘<td id=’.$day_id;
    if(array_key_exists($day_id,$calendar_days))
    {
    echo ‘ class=”ec3_postday’;
    if($calendar_days[$day_id]->is_event)
    echo ‘ ec3_eventday’;
    //echo ‘>’ . $date->day_num;
    echo ‘”>’;
    echo day_link() . ‘ title=”‘ . $calendar_days[$day_id]->get_titles() . ‘”‘;
    if ($calendar_days[$day_id]->is_event)
    echo ‘ class=”eventday”‘;
    echo ‘>’ . $date->day_num;
    echo $calendar_days[$day_id]->get_titles() ;
    }
    else
    {
    echo ‘>’ . $date->day_num;
    }
    echo ‘</td>’;

    Well, I tried that, and got an error. As of now I’ve restored the original settings in the code, so you won’t see the issue I’ve described, but I am still interested in getting this to work.

    Thanks to this post I got EC3.04 looking nice in its own page. I still would like something a little more robust, anyone know of a good event calendar for WP2?

    Here we go again!

    Got the request from a client for a full-page calendar so I’ve just put in EC 3.0.4 on a full page:

    Left Coast Writers. (If before site switch, link here.)

    Here’s what I did so far:

    1.) Page Template
    I made a page template (e.g. calendar.php, I think you need this at the top: <?php /* Template Name: Calendar */ ?>) and put this code just after the_content like so:

    <div class="storycontent">
    <?php the_content(); ?>
    <?php ec3_get_calendar(); ?>
    </div>

    I removed the sidebar from this template so the calendar could go full page width.

    2.) Show Titles in Day Cell
    Following the (recent) steps above, I couldn’t get it working. I’m no coder, but messed around and finally came up with this:

    // insert day
    $day_id = $date->day_id();
    echo "<td id='$day_id'";

    if(array_key_exists($day_id,$calendar_days))
    {
    echo ' class="ec3_postday';
    if($calendar_days[$day_id]->is_event)
    echo ' ec3_eventday';
    echo '">';
    echo '<a href="' . $date->day_link()
    . '" title="' . $calendar_days[$day_id]->get_titles() . '"';
    echo ' class="eventday"';
    echo ">$date->day_num</a>";
    echo $calendar_days[$day_id]->get_titles();
    }
    else
    {
    echo '>' . $date->day_num;
    }

    echo '</td>';

    The link was going to the title name, but I wanted it to go the date archive for that day, so I did some fiddling. Ideally, I’d like the links to be to the event post itself and I bet it can be done as the “function ec3_get_events” can do it! I don’t know how to do it, though.

    3.) Multiple Events Per Day
    I also followed Micki’s code to get two events to show up above each other with something of a break. That code (e.g. *** does show up in the hover-over title. I’m not too worried about multiple events per day.

    So I just finished this and I’d bet there are some glitches and improvements to be made, but I wanted to add to this thread before I forgot what I did !

    My CSS is about the same as what I have way above when I started this thread.

    Please post any findings back here.

    – Bradley

    First of all. THANK YOU to all of you who helped figure this out. Oh, it is SUCH a big help.

    To re-pay in kind, I figured the link part out.

    First, you have to remove the “title” attribute in the link– or it will screw things up. So

    echo '<a>day_link(). '" title="' . calendar_days[$day_id]->get_titles() . '"';
    becomes:
    echo '<a>day_link();

    Next, add to the beginning of the add_post() in the ec3_Day class.

    $link =get_permalink($entry->id);
    $safe_title = '</a><a href="' . $link . '">';

    AND change the next variable to
    $safe_title .=

    Lastly, close your link attribute:
    // $safe_title.=' @'.$time ;<br />
    $safe_title.=' @'.$time . '</a>';

    I hope this helps.

    Ok… on retrospect this doesn’t work. It links all events to the last event. hmm…. back to the drawing boards

    I have used this thread with some great results but now I am stuck and hoping someone can help me — I’ve signed up for EC’s mailing list but haven’t had any luck there.

    My calendar is here.
    Three things:
    1. Previous and next post links take you to the archives for the next month, not the calendar page. I’d like it to “page” though the calendar instead.
    2. Most of my events are holidays or festivals — all-day events. I’d like to get rid of the post time in the calendar and just have the event title.
    3. Clicking the day of the event takes you to the archives for that entire day. Instead, I’d like it to just go straight to the permalink for that particular event.

    Thanks in advance. I’m hoping this thread’s not dead…

    I, too, wanted to say thanks to all those who’ve posted their examples and ideas–it’s been a big help with a page I’ve set up to use both the small and large version of the calendar (raleighracers.org). The big calendar needs a little styling, and I seem to have killed the nice javascript popups somehow, but otherwise it’s working pretty much how I want it to. Now I have to stop fiddling with the calendar and work on some content.

    I’m also trying to install the ec3 calendar under a test domain. (http://www.tkexport.com/blog/calendar/).

    If you point to the url you’ll see a vertical border cutting through my calendar. I can’t find where it is coming from. How do I get rid of it? Can somebody please help?

    Whitepimp

    (@whitepimp)

    Hey guys…. I’ve got a question for ya.

    I want to have both a small sidebar calendar and a larger full page calendar. They both contain the same events, one is just larger/easier to read.

    Is there any way to add the titles to JUST the large calendar? I’m thinking no, but I’m interested in hearing if anyone has any suggestions.

    I was actually thinking about installing a second version of the plugin (slightly modded to list the posts in the output), and just calling that from the full page.

    Thoughts? Am I wrong and the event titles won’t show up on the tiny calendar and make me cry?

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘“Big” events calendar (main page, not sidebar)’ is closed to new replies.