Forum Replies Created

Viewing 15 replies - 106 through 120 (of 145 total)
  • Thread Starter polyfade

    (@polyfade)

    Sorry, about that. I overlooked it. Under ‘Advanced Options’ > ‘Menu Icon’

    Thread Starter polyfade

    (@polyfade)

    Inspecting the image errors further, it looks like it has issues getting the thumbnails.

    First of all, it’s not even trying to get the thumbnail size, rather it’s calling for the full size photos instead and using them as thumbnails inside the div galleria-thumbnails

    Thread Starter polyfade

    (@polyfade)

    When choosing the Galleria option, I receive a bunch of error messages:

    Could not extract width/height from image: http://farm4.static.flickr.com/3911/15361774315_e28fbdc08c_m.jpg. Traced measures: width:0px, height: 0px.

    Thread Starter polyfade

    (@polyfade)

    I see, this really needs your SCREEN NAME, not Flickr ID.

    This did NOT work taking the Flickr ID from here:
    https://www.flickr.com/photos/myusername/

    Thread Starter polyfade

    (@polyfade)

    I’ve found this solution to somewhat work, but without the number of media items being relative:

    //restrict authors to only being able to view media that they've uploaded
    function ik_eyes_only( $wp_query ) {
    	//are we looking at the Media Library or the Posts list?
    	if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/upload.php' ) !== false
    	|| strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) {
    		//user level 5 converts to Editor
    		if ( !current_user_can( 'edit_others_posts' ) ) {
    			//restrict the query to current user
    			global $current_user;
    			$wp_query->set( 'author', $current_user->id );
    		}
    	}
    }
    
    //filter media library & posts list for authors
    add_filter('parse_query', 'ik_eyes_only' );
    
    add_action('pre_get_posts','ml_restrict_media_library');
    
    function ml_restrict_media_library( $wp_query_obj ) {
        global $current_user, $pagenow;
        if( !is_a( $current_user, 'WP_User') )
        return;
        if( 'admin-ajax.php' != $pagenow || $_REQUEST['action'] != 'query-attachments' )
        return;
        if( !current_user_can('edit_others_posts') )
        $wp_query_obj->set('author', $current_user->ID );
        return;
    }

    For some reason, this works !current_user_can( 'edit_others_posts' ) but this does not, !current_user_can( 'manage_media_library' )

    I’m actually having the same issue and I have v 1.1.9 installed along side ACF v5.0.7 and WordPress v4.0.

    I think I’m confused myself when addressing images from ACF, too.

    For clarity, this works:
    [field image="cover_image"] and [content image="cover_image"]

    If I have Image Array picked in ACF, then this DOES NOT work:

    [field image="cover_image" in="object"]

    HOWEVER, if I have Image Array picked in ACF, then this works:

    [field image="cover_image" in="id"]

    When choosing Image Array in ACF, this only outputs the Image ID number:

    [content field="cover_image" in="object"]

    However, the two methods that do work output the same markup.
    Example:

    <img width="460" height="380" src="http://mysite.com/wp-content/uploads/cover.jpg" class="attachment-full" alt="My Great Cover">

    Is it possible just to pull the image url from the ACF image field because I want to customize the output further?

    Thread Starter polyfade

    (@polyfade)

    There’s probably a more efficient way of displaying the onChange event for users. This is what I came up with:

    <?php
    $args = array('selected' => 'false', 'name' => 'author', 'who' => 'authors', 'include' => '14,15,16');
    $blogusers = get_users($args);
    ?>
    
    <form action="<?php bloginfo('url'); ?>" method="get">
    <select id="select-of-tags" name="author" onchange="if(this.selectedIndex){location.href=(this.options[selectedIndex].value)}">
    <option value="">View Authors…</option>
    <?php foreach ($blogusers as $user) {?>
    <option value="<?php bloginfo('url'); ?>/author/<?php echo $user->user_login ?>"><?php echo $user->display_name ?></option>
    <?php } ?>
    </select>
    </form>

    Anyone have a better solution?

    Interested too, I posted this question to the original developer.

    You can follow it here:
    https://github.com/samsono/Easy-Responsive-Tabs-to-Accordion/issues/48

    Thread Starter polyfade

    (@polyfade)

    Nevermind, I figured it out. Example:
    [content field="my_acf_field"]

    Does the pro version include the functionality to exclude authors as well as categories?

    Thread Starter polyfade

    (@polyfade)

    I tried adding some css to resolve the issue, but maybe fitvids.js could fix the resize better by figuring out the aspect ratio?

    I referred to this post: http://www.smashingmagazine.com/?p=135771

    The following markup works well enough that the video isn’t hidden.

    .wp-theater-bigscreen-inner {
    position: relative;
    padding-bottom: 56.25%; /* This is for 16:9 ratio only */
    height: 0;
    overflow: hidden;
    }
    
    .wp-theater-bigscreen-inner iframe {
        position: absolute;
        top:0;
        left: 0;
        width: 100%;
        height: 100% !important;
    }

    Thread Starter polyfade

    (@polyfade)

    @kentfarst Unfortunately, the version I’m running locally, Foundation 4.3.2, is in development, but this installation of Foundation 4.1.2 has the same issue.
    http://mtype.com/?p=7

    If the video isn’t loaded inside the active (initial) tab, there needs to be a callback function otherwise the main video doesn’t size properly on tab change.
    Reference to the JS that makes Foundation’s tabs function: foundation.section.js

    BTW, do not refer to Foundation’s most recent docs on version 5.x as tabs are handled differently. Please refer to Foundation v4 branch on Section.

    Thanks!

    Thread Starter polyfade

    (@polyfade)

    I also tried installing a fresh install of this plugin (v1.2.21) on a different WP install using the TwentyFourteen theme. Getting the same result. BTW, I’m using the shortcode on a page, not post if that makes a difference.

    Thread Starter polyfade

    (@polyfade)

    Tijmen, I’m using TwentyTwelve with WP 3.9.1, no other plugins activated and no alteration to the theme or this plugin via functions.php or otherwise.

    I double checked. It’s loading the style sheet just before the <body> ends rather than inside the <head>.
    Styles

    Recently, I also noticed the same form being submitted several consecutive times by the same people.

    Meaning, someone clicked ‘Submit’ 3 times in a row and now my inbox has 3 identical messages.

    It seems during the submission process, the submit button isn’t being disabled. Yikes!

    How to fix?

Viewing 15 replies - 106 through 120 (of 145 total)