rudeetours

Forum Replies Created

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • rudeetours
    Member

    Jonah, Please look for my email. Thanks in advance for your help.

    rudeetours
    Member

    Events slug url: events
    Single event url slug: event
    So, to me that means that http://www.rudeeinletcharters.com/events/ and http://www.rudeeinletcharters.com/events/2012-05 should work right?
    This page has the updated template to display the events. http://www.rudeeinletcharters.com/schedule-rates/
    I’m using The events calendar pro 2.0.5 and the events calendar 2.0.5. As a note, before we upgraded to 2.0.5 to have the recurrence option those links did work with the events calendar pro 1.3.2.
    Any ideas?

    rudeetours
    Member

    OK, found the current code snippets in gridview.php. This site is set up with a page template. So, I updated those code snippets, but the links (although they look right) don’t work.
    Do you have any idea why http://www.rudeeinletcharters.com/events/upcoming
    http://www.rudeeinletcharters.com/events/2012-05
    http://www.rudeeinletcharters.com/events would not be valid url’s? I assume it is some customization that the previous developer made. I’m not sure where to look.

    rudeetours
    Member

    Hmm, well that didn’t work. I’ll try this.

    Calendar

    <a href='’>

    <a href='’>

    <a class='tec-button-off' href='’>pluginDomain)?>
    <a class='tec-button-on' href='’>pluginDomain)?>

    <a title="pluginDomain) ?>” class=”ical” href=””>pluginDomain) ?>

    rudeetours
    Member

    Jonah,
    I’ve got three sites to fix. Here is the first one I’m working on. http://www.rudeeinletcharters.com/schedule-rates/
    I’ve got my current month’s calendar up and re-styled. However, the navigation from month to month isn’t working as well as the buttons to upcoming events etc. What would be the current replacement for the following?


    Also the dropdowns aren’t navigating to display.
    Here’s what I’ve got.

    Calendar

    <a href=''>

    <a href=''>

    <a class='tec-button-off' href=''>pluginDomain)?>
    <a class='tec-button-on' href=''>pluginDomain)?>

    <a title="pluginDomain) ?>" class="ical" href="">pluginDomain) ?>


    rudeetours
    Member

    So, what does it mean if there is no events directory within my theme directory?

    rudeetours
    Member

    Hmm. Wondering if it might be easier to start over from scratch.
    Should I be able to enable the plugin, place some minor snippet on my page and WA LA, POOF, magically there’s my calendar?

    rudeetours
    Member

    That makes sense. OK, this opens up a few new issues then. If sp_get_events() is OK, what about the following?
    (‘Event List’, $sp_ecp->pluginDomain)
    (‘Calendar’, $sp_ecp->pluginDomain)
    global $sp_ecp;
    list( $year, $month ) = split( ‘-‘, $sp_ecp->date );
    $monthView = sp_sort_by_month( $eventPosts, $sp_ecp->date );
    ( $n = $startOfWeek; $n daysOfWeek)
    strtolower($sp_ecp->daysOfWeek[$dayOfWeek])
    …..
    Then it also looks as though the developer who implemented this code copied it from a tutorial somewhere because there are comments like so

    /**
    * Copy and paste this to events/table.php in your template to customize
    */

    global $sp_ecp;

    // in an events cat

    Are you aware any tutorials or documentation where this might have come from? If so, where are they and would they still be valid for the current version?
    Thanks again for your quick response.

    in reply to: Gridview Based On Category #17770
    rudeetours
    Member

    I’ve taken over the project from rudeetours above. I have four categories. Each category is supposed to display a calendar (grid view) on a different page. Each page uses a different template. So, can I add similar code (but to include one category only) to my template? This is what I’ve got for one of the page templates. (currently getting a fatal error here http://rudeetours.com/tours/winter-wildlife/)
    Can you guide me on where/how I can use code similar to what is here. https://gist.github.com/2269019

    ...

    <a href=''>

    <a href=''>

    <a class='tec-button-off' href=''>pluginDomain)?>
    <a class='tec-button-on' href=''>pluginDomain)?>

    get_event_taxonomy() ) ) {
    $cat = get_term_by( 'slug', get_query_var('term'), $sp_ecp->get_event_taxonomy() );
    $eventCat = (int) $cat->term_id;
    $eventPosts = sp_get_events( array( 'eventCat' => $eventCat, 'time_order' => 'ASC' ) );
    } // not in a cat
    else {
    $eventCat = 'Winter Wildlife';
    $eventPosts = sp_get_events(array( 'eventCat' => $eventCat, 'time_order' => 'ASC' ));
    }

    $eventCat = 'Dolphin Watching';
    $daysInMonth = isset($date) ? date("t", $date) : date("t");
    $startOfWeek = get_option( 'start_of_week', 0 );
    list( $year, $month ) = split( '-', $sp_ecp->date );
    $date = mktime(12, 0, 0, $month, 1, $year); // 1st day of month as unix stamp
    $rawOffset = date("w", $date) - $startOfWeek;
    $offset = ( $rawOffset date );

    ?>

    log($sp_ecp->daysOfWeekShort);
    for( $n = $startOfWeek; $n daysOfWeek) + $startOfWeek; $n++ ) {
    $dayOfWeek = ( $n >= 7 ) ? $n - 7 : $n;

    echo 'daysOfWeek[$dayOfWeek]) . '" abbr="' . $sp_ecp->daysOfWeek[$dayOfWeek] . '">' . $sp_ecp->daysOfWeekShort[$dayOfWeek] . '';
    }
    ?>

    <?php
    // skip last month
    for( $i = 1; $i <= $offset; $i++ ){
    echo "";
    }
    // output this month
    for( $day = 1; $day <= date("t", $date); $day++ ) {
    if( ($day + $offset - 1) % 7 == 0 && $day != 1) {
    echo "\n\t";
    $rows++;
    }

    // Var'ng up days, months and years
    $current_day = date_i18n( 'd' );
    $current_month = date_i18n( 'm' );
    $current_year = date_i18n( 'Y' );

    if ( $current_month == $month && $current_year == $year) {
    // Past, Present, Future class
    if ($current_day == $day ) {
    $ppf = ' tec-present';
    } elseif ($current_day > $day) {
    $ppf = ' tec-past';
    } elseif ($current_day $month && $current_year == $year || $current_year > $year ) {
    $ppf = ' tec-past';
    } elseif ( $current_month < $month && $current_year == $year || $current_year < $year ) {
    $ppf = ' tec-future';
    } else { $ppf = false; }

    echo "" . display_day_title( $day, $monthView ) . "\n";
    echo display_day( $day, $monthView );
    echo "";
    }
    // skip next month
    while( ($day + $offset) <= $rows * 7)
    {
    echo "";
    $day++;
    }
    ?>

    <?php

    function display_day_title( $day, $monthView ) {
    $return = "";

    $return .= $day;
    $return .= "";
    for( $i = 0; $i < count( $monthView[$day] ); $i++ ) {
    $post = $monthView[$day][$i];
    setup_postdata( $post );
    $return .= '' . get_the_title() . '';
    }
    $return .= '';
    $return .= '';

    $return .= "";
    return $return;
    }

    function display_day( $day, $monthView ) {
    global $post;
    $output = '';
    $posts_per_page = get_option( 'posts_per_page' );
    for ( $i = 0; $i ID.'-'.$day;
    $start = sp_get_start_date( $post->ID );
    $end = sp_get_end_date( $post->ID );
    $cost = sp_get_cost( $post->ID );
    $address = sp_get_address( $post->ID );
    $city = sp_get_city( $post->ID );
    $state = sp_get_state( $post->ID );
    $province = sp_get_province( $post->ID );
    $country = sp_get_country( $post->ID );
    ?>

    <div id='event_' >
    <a href="">
    <div id='tooltip_' class="tec-tooltip" style="display:none;">

    ID) || sp_is_multiday($post->ID) ) : ?>

    <?php if ( !empty( $end ) && $start !== $end ) echo " – " . $end . ''; ?>

    post_excerpt) : Events_Calendar_Pro::truncate(get_the_content(), 30); ?>

    <?php
    if( $i < count( $monthView[$day] ) - 1 ) {
    echo "";
    }
    }
    }
    ?>

    ...


    ...

Viewing 9 posts - 16 through 24 (of 24 total)