Premium support

Please log in to post in these forums. If you didn't create an account when you purchased, please contact us.

Free support

If you haven't purchased GP Premium, support for the free theme can be found on WordPress.org.

Nathan Pinno

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Want your site showcased? #443939

    @bradwellsb: Awesome site, I hope you don’t mind if I give you some link love on my site?

    in reply to: Want your site showcased? #443367

    I’d like to share this new community website I created after trashing that other site. It’s for all those who want to follow Jesus first in their lives.

    https://www.disciples-of-jesus.org/

    in reply to: How do I link blog post authors to their BP profiles? #441437
    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    // END ENQUEUE PARENT ACTION
    add_filter('generate_post_author_output','generate_post_author_output_buddyprss_url');
    
    function generate_post_author_output_buddyprss_url( $post_author_profile_link ) {
    	if ( ! function_exists( 'bp_core_get_user_domain' ) ) {
    		return $post_author_profile_link;
    	}
    
    	$post_author_profile_link = sprintf( ' <span class="byline">%1$s</span>',
    		sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <a href="%2$s" title="%3$s" rel="author"><span class="author-name" itemprop="name">%4$s</span></a></span>',
    			__( 'by','generatepress'),
    			esc_url( bp_core_get_user_domain( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'Know more about %s', 'generatepress' ), get_the_author() ) ),
    			esc_html( get_the_author() )
    		)
    	);
    
    	return  $post_author_profile_link;
    }

    This is what it looks like. I missed that last } though… oops!
    /me feels embarrassed…

    in reply to: How do I link blog post authors to their BP profiles? #441027

    According to the log, it’s a syntax error:

    syntax error, unexpected end of file in /home/ao/public_html/wp-content/themes/generatepress-child/functions.php on line 25

    It’s also what caused the last 3 white screens of death. RAM appears to be just fine.

    The code is:

    <?php
    // Exit if accessed directly
    if ( !defined( 'ABSPATH' ) ) exit;
    
    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED - Do not modify or remove comment markers above or below:
    
    // END ENQUEUE PARENT ACTION

    So how do I fix it so that the error doesn’t pop up when I add the code to change the author link?

    in reply to: How do I link blog post authors to their BP profiles? #441019

    Worked before I added it to the child theme’s functions.php, but after I added it, I got the white screen of death still! 🙁

    in reply to: How do I link blog post authors to their BP profiles? #440943

    Tried it and still got a White Screen of Death. 🙁 Anything else or should I give this up as a lost cause?

    I’m getting very tempted to switch to a theme with built-in BP support in the blog author profiles, and will most likely do so if we can’t find a solution for this.

    in reply to: Want your site showcased? #440941

    I’d share the site I’m creating as I’ve done a lot more customizations to it than my personal blog, but since it is NSFW, I won’t. Though I’d be happy to share the link via email or private message.

    in reply to: How do I link blog post authors to their BP profiles? #440865

    Tried using both a plugin and via a child theme. Both refused to work and gave me the infamous white screen of death. Given that this worked with 1.4 of the theme (and WP 4.8 and the latest version of BP), something must have changed.

    in reply to: How do I link blog post authors to their BP profiles? #440786

    Okay, when I tested the code for 2.0beta3 (as that’s what the site is running on for GP), it white screened my site. Not good! Don’t know if it’s a bug, or something else. Figured I’d better report this so that it can get fixed and a solution to my problem be found.

    in reply to: How do I link blog post authors to their BP profiles? #440772

    If anyone’s curious, here’s the code that I found (thanks to mastershas from the BuddyPress.org support forums!):

    
    // Change Post's Author URL to Buddypress Profile URL
    add_filter('generate_post_author_output','generate_post_author_output_buddyprss_url');
    
    function generate_post_author_output_buddyprss_url( $post_author_profile_link ){
    $post_author_profile_link = sprintf( ' <span class="byline">%1$s</span>',
    			sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <a href="%2$s" title="%3$s" rel="author"><span class="author-name" itemprop="name">%4$s</span></a></span>',
    				__( 'by','generatepress'),
    				esc_url( bp_core_get_user_domain( get_the_author_meta( 'ID' ) ) ),
    				esc_attr( sprintf( __( 'Know more about %s', 'generatepress' ), get_the_author() ) ),
    				esc_html( get_the_author() )
    			)
    		) ;
    return  $post_author_profile_link;
    in reply to: Want your site showcased? #440662

    I use it on my blog and I love what I can do with it.

    https://whiteeagleaerie.com/

Viewing 11 posts - 1 through 11 (of 11 total)