• 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="https://codex.www.ads-software.com/Plugins/EventCalendar2">Events Calendar 2</a>, <a href="https://drosselmeyer.bpa.nu/photo">Photo Calendar</a>, and <a href="https://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="https://www.writingsalons.com/classes">classes</a> into something like <a href="https://www.826valencia.org/events/2005_03">826 Valencia</a> (done in MT) or <a href="https://www.ikemcg.com/scripts/pec/phpEventCalendar/index.php">phpEventCalendar</a>, but using the WP entries that are already in there.

    <a href="https://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 - 1 through 15 (of 30 total)
  • Thread Starter likoma

    (@likoma)

    Well, that was a coding mess … here’s a little better, I hope.

    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 Events Calendar 2, Photo Calendar, and wp-ical which I can’t get to work.

    I’m trying to get these classes into something like 826 Valencia (done in MT) or phpEventCalendar, but using the WP entries that are already in there.

    This 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

    Thread Starter likoma

    (@likoma)

    Well, I figured it out:

    The Writing Salon

    I made different pages (e.g. index-12.php, etc.) for the different categories and on each page put in the number of that category I wanted to show (e.g.

    <?php get_event_calendar(12,'sun',3,True,3); ?>).

    Where ’12’ is the category ID, show 3 months, etc.

    I also got the titles into the days by changing line 261 of eventcalendar2.php like so:

    echo "' title=\"" . $calendar_entries[$day]['titles'] . "\"" . $calendar_entries[$day]['class'] // may be empty string
    . ">$day</a>";
    echo "" . $calendar_entries[$day]['titles'] . ""; // may be empty string

    I got the multiple listings per day to be divided by * * * by changing line 200 to:

    } else {
    $ak_title_separator = '<br />* * *<br />';
    }

    I also messed with the CSS file to get the calendar to be large on the page, but it’s too much to paste here. If someone wants it, ask and I’ll paste it in here.

    I may have done a few more things, but I’ve done so many, I can’t remember! If you’d like all the code, lemme know.

    Thanks, Alex Tingle, for making a fantastic Plugin!

    – Bradley

    Oh GOD, very nice work! I liked it a lot!

    If you could post a link to the css file, that would be fantastic. Great work! Thanks for your efforts!

    Could you write up the steps involved to do something like this? I would love to add what you did to one of my sites.

    Thanks!

    Bradley,

    Truely well done. I’m working on something similar and this will help quite a bit. And yes, please do link to the CSS. Thanks.

    Thread Starter likoma

    (@likoma)

    Water111: the steps as best I will remember them are just the changes to the file as I mentioned in this post on 2005-03-22 above. I hope that’s enough.

    I’m not sure how to link to the CSS file (just a link?); I suppose you could go to the Writing Salon site and look at the source code for the CSS file? So here’s the relevant (I hope) CSS. I didn’t do full checks on all Mac browsers.

    #wp-calendar table {
    border: 1px solid #ddd;
    empty-cells: show;
    font-size: 24px;
    width: 740px;
    }

    #wp-calendar table #next a {
    padding-right: 1px;
    text-align: center;
    }

    #wp-calendar table #prev a {
    padding-left: 1px;
    text-align: center;
    }

    #wp-calendar table a {
    display: block;
    text-decoration: none;
    background-color: #CC9933;
    color: #FFFFFF;
    width: 100%;
    }

    #wp-calendar table a:hover {
    color: #333;
    }

    #wp-calendar table caption {
    color: #CC9933;
    font-size: 1em;
    text-align: center;
    padding-bottom: 2px;
    padding-left: 2px;
    border-bottom-width: thin;
    border-bottom-style: solid;
    border-bottom-color: #CC9933;
    }

    #wp-calendar table td {
    color: #000000;
    font: normal 11px Verdana, Geneva, sans-serif;
    padding: 0px;
    text-align: center;
    width: 100px;
    height: 50px;
    border: 1px solid #CCCCCC;
    vertical-align: top;
    margin-right: -5px;
    margin-left: -5px;
    }

    #wp-calendar table td.pad:hover {
    background: #fff;
    }

    #wp-calendar table #today {
    background: url(https://www.dianelebow.com/images/today.gif);
    color: #666;
    }

    #wp-calendar table th {
    color: #CC9933;
    font-style: normal;
    text-transform: capitalize;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: .5em;
    text-align: center;
    vertical-align: middle;
    }
    #wp-calendar a.eventday {
    color:#FFFFFF;
    }

    I didn’t yet (05/06/05) integrate into this Writing Salon site, but I figured out a way to show both past and future posts AND have them counted in both the Categories and Archives! See this post.

    If anyone improves on this, I’d love to see some links here.

    Best regards,

    – Bradley

    https://www.writingsalons.com/includes/wp-layout.css

    The aforementioned style sheet.
    Nice work.

    Im looking to take this a step further and be able to add a ‘Custom Field’ to the Events that will have a ‘Finish Date’ which will allow us to flag the event up for each day inbetween the Timestamp date of the post (Event Start) and the Custom Field ‘Finish Date’

    Im going to attempt to use the EventCalendar2 as the basis of my plugin but i have a feeling im going to be starting again from scratch, if anyone has done this or has a idea of how to achive this please reply!

    Since this post was so helpful to me, I thought I’d provide an update. With the advent of EventCalendar3, I had to hack away at the eventcalendar3.php file to make it do the same thing as The Writing Salon site.

    1) To put the post titles inside the calendar find

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

    and below it make the following tweaks

    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>’;

    2) To change the seperator for multiple posts in one day, use

    function get_titles()
    {
    //return implode(‘, ‘,$this->titles);
    return implode(‘<br>***<br>’,$this->titles);
    }

    3) Don’t forget https://www.ads-software.com/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.

    4) Also, instead of making putting individual index-12.php pages, the new WP uses category-12.php (where 12 is the category id) pages inside your theme folder. This drove me nuts for hours. I hope it helps someone else.

    Thanks again!

    Thanks to Marisa who pointed out a few mistakes in my code above. The “insert day” code should actually read:

    // 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>’;

    I still don’t know how to use this. Could anyone kindly write a step by step tutorial?

    Or anyone knows any plugin like 826’s event calendar

    bradley/likoma: i’m so impressed, great calendar. are you using event calendar 3 yet?

    i’m confused… how did you get subcategories? you only added the number of the category to the call for the function, but you didn’t have to edit the function?

    i don’t understand… this is really difficult!

    would you pastebin your code for how the index-12.php file is? or even your event calendar plugin code that you modified?
    https://pastebin.com/

    thank you!

    Thread Starter likoma

    (@likoma)

    Cokeyko: Funny, my Writing Salon client mentioned that same website for its calendar. Their calendar was my goal. EC2 (and EC3) are the best I found and I think they’re doing a pretty good job.

    Nearlythere: I have used EC3, but I haven’t managed to do what Micki did above (I haven’t tried either). I only get to these things when a client asks me for it, so when that time comes–and I’m sure it will–I’ll post anything I learn here. That said, it looks like Micki has figured it out although I had a look at what I think is her site and I didn’t see EC3 in use.

    When I use the revised code that Micki wrote I get a parse error on line 619. It seems to have an extra ' in it, but I can’t figure out where. Has anyone gotten this to work in 1.5.2?

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