Forum Replies Created
-
Nvm turned out I had a /* on one of the lines in my style.css preventing any changes.
I changed up the code as well.form#whats-new-form { border-style: solid; border-color: #82E0AA; border-width: 5px; padding: 10px 15px; }
Carsten double check your code and previous code.
border-color*
Not sure if thats the issue.
I myself am having issues with the what’s new form.
Trying to change border color.#buddypress form#whats new form { background-color: #82E0AA; padding: 4px 0 !important; }
This is how it’s done, I found a way
<button onclick="myFunction()">Try it</button> <script> function myFunction() { var x = document.getElementById('item-header'); if (x.style.display === 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } } </script>
@henrywright ty for heading me towards the right path.
For the hide nav bar code that was posted dont forget to comment out
Lines 110-112 in the home.php because it will cause a conflict when u hide that nav bar.// If nothing sticks, load a generic template // else : // bp_get_template_part('members/single/plugins');
I forgot to mention to comment out line 28-38 in the home.php
I use a child theme .php may differ for others.Should look like this
<?php /** If the cover image feature is enabled, use a specific header if ( version_compare( BP_VERSION, '2.4', '>=' ) && bp_displayed_user_use_cover_image_header() ) : bp_get_template_part( 'members/single/cover-image-header' ); else : bp_get_template_part( 'members/single/member-header' ); endif; */ ?>
If not commented out u will get blank page.
Found the solution to that last post
#Profile-cover-inner. Will only take out the actual pic.This will get ride of the Avatar and profile cover container,
Added to style.css.buddypress div#item-header { display: none !important }
But I think I’ll add a toggle the container to switch it on or off. I will need to research how to do that.
Tyvm for the reply,I also found another way by adding this to header.php
<?php if ( bp_is_my_profile() ) { ?> <style type="text/css" media="screen"> div#item-nav { display: none !important; } </style> <?php } ?>
Right now Im trying to Figuer out how to hide the profile cover and avatar
On the profile page.I might be able to use same code above and just change out #item-nav to
#Profile-cover-inner.I’ll have to see
Thank you for the reply.
Unfortunatly thats not what i was trying to do.
Here’s what iv done so far.I created an empty file in /kleo-child/buddypress/members/single and named index-action-change-avatar.php
in /kleo-child/buddypress/members/single/index-action-change-avatar.php i’ve copied/pasted the content of the bp-templates/bp-legacy/buddypress/members/single/profile/change-avatar.php template.
added get_header(); before the pasted content and get_sidebar(); & get_footer(); after it.
I then copied the code fron change-avatar.php and pasted it to my newly created page(Avatar Upoload).
it works but it has some template issue.
not sure how to fix that yet but im still searchng, the actual upload and crop part im sure to have issues to sort out there as well.Update: nvm it only worked flawlessly when I had it all to the default wp-login.php.
When someone registers to my site they are redirected to my buddypress register.php and within that page is would say thank you for registering please check your email for activation link.
I wanted to place a resend activation email on the same page so I placed this code in that register.php file
$resend_url=( ‘If you have not received an email yet, click here to resend it.’, ‘buddypress’ ), esc_url( $resend_url ) );
The problem is ran into is the plugin wp security I use has an option to change the wp-login.php to whatever I want so I just renamed it to /login.
I then changed the wp-login.php in the code to login?action and the linked redirected to the correct wp-login now the /login page but never sent the resent activation email.
I also have it when a user trys to login without activating first it would post an error on the login popup with the resend activation email, if I keep wp-login.php it works but if I change the wp-login.php to just /login it won’t work.
Those two issues have me confused. I’m totally new to php and recently been studying as much as I can but all the documentation out there had me struggling to Figuer this out.
Does anyone by chance have any insight on this?Update:
Yup was wp security plugin, I changed my wp-login.php to login.
I made the changes in all the .php files I needed. Works flawlessly.
Ty again for the help.
Tyvm for the reply.
It seems I get redirected to a 404 page when the resend activation email link is clicked.
Here’s the path that leads to it.
/wp-login.php?action=bp-resend-activation&id=3586&_wpnonce=1fc8482a5b
Most likely a plugin conflict since I hide wp pages from the public.I’m trying to do something similar like the code below.
class=”bp_registration_needs_activation”>Resend Activation EmailJust a quick update.
I’ve been searching nonstop threw documentation/Codex and I came up with this code,global $wpdb; /* lets retrieve the email of users who signed up $wpdb */ function get_user_by( ‘email’,‘null’ ) $user_email = $wpdb->wpjm_signups (‘user_email’); if ($signups) { echo "sent to " . $user_email ; } else { echo "email not listed."; } //Creating a shortcode to display signup email add_shortcode( 'user_email');
I placed it in my themes functions.php file but had to delete it due to the 500 error.
Am I on the right track?