Ben

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 53 total)
  • Author
    Posts
  • in reply to: Calendar Page Title #1132478
    Ben
    Participant

    Still getting a blank page.

    in reply to: Calendar Page Title #1132125
    Ben
    Participant

    NO, unfortunately, both the submit and list community events views now appear as blank pages (absolutely nothing in the browser window). Perhaps I installed it wrong. I just added it to the TJ Custom CSS plugin file with the first CSS customization, like this:

    /* hide theme page title in calendar views */
    .post-type-archive-tribe_events #pagetitle {
    display: none;
    }

    /* hide theme page title in calendar views, single event views and community submit, edit and list pages */
    .post-type-archive-tribe_events #pagetitle,
    .single-tribe_events #pagetitle,
    .tribe_community_list,
    .tribe_community_edit {
    display: none;
    }

    Is that correct?

    in reply to: Calendar Page Title #1131615
    Ben
    Participant

    Hi Nico, this works fine for Events Calendar Pro. However, I’m having a similar problem with Community Events, and this patch doesn’t work for those pages. Is there a similar CSS switch for community pages?

    in reply to: Bug in Day View #1131166
    Ben
    Participant

    I deleted The Event Calendar and Event Calendar Pro plug-ins, downloaded v4.2.1 of both plugins fro your website, re-installed them both. Disabled all other plugins, switched to vanilla 2014 theme (from WordPress install–no mods). Still getting the error in both list and day views. Solid bug, i.e., not intermittent.

    I can give you access to the site of you need it to debug.

    in reply to: Calendar Page Title #1131091
    Ben
    Participant

    Thanks, That works great for the calendar views. Is there a similar patch to disable the page title in the single event view? Thanks so much!

    in reply to: Bug in Day View #1130880
    Ben
    Participant

    No, no customization…just using the version that installs with WordPress.

    in reply to: Calendar Page Title #1130585
    Ben
    Participant

    I am having compatibility problems between events calendar and my Illustrious theme from CPOthemes. I need to set a variable that will disable generation of a page title block on the page that holds the calendar, so it will look like a normal blog page.

    Can you recommend a tribe hook that occurs just before The Event Calendar calls the theme to generate the page that holds the event calendar (i.e., the page that is generated when http://www.jazzoregon.com?post_type=tribe_events is called from the main menu)?

    Can you recommend a filter or variable that will signal to the theme that a calendar page is being generated?

    in reply to: Calendar Page Title #1130026
    Ben
    Participant

    For instance, in my Illustrious theme (from CPOThemes), the page title function is the following:

    function cpotheme_page_title(){
    global $post;
    if(isset($post->ID)) $current_id = $post->ID; else $current_id = false;
    $title_tag = function_exists(‘is_woocommerce’) && is_woocommerce() && is_singular(‘product’) ? ‘span’ : ‘h1’;
    echo ‘<‘.$title_tag.’ class=”pagetitle-title heading”>’;
    if(function_exists(‘is_woocommerce’) && is_woocommerce()){
    woocommerce_page_title();
    }elseif(is_category() || is_tag() || is_tax()){
    echo single_tag_title(”, true);
    }elseif(is_author()){
    the_author();
    }elseif(is_date()){
    _e(‘Archive’, ‘cpotheme’);
    }elseif(is_404()){
    echo __(‘Page Not Found’, ‘cpotheme’);
    }elseif(is_search()){
    echo __(‘Search Results for’, ‘cpotheme’).’ “‘.get_search_query().'”‘;
    }else{
    echo get_the_title($current_id);
    }
    echo ‘</’.$title_tag.’>’;
    }

    For the calendar page, the test falls through to the next to last line–echo get_the_title($current_id), so the current event title is displayed. What is needed is a test that recognizes an event post, so the title can be set to “Events”, or the page title block can be disabled for the page.

    Can you help me with that?

    in reply to: Calendar Page Title #1129989
    Ben
    Participant

    Hi Nico, I’m wondering of we are not confusing a couple of issues. Looking back on the source of your recommendation, it appears that Brook was talking about the title that appears above the Events Calendar view. That is apparently what is affected by ‘tribe_events_title_tag’ filter.

    What I’m talking about is different, i.e., the PAGE title, as in the title that you would enter for any new page you create in WordPress. It appears that some themes are not able to tell when the page is actually being generated by your plug-in, so it tries to display the page name but is not sure where to get it. Sometimes it ends up getting the title of the current post ID, which looks lame (see attachment).

    Can you please provide documentation that will tell me how to determine programmatically within the theme that the page is generated by the events calendar so I can take appropriate action to not generate a page block for the calendar, or create appropriate text for it. Is there an action or filter for this?

    Thanks
    Gene

    Ben
    Participant

    This reply is private.

    in reply to: Calendar Page Title #1129594
    Ben
    Participant

    Updated functions.php in theme but still doesn’t work. Here is the updated file…looking for same title for all views.

    <?php if(!isset($content_width)) $content_width = 640;
    define(‘CPOTHEME_ID’, ‘illustriouspro’);
    define(‘CPOTHEME_NAME’, ‘Illustrious Pro’);
    define(‘CPOTHEME_VERSION’, ‘1.3.0’);
    //Other constants
    define(‘CPOTHEME_LOGO_WIDTH’, ‘195’);
    define(‘CPOTHEME_USE_SLIDES’, true);
    define(‘CPOTHEME_USE_FEATURES’, true);
    define(‘CPOTHEME_USE_PORTFOLIO’, true);
    define(‘CPOTHEME_THUMBNAIL_WIDTH’, ‘600’);
    define(‘CPOTHEME_THUMBNAIL_HEIGHT’, ‘400’);

    //Load Core; check existing core or load development core
    $core_path = get_template_directory().’/core/’;
    if(defined(‘CPOTHEME_CORE’)) $core_path = CPOTHEME_CORE;
    require_once $core_path.’init.php’;

    $include_path = get_template_directory().’/includes/’;

    //Main componentshttps://theeventscalendar.com/
    require_once($include_path.’setup.php’);

    /*
    * *************PATCH: Defines page titles for events calendar
    *
    * @param string $title
    * @return string
    */
    function filter_events_title( $title ) {
    $title = ‘Events’;
    return $title;
    }
    add_filter( ‘tribe_events_title_tag’, ‘filter_events_title’ );

    in reply to: Reviewing Events before Publishing #1129475
    Ben
    Participant

    Hi Geoff, I have to respectfully disagree. I’m afraid you can’t blow off oversights by simply saying “we didn’t mean to do it”. Walking through every event post using the administrative interface is not a viable way to proof input from a web community. Obviously, that’s why the community list function was created in the first place. The developers simply forgot to include the (required) description field and the cost field in the implementation. Could you please fix this and issue a point revision? That is what I thought premium support was all about, no?

    in reply to: Calendar Page Title #1129397
    Ben
    Participant

    P.S. The shortcode you pointed me to does not address my problem. I need to have a viable title on the page that your plug-in generates for all of the views, including the month view.

    in reply to: Calendar Page Title #1129396
    Ben
    Participant

    I tried this, but it doesn’t work. Could you please help me fix this? Here is my functions.php file in my theme directory:


    if(!isset($content_width)) $content_width = 640;
    define('CPOTHEME_ID', 'illustriouspro');
    define('CPOTHEME_NAME', 'Illustrious Pro');
    define('CPOTHEME_VERSION', '1.3.0');
    //Other constants
    define('CPOTHEME_LOGO_WIDTH', '195');
    define('CPOTHEME_USE_SLIDES', true);
    define('CPOTHEME_USE_FEATURES', true);
    define('CPOTHEME_USE_PORTFOLIO', true);
    define('CPOTHEME_THUMBNAIL_WIDTH', '600');
    define('CPOTHEME_THUMBNAIL_HEIGHT', '400');

    //Load Core; check existing core or load development core
    $core_path = get_template_directory().'/core/';
    if(defined('CPOTHEME_CORE')) $core_path = CPOTHEME_CORE;
    require_once $core_path.'init.php';

    $include_path = get_template_directory().'/includes/';

    //Main components
    require_once($include_path.'setup.php');

    // *************PATCH: This filter added to set only the title as a required field (and not description)
    add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 );

    function my_community_required_fields( $fields ) {
    $fields = array(
    'post_title'
    );
    return $fields;
    }
    //************************************************************************************************************

    /**
    * *************PATCH: Defines page titles for events calendar
    *
    * @param string $title
    * @return string
    */
    function filter_events_title_month( $title ) {
    if ( tribe_is_month() ) {
    $title = 'Events';
    }

    return $title;
    }
    //*****************************************************************

    in reply to: Calendar Page Title #1129030
    Ben
    Participant

    P.S. I’m not interested in using the mini-calendar shortcode on a user defined page. The mini-calendar isn’t appropriate for the main calendar on a web site. It would be great if you had a shortcode for the full calendar though. Perhaps another way to address this?

Viewing 15 posts - 31 through 45 (of 53 total)