Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • @ottiya

    Participant

    weird, now I can’t even see the author box anymore :S taking out the <?php tag did solve the syntax error however.

    will your code redirect /author –> /member’s profile page at all instances? e.g. also when a user clicks on the author name on the top of a blog post

    @ottiya

    Participant

    Hi @dcavins

    I added your code to the end of child theme > functions.php at the end of the code provided by @mastershas and got a syntax error

    @ottiya

    Participant

    @mastershas

    It might be difficult to get the follow button on the bottom of each blog post because it seems like the follow button on the profile page is only visible for logged in members

    But, the second part: making it so that when someone clicks “view all posts by author”, it goes to their buddypress members page not the author page would be really crucial because now I realized that many of the members don’t have an author page because they are not registered as a author on the wordpress backend.

    @ottiya

    Participant

    Hi @mastershas

    Thanks so much for this and for your help with the other query I had! I was able to successfully update the member profile page. For example here

    and add the profile box at the end of the post page like here

    How can I add the follow button in this profile box? I tried to add this code snippet, but I got an error:

    <div class="follow_button">
    		<div class="follow_icon">
    		 			<?php
              $args = array('leader_id' => bp_displayed_user_id(), 'follower_id' => bp_loggedin_user_id(),);
              echo bp_follow_get_add_follow_button($args);
              ?>
    		</div>
    	</div><div class="clear_follow"></div>

    Also, how can I make it so that when someone clicks “view all posts by author”, it goes to their buddypress members page not the author page

    @ottiya

    Participant

    @dcavins

    Correct, I added a plugin that replaces add friend with follow.
    I created a new directory of buddypress > members > single > cover-image.php and tried to add the following code but no luck:

    <div id="item-header-content">
                    
    <?php }else{?>
    <div class="follow_button">
    		<div class="follow_icon">
    		 			<?php
              $args = array('leader_id' => bp_displayed_user_id(), 'follower_id' => bp_loggedin_user_id(),);
              echo bp_follow_get_add_follow_button($args);
              ?>
    		</div>
    	</div><div class="clear_follow"></div>
    	<?php }?>

    @ottiya

    Participant

    @mastershas and @djpaul

    I was trying this for four hours yesterday with a developer highly experienced in php (but no experience with buddypress) and we weren’t able to get anywhere :S

    I created a directory on my child theme folder: buddypress > members > single > cover cover-image-header.php (did this here)

    tried to add for example to display Name + 15 word bio under <div id="item-header-content">:

    <?php $name = xprofile_get_field_data('Name' , bp_displayed_user_id()); ?>
    			<p class="user-nicename"> <input type="text" id="ht_user_name_box" value=""> </p>
    			<p class="user-nicename" id="ht_user_name"><?php echo (!empty($name) ? $name : bp_displayed_user_mentionname()); ?></p>
    		<?php endif; ?>
    		<?php $desc = xprofile_get_field_data('Your Bio in less 15 words or less' , bp_displayed_user_id()); ?>

    to add the follow button:

    	<?php }else{?>
    <div class="follow_button">
    		<div class="follow_icon">
    		 			<?php
              $args = array('leader_id' => bp_displayed_user_id(), 'follower_id' => bp_loggedin_user_id(),);
              echo bp_follow_get_add_follow_button($args);
              ?>
    		</div>
    	</div><div class="clear_follow"></div>
    	<?php }?>

    None of the code seems to be showing up on the test subdomain

    @ottiya

    Participant

    Hi @mastershas thanks for your suggestion. I’ll try this out. I was also wondering how I could modify the author bio at the end of each blog post to show the bio from the buddypress profile page (this was based on your other thread).

    @ottiya

    Participant

    Thanks for your reply @djpaul, really appreciated. I’ve been working on this for the past four months and I tried to outsource this to a freelancer, but it did not go well.

    I’ve read the page you’ve sent several times now, but I’m still unsure how to find the HTML to for example the following from the member/profile page:

    1) move <h1 class=”entry-title”>Ottiya</h1> under the avatar (for each profile page for all members)
    2) add profile base info right underneath the .entry-title (for each profile page for all members)
    3) the “follow” button is missing on the profile page and needs to be added. It’s currently only available here (for each profile page for all members)

    @ottiya

    Participant

    Hi @djpaul

    My theme was not built to be compatible with Buddypress unfortunately. Where can I edit the php and html myself for this issue? I was trying to navigate plugin > editor > buddypress but I couldn’t find the php for each members profile page and also the html file. So far I could only edit CSS using appearance > customize css.

    @ottiya

    Participant

    Hi @mastershas thanks so much for this! I was looking for it as well. Do you know how to allow members to edit their profiles so that the profile bio +photo on the bottom of their blog post is the same as the profile bio + photo on their buddypress page?

    @ottiya

    Participant

    @ottiya

    Participant

    Also looking for this! And also making it so that when you click on the author, it redirects to that person’s buddypress profile page

    @ottiya

    Participant

    Did this work for you? Having the same issue

    @ottiya

    Participant

    okay thanks

    @ottiya

    Participant

    I’m still trying to find what’s going on. I tried link-style none but that doesn’t work.

    How exactly can I choose the full-width page template for all of the BuddyPress pages?

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