meredy

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • in reply to: Event Category Title in calendar list view #956480
    meredy
    Participant

    Hi its ne again–well after a week of back and forth with no result I got this response from Vandam (theme people)
    ___________________________________________________________
    “What I did is I changed line 183 in vamtam/classes/templates.php to this:

    if ( is_null($post_id) || ! is_singular() || WpvFancyPortfolio::has( ‘page’ ) )

    The ! is_singular() part has been added.

    Please note that this results in a title layout which is the same as the one we have here: http://church-event.vamtam.com/events/

    – Regarding the category – you can see that no category is displayed even if you remove the text from “Upcoming Events Title” in Vamtam/General/Posts (this disables our code which overrides the events listing title and uses the plugin’s tribe_get_events_title() function).”
    _____________________________________________________________________________
    So now I get the upcoming events title but no category–got a fix??

    in reply to: Event Category Title in calendar list view #953777
    meredy
    Participant

    nope — did not work. Maybe I will get a response from theme people–been waiting 24 hrs for it now. Maybe not such a great theme afterall…sigh

    in reply to: Event Category Title in calendar list view #953730
    meredy
    Participant

    tried that reset to true–no effect at all ??

    in reply to: Event Category Title in calendar list view #953604
    meredy
    Participant

    Is something in one of these files messing with the Title and category header?

    in reply to: Event Category Title in calendar list view #953603
    meredy
    Participant

    and also has this in it:

    <?php
    /**
    * List View Loop
    * This file sets up the structure for the list loop
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/loop.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); } ?>

    <?php
    $GLOBALS[‘more’] = false;

    $GLOBALS[‘wpv_pretty_tribe_date_headers’] = true;
    $GLOBALS[‘wpv_pretty_tribe_date_headers_first’] = true;
    ?>

    <div class=”tribe-events-loop hfeed vcalendar clearfix”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php do_action( ‘tribe_events_inside_before_loop’ ); ?>

    <?php tribe_events_list_the_date_headers(); ?>

    <!– Event –>
    <div id=”post-<?php the_ID() ?>” class=”<?php tribe_events_event_classes() ?>”>
    <?php tribe_get_template_part( ‘list/single’, ‘event’ ) ?>
    </div><!– .hentry .vevent –>

    <?php do_action( ‘tribe_events_inside_after_loop’ ); ?>
    <?php $GLOBALS[‘wpv_pretty_tribe_date_headers_first’] = false; ?>
    <?php endwhile; ?>

    </section>

    </div><!– .tribe-events-loop –>

    in reply to: Event Category Title in calendar list view #953600
    meredy
    Participant

    yes and it has a default-template.php with this code:

    <?php
    /**
    * Default Events Template
    * This file is the basic wrapper template for all the views if ‘Default Events Template’
    * is selected in Events -> Settings -> Template -> Events Template.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/default-template.php
    *
    * @package TribeEventsCalendar
    * @since 3.0
    * @author Modern Tribe Inc.
    *
    */

    if ( !defined(‘ABSPATH’) ) { die(‘-1’); }

    if ( ! is_singular() ) {
    $title = tribe_get_events_title(false);
    }

    get_header(); ?>
    <div class=”row page-wrapper”>
    <?php WpvTemplates::left_sidebar() ?>
    <article <?php post_class(WpvTemplates::get_layout()) ?>>
    <?php tribe_events_before_html(); ?>
    <?php tribe_get_view(); ?>
    <?php tribe_events_after_html(); ?>
    </article>
    <?php WpvTemplates::right_sidebar() ?>

    <?php if(has_action(‘wpv_tribe_events_after_sidebars-1’) || has_action(‘wpv_tribe_events_after_sidebars-2’)): ?>
    </div><!– .page-wrapper –>
    </div><!– .limit-wrapper –>

    <?php if(has_action(‘wpv_tribe_events_after_sidebars-1’)): ?>
    <div class=”clearfix single-event-after-sidebars-1″>
    <?php do_action(‘wpv_tribe_events_after_sidebars-1’) ?>
    </div>
    <?php endif ?>
    <?php if(has_action(‘wpv_tribe_events_after_sidebars-2’)): ?>
    <div class=”clearfix single-event-after-sidebars-2″>
    <div class=”limit-wrapper”>
    <?php do_action(‘wpv_tribe_events_after_sidebars-2’) ?>
    </div>
    </div>
    <?php endif ?>

    <div><div> <!– dummy tags –>
    <?php endif ?>
    </div>
    <?php get_footer(); ?>

    in reply to: Event Category Title in calendar list view #953529
    meredy
    Participant

    I can send a screen shot if that would help??

    in reply to: Event Category Title in calendar list view #953526
    meredy
    Participant

    Well hmmm. I think I am using your default template but the theme (church & event) seems to put a few add ons into it as well.
    Is this your stuff?
    Basic Template Settings

    Default Events Template

    This is where I get the problem–if I disable this next line, no title shows up.
    Is this the themes problem to solve?
    _________________________________
    Disable the Event Search Bar
    Check this to use the classic header.
    ____________________________________

    meredy
    Participant

    Great! Now I just have to get comfy with where to place this code as I am using Church-Event template and they already have a tribe events folder which doesn’t have details.php in it–so do I go back to your plugin folder and grab the details.php file and stick it (altered) into their tribe-events/modules/meta folder (along with the only other file they have there (organizer.php))?

    meredy
    Participant

    One more question–if I apply this code will it only remove the category link from the “single event page”? In other words could I still type in “http://mysite/events/category/some-category/&#8221; and get a calendar page?

    meredy
    Participant

    thanks for the code!

    in reply to: thummbnails in events list widget #937749
    meredy
    Participant

    OK that works but I would also like to add the category name, short description, and link to purchase a ticket to each listing. Can that be accomplished the same way? IE
    <?php echo tribe_event_category(null, ‘category’) ?>
    but what code to put in to add first sentence of text?
    or to add button with link to tickets?

    meredy
    Participant

    I made a change to the functions.php file Got this error and immediately removed the code from the functions.php file and reuploaded it but nothing changed. How can I fix this???????
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    Here is original functions.php

    <?php
    
    /**
    * Theme functions. Initializes the Vamtam Framework.
    *
    * @package wpv
    */
    
    $GLOBALS['wpv_theme_tested_up_to'] = '4.0.x';
    
    require_once('vamtam/classes/framework.php');
    
    new WpvFramework(array(
    'name' => 'church-event',
    'slug' => 'church-event'
    ));
    
    // TODO remove next line when the editor is fully functional, to be packaged as a standalone module with no dependencies to the theme
    define ('VAMTAM_EDITOR_IN_THEME', true); include_once THEME_DIR.'vamtam-editor/editor.php';

    to which I added your code with change to list and img src:

    add_filter( 'tribe_events_before_html', 'add_list_view_header_img' );
    
    function add_list_view_header_img( $html ) {
    if ( ! tribe_is_list() ) return $html;
    $html .= '<img src="http://bachfestivalflorida.org/test/wp-content/uploads/2015/01/johnwchoir-H900x428.jpg" alt="" />';
    return $html;
    }
    meredy
    Participant

    I kind of messed up that post but I guess I’m asking how functions code might change if I am inserting shortcode into the html before area?

    meredy
    Participant

    Great advice but have an additional question–since I added short-code to the “html before” do I need to put that in the function area instead of the image src? See below:
    /**
    * Calendar page this
    */

    add_filter( ‘tribe_events_before_html’, ‘add_list_view_header_img’ );
     
    function add_list_view_header_img( $html ) {
        if ( ! tribe_is_list() ) return $html;
        $html .= ‘‘;
        return $html;
    Or this:
    /**
    * Calendar page
    */

    add_filter( ‘tribe_events_before_html’, ‘add_list_view_header_img’ );
     
    function add_list_view_header_img( $html ) {
        if ( ! tribe_is_list() ) return $html;
        $html .= ‘[blank h=”-85″]

    [/blank]
    [layerslider id=”5″]

    [/layerslider]

    [blank h=”-45″]

    [/blank]’;

        return $html;

Viewing 15 posts - 1 through 15 (of 18 total)