snorton

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 96 total)
  • Author
    Posts
  • in reply to: template tags in tabs? #121214
    snorton
    Participant

    I don’t work for Modern Tribe, so maybe I can help 🙂
    Try this (just remember that if you change your theme down the road you’ll find that this will give you an error):
    echo do_shortcode('[tabgroup title=""][tab title="About"]' . the_content() . '[/tab][tab title="Map"]' . tribe_get_embedded_map() . '[/tab][tab title="Artists"][subposts_show_childs slug="gallery-artists" link="true" excerpt="true"][/tab][/tabgroup]');
    Is your tabgroup title supposed to be blank?
    What if you choose not to display the map? You’ll want a variable to check if the map has been enabled in the event before outputting the tag I’d imagine:

    if (tribe_embed_google_map()) {$maptab = '[tab title="Map"]' . tribe_get_embedded_map() . '[/tab]'; };
    echo do_shortcode('[tabgroup title=""][tab title="About"]' . the_content() . '[/tab]' . $maptab . '[tab title="Artists"][subposts_show_childs slug="gallery-artists" link="true" excerpt="true"][/tab][/tabgroup]');
    in reply to: Missing Events in grid view and mini calendar widget #113422
    snorton
    Participant

    It was definitely a broader conflict. I’ve historically used both plugins in conjunction with each other but made some significant changes to the use of each plugin recently. Perhaps the issue always existed and I never noticed since, again, when logged in the problem doesn’t exist.

    The plugin developer has been unresponsive on wordpress.org’s forums and it appears as though there are several folks experiencing a variety of issues with it. User Access Manager allows an admin (or similar role) to assign groups to certain post_types and restrict access to other post_types (in my organization it’s best to allow specific managers to edit ONLY their pages. I don’t have the time to create a custom plugin for this type of management so I’ve relied on UAM).

    I spent some time trying to recreate the problem and haven’t been successful, so I cannot pinpoint exactly where the issue originates.

    I’ve simply disabled the plugin until I can develop an alternative solution to our workflow.

    So while my issue is not technically resolved, I understand it goes beyond the scope of which you guys are able to provide assistance.
    Thanks, Barry.

    snorton
    Participant

    @sunvalleycenter , I had a similar situation where I wanted to build a custom list view. This will need to be modified to fit your needs, but outputs recurring event dates correctly without repeating the initial event date:
    http://pastebin.com/NzGyFxEz

    in reply to: Getting rid of the "Country" in the address in list view #110271
    snorton
    Participant

    @sciotomile : I know that ECP has hooks aplenty for changing the output via functions, but you may find it easier to simply override the template files. In the case of overriding the List View template file, you’ll want to take the single-event.php from here: \wp-content\plugins\the-events-calendar\views\list
    and place a copy of it here:
    \wp-content\themes\[your theme]\tribe-events\list

    From there you can completely change the way the events are output in the list view. I prefer this method in times where I want to make considerable changes to default views.

    in reply to: How to change Date & Time format? #110195
    snorton
    Participant
    in reply to: Event Calendar widget month limit. #109907
    snorton
    Participant

    @andersha / @barry: Here’s a list widget template override I created for the same purpose of mimicking the style of the list of events in the mini-calendar widget without the calendar itself.

    http://pastebin.com/Pf7W1f4k

    in reply to: CSS overrides not working #109784
    snorton
    Participant

    try this:
    #sidebar > .tribe-events-adv-list-widget ol { padding-left:0; }

    I am assuming, of course, you’re referring to the indention on the list items? That space is actually created in your case with padding and not a margin. So your CSS would work, too, if you changed it to padding-left instead of margin-left. My solution should work, too.

    in reply to: Event Website data location in database #109767
    snorton
    Participant

    tribe_events are custom post types (CPT), but they use the same wordpress tables as regular post types. For the meta, it is going to be located in your wp_postmeta table (name may have a prefix depending on how your database was setup).

    in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109751
    snorton
    Participant

    Let me try this again. Tested on localhost and it returns what we’re looking for – my apologies for the messed up function above!!

    http://pastebin.com/Gs0DYgyH

    in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109740
    snorton
    Participant

    This also checks if you’re on a tribe event page.

    in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109739
    snorton
    Participant

    Well, whoops! I knew better but did it anyway.
    http://pastebin.com/XQGerpgV

    in reply to: Add Facebook Compatible Meta Data Tags to Each Event Page #109722
    snorton
    Participant

    It looks like you’re echoing nothing if there is a post thumbnail and a placeholder image if the featured image has not been set?

    Add this to your functions.php file to get it to (hopefully) work properly:

    <?php
    add_action(‘wp_head’, ‘my_featured_fb_image’);

    function my_featured_fb_image($post_id = null, $size = ‘full’) {
    $post_id = get_the_ID();
    $image_src = get_post_thumbnail( $post_id , $size );
    $fb_meta_tag = ”;
    if ( !empty( $image_src ) ) {
    $fb_meta_tag .= ‘<meta property=”og:image” content=”‘ . $image_src . ‘” >’;
    echo $fb_meta_tag;
    }
    else {
    echo ‘<meta property=”og:image” content=”http://www.sciotomile.com/wp-content/uploads/2014/02/Default_Feature_Thumbnail.png”/>&#8217;;
    }
    }
    ?>

    Also, for what it’s worth, here’s a ref to FB’s doc on the subject of Open Graph:
    https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content#tags

    in reply to: CSS overrides not working #109643
    snorton
    Participant

    @resonantimagery: I’ve learned that you must increase the specificity for your CSS in order to override the tribe styles. I’d be happy to point you in a more *specific* (horrible pun intended) direction if you’ll provide me with a link to a page that contains this widget.

    in reply to: How do I activate Events Calendar PRO on my current install #108011
    snorton
    Participant

    You need to download the Events Calendar Pro plugin. Assuming you’re logged in to this site, just follow the link to locate any plugins you’ve purchased from these guys. From there, to add the license key to the client site, go to [client url]/wp-admin/edit.php?post_type=tribe_events&page=tribe-events-calendar&tab=licenses

    in reply to: single-event template overide #91443
    snorton
    Participant

    @ken, to answer your question about displaying the categories as a definition list, you’ll want to go ahead and use:
    echo tribe_get_event_taxonomy($post_id,'before=<dd class="tribe-events-event-categories">&sep=</dd><dd class="tribe-events-event-categories">&after=</dd>'); // Classes added to allow for styling

    Not sure why there’s two functions to call the category/taxonomy, but I just find tribe_get_event_taxonomy easier to add the html $args to.
    If you’re wanting a comma-separated definition list, you’ll need to tweak this… I thought the proper structure for a dl list is:

    <dl>
    <dt></dt>
    <dd></dd>
    </dl>

    or:

    <dl>
    <dt></dt>
    <dd></dd>
    <dd></dd> <--! etc., etc. -->
    </dl>
Viewing 15 posts - 16 through 30 (of 96 total)