Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • @mosesyoon

    Participant

    Hello BP community,

    Can somebody assist me with the above question please? I would like to remove “User Name” label and field from the Registration form. Please help? Thank you.

    @mosesyoon

    Participant

    @shanebp, I’ll definite take a look carefully. Thank you!

    @mosesyoon

    Participant

    Hi @shanebp,

    I’m still trying to figure this out after a week of trial and error. Let’s step back a little for a second if we may…

    So, on http://www.ymphony.com, when a user clicks on a post’s avatar, I’d like the site to direct the user to the avatar’s profile page. The profile page is created by Buddy Press.

    It doesn’t seem like the following is relevant because I think you assumed that it was for a post:

    printf( ‘%s‘, bp_core_get_user_domain( $post->post_author ), $image, the_title_attribute( ‘echo=0’ ) );

    Correct?

    If the link is on the avatar, what code should I place and where?

    This has been a bit challenging but thank you for hanging in there with me!

    @mosesyoon

    Participant

    @shanebp, you don’t see a face for each post? That’s the image I’m referring to.

    @mosesyoon

    Participant

    Hi – I go to a page that lists all of the posts that “riseUp” created. Like this:

    http://ymphony.com/author/mosesyoon/

    @mosesyoon

    Participant

    Yes, @shanebp, I just tried this and there was no change – when I click on the avatar picture, I am taken to all the posts that I made (archive) rather than my profile.

    Do you have any other suggestions? Thank you.

    @mosesyoon

    Participant

    Hi @shanebp,

    I’ve been struggling with this a bit…as I was looking at your reply to me from the beginning of this discussion thread. I may need a little more explicit instruction if possible as I wasn’t following your instructions. Could you provide a bit more info here? Thank you!

    @mosesyoon

    Participant

    Yes, it is the code above.

    I wasn’t sure what you meant when you said “try and replace it with ==. Can you please clarify? Thanks.

    @mosesyoon

    Participant

    Hm….when I copied and pasted your suggested code, I get the following message:

    Parse error: syntax error, unexpected ‘=’ in /home/content/p3pnexwpnas06_data03/32/3122732/html/wp-content/themes/streamline-pro/functions.php on line 107

    What do you think? How do you think I should adjust this code? Thank you!

    @mosesyoon

    Participant

    Hi all,

    Didn’t seem to work. This is what I did.

    I pulled up the following code in functions.php:

    
    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {
    
    	if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    	
    	if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    	
    }

    …and then tried to add bp_core_get_user_domain( $post->post_author ); like that resulted in this:

    //* Add post image above post title
    add_action( 'genesis_entry_header', 'streamline_post_image', 1 );
    function streamline_post_image() {
    
    	if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    		return;
    	
    	if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    		printf( '<a href="bp_core_get_user_domain(">post_author ); rel="bookmark"><img src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    	}
    	
    }
    

    …however, when I clicked on the avatar picture, the above code update did not lead me to the user’s profile page. Rather, it continued to show the list of posts the author created in the past.

    Am I doing this right? Can somebody continue to assist please? Thanks!

    @mosesyoon

    Participant

    Gracias. Thank you!

    @mosesyoon

    Participant

    Sorry – WP version: 4.4.2

Viewing 12 replies - 1 through 12 (of 12 total)
Skip to toolbar