Forum Replies Created

Viewing 15 replies - 1 through 15 (of 46 total)
  • Author.. is there any way you can make this plugin save the settings when it is deactivated or updated, etc? It’s a security risk when it revert back to default settings since it sends email addresses and IP addresses, etc.

    Thanks!

    Charles

    @lukaborna,
    Ultimate Member integration has not been removed, it’s now under the Membership tab. The developer has been adding so many features, he had to start categorizing them!

    I’ve been running the free version forever as well, and he’s only ADDING features, not taking any away.

    I don’t think there is even a pro version.. in fact there isn’t!

    Anyway.. this is one of the most effective plugins EVER for WordPress.. ZERO spam comments and registrations since I’ve been running it and that’s been for over a year now.

    Charles

    It actually only affects the MAIN site when creating any new site. If I make an admin like myself a member of the new site (23 in this instance), then I can no longer even look at the main site anymore.

    Let me look for PHP errors.

    OK.. created the site, got a 502 error right away (which is what happens), but it doesn’t show me any php errors (for some reason), so there is nothing I can show you. That’s why I had to go with the sysadmins on this one.

    I got locked out of my main site again, and had to rename the wp-users-media folder to get back in and delete the new site.

    It only seems to be a problem when I am CREATING a new site. If I create a site with WP-Users-Media off, the site creates properly, and then I can turn it back on afterwards and things are fine.

    Sorry, I wish I could tell you more.

    Charles

    Is there a way I can use your new Filters to fix the Playlist problem, so that I don’t have to go in and change the whole plugin code (as I’ve done above) each time you update?

    Thanks!

    Charles

    No.. I had to hack together a solution. Which works pretty well as it changes the page URL so that users can go back to where they were when the look at an article.

    It looks like you may have updated your playing though to perhaps solve the problem I was having?

    Here is the page I’m taking about: http://underground.net/latest

    I just need the repeating bit to be article and it would all be good.

    Thanks so much,
    Charles

    2.5.7. That error only shows up in the php error logs.. but it might have been that I was disabling and enabling the plugin.. so maybe it’s fine. I’ll check back if I still get it.

    Just put the code for the shortcode version and it works perfectly!

    Oh.. I just noticed a couple typos on your website, the beginning php tags on this page do not have the question marks, I think you need them unless I am mistaken.

    <php km_rpbt_related_posts_by_taxonomy( $post_id, $taxonomies, $args  ); ?>
    
    and
    
    <php km_rpbt_related_posts_by_taxonomy_gallery( $args, $related_posts  ); ?>

    Just wanted to point them out just in case.

    Thanks!

    Fantastic! That is so great that you did that! Will try it out when I get back to my conputer.

    You are by far one of the most helpful plugin developers there is which is why you fully deserve 5 stars and have been getting them.

    And your plugin is so lightweight, and just works so well.

    Thank you for everything!

    Charles

    OK, I’m using the functions.. and it won’t show related posts even if I tell it to show posts without thumbnails:

    <?php // first get the related post objects with the km_rpbt_related_posts_by_taxonomy() function.
    
    // check if the function already exists
    if ( function_exists( 'km_rpbt_related_posts_by_taxonomy' ) ) {
    
        $args = array(
            'posts_per_page' => 3,
            'post_thumbnail' => 0,
        );
    
        $taxonomies = array( 'category', 'post_tag' );
        $post_id =  $post->ID; // post id available inside the loop.
    
        $related_posts = km_rpbt_related_posts_by_taxonomy( $post_id , $taxonomies, $args );
    
        // check if related post were found
        if ( $related_posts ) {
    
            $args = array(
                'columns'    => 3,
                'size'       => 'thumbnail', // Default "thumbnail", "medium", "large", "full"
            );
    
            // display the related post thumbnail gallery
            echo km_rpbt_related_posts_by_taxonomy_gallery( $args, $related_posts );
        }
    } ?>

    It just shows 2 posts and the 3rd is blank. Is there something I am doing wrong?

    I’m using the echo shortcode approach..

    <?php echo do_shortcode( '[related_posts_by_tax]' ); ?>

    I’m using the code above for my lists of posts, where i have:

    if ( has_post_thumbnail() {
    the_post_thumbnail()
    } else {
    echo_first_image($post->ID);
    }

    I don’t have the fallback image as part of the code yet.

    Charles

    I’d like the plugin to grab ALL related posts, by using your code:

    $args = array(
           'post_thumbnail' => 0,
        );

    1 – If there IS a featured image, it will show it like it already does.

    2 – If there is no featured image, then it should grab the first attached image if there is one. Which my code above does.

    3 – If there is no attached image, then it will grab a default (fallback) image that I have set.

    I’ll try to write the code now and post it here if you want to add it to your plugin.

    Thanks!

    Charles

    Whoops.. didn’t realize I had posted the message! I wasn’t done writing it! Sorry about that!

    I’ve used some of WordPress’s code to implement where it grabs the first attached image and makes it a fallback:

    /***************************************************
    ::attached image
    ::http://codex.wordpress.org/Function_Reference/get_children#Examples
    :: Put - if ( ! has_post_thumbnail() { echo_first_image($post->ID); } in the template.
    ***************************************************/
    
    function echo_first_image( $postID ) {
    	$args = array(
    		'numberposts' => 1,
    		'order' => 'ASC',
    		'post_mime_type' => 'image',
    		'post_parent' => $postID,
    		'post_status' => null,
    		'post_type' => 'attachment',
    	);
    
    	$attachments = get_children( $args );
    
    	if ( $attachments ) {
    		foreach ( $attachments as $attachment ) {
    			$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'thumbnail' )  ? wp_get_attachment_image_src( $attachment->ID, 'thumbnail' ) : wp_get_attachment_image_src( $attachment->ID, 'full' );
    
    			echo '<img src="' . wp_get_attachment_thumb_url( $attachment->ID ) . '" class="current">';
    		}
    	}
    }

    I was just seeing if there was a way I could implement it into your code.
    I’m also in the process of adding in a default fallback image if there is not even an attached image.

    That goes something like:

    if ( ! $attachments ) {
    echo '<img src="' . wp_get_attachment_thumb_url( some-defult-image-id-here ) . '" class="current">';
    }

    I was going to try to implement the code and put it here for you, but I’m not that good of a coder.

    Thanks!

    OK.. I updated the plugin to handle playlists correctly, and it appears to work really well as a result.

    Here is the updated fluid-video-embeds.php

    Actually, I’m not sure if it will post on this forum correctly, so I am putting a link to the new code here:

    Updated Fluid-Video-Embeds

    Here is some more info for you.

    Here are the forms of the links of YouTube that are playlists:

    https://youtu.be/4PQrz8F0dBI?list=PLHNAKnd_6CWfOT0MUx5rqhlz247K-_KSJ

    or

    https://www.youtube.com/watch?v=4PQrz8F0dBI&feature=youtu.be&list=PLHNAKnd_6CWfOT0MUx5rqhlz247K-_KSJ

    And WordPress Embeds the url as such:

    https://www.youtube.com/embed/videoseries?list=PLHNAKnd_6CWcQH5Vurnzuf15PRQ2-WxSL

    Your plugin tries to grab the Video ID and then embeds the playlist as the usual embed, but with no ID.. so you end up with an invalid video embed.

    Since the Playlists always have a list= in the URL, worst case, you could perhaps just disable your URL rewrite for preg_match (anything with a ‘list=’ in the URL.)

    Or you could do the URL rewrite with ‘/embed/videoseries?list=‘ and that long number at the end.

    Thanks!

    Charles

Viewing 15 replies - 1 through 15 (of 46 total)