Forum Replies Created
-
Hi Boone,
Thanks for getting back to me.
I was unable to provide a screenshot of the issue, because there is no way to upload a screen shot of the image from my computer and the IMG link only shows a blank.
Ideally, this is how I want the logic to work:
If the comment button counter is set to 0, read only = false, I want the comment button to be editable for the user to make the first comment on a post.
After the first comment is made, make the comment button read only = true. Not editable. Where users can only reply to replies on a post.
Hope that makes more sense.
Thanks,
Naomi
Hi Boone,
Thanks for getting back to me, the css code you provided doesn’t work when I tested it. I think what I was trying to achieve required a direct modification to the code.
After thorough testing I realized that some of the code I removed caused an impact on the ability to save a username in the compose box.
After fine tuning the code module, I finally got it to work, I will share the revised cover-image-header.php file here.
But please make a copy of the original cover-image-header.php file and save it to a text file before making any changes to the original cover-image-header.php file.
This is where you can find the cover-image-header.php file: public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php
<?php
/**
* BuddyPress – Users Cover Image Header
*
* @package BuddyPress
* @subpackage bp-legacy
*/?>
<?php
/**
* Fires before the display of a member’s header.
*
* @since 1.2.0
*/
do_action( ‘bp_before_member_header’ ); ?><div id=”cover-image-container”>
“><div id=”item-header-cover-image”>
<div id=”item-header-avatar”>
“><?php bp_displayed_user_avatar( ‘type=full’ ); ?>
</div><!– #item-header-avatar –><div id=”item-header-content”>
<?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?>
<h2 class=”user-nicename”>@<?php bp_displayed_user_mentionname(); ?></h2>
<?php endif; ?><div id=”item-buttons”><?php
/**
* Fires in the member header actions section.
*
* @since 1.2.6
*/
do_action( ‘bp_member_header_actions’ ); ?></div><!– #item-buttons –><span class=”activity” data-livestamp=”<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>”><?php bp_last_activity( bp_displayed_user_id() ); ?></span>
<?php
/**
* Fires before the display of the member’s header meta.
*
* @since 1.2.0
*/
do_action( ‘bp_before_member_header_meta’ ); ?><div id=”item-meta”>
</div><!– #item-meta –>
</div><!– #item-header-content –>
</div><!– #item-header-cover-image –>
</div><!– #cover-image-container –><?php
/**
* Fires after the display of a member’s header.
*
* @since 1.2.0
*/
do_action( ‘bp_after_member_header’ ); ?><div id=”template-notices” role=”alert” aria-atomic=”true”>
<?php/** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
do_action( ‘template_notices’ ); ?></div>
I finally figured out how to remove the view link.
I will just say I had to remove a lot of code from the “cover-image-header.php” file, through trial and error, without breaking my site.
Cheers