-
Henry replied to the topic don't want registration page to show after login in the forum How-to & Troubleshooting 11 years, 5 months ago
@benjino the whole menu is filtered so you can build as much of it or as little of it as desired.
Take the portion of my code that builds the link:
<li><a href="/register" title="Register">Register</a></li>
Changing this to
[Read more]
<li><a href="/link-before" title="Link before">Link before</a></li>
<li>
<a href="/register"… -
Henry replied to the topic Changing the avatar size on the Members page in the forum How-to & Troubleshooting 11 years, 5 months ago
You said my solution to remove the
bp_member_avatar
function in members-loop.php and replace it with<?php bp_member_avatar( 'type=thumb&height=30&width=30' ); ?>
didn’t work?i wanted to know the exact code you are replacing in that file.
-
Henry replied to the topic don't want registration page to show after login in the forum How-to & Troubleshooting 11 years, 5 months ago
@hnla Yes, spot on. The first function i wrote in a rush, i tired to target a specific menu but when i tried testing the function it didn’t work as expected. Although my second function will work, you’re right it will spit out the register link to all WP menus that are in operation
-
Henry replied to the topic Changing the avatar size on the Members page in the forum How-to & Troubleshooting 11 years, 5 months ago
Humm.. can you post the exact code you’re removing from members-loop.php?
-
Henry replied to the topic don't want registration page to show after login in the forum How-to & Troubleshooting 11 years, 5 months ago
Should have tested my function first. didn’t work. This one does work:
function custom_menu_item ( $items ) {
if ( !is_user_logged_in() ) {
$items .= '<li><a href="/register" title="Register">Register</a></li>';
}return $items;
}
add_filter( 'wp_nav_menu_items', 'custom_menu_item'… -
Henry replied to the topic don't want registration page to show after login in the forum How-to & Troubleshooting 11 years, 5 months ago
You can do this by making use of the
wp_nav_menu_items
hook to add the register link for logged-out users only. Put this in your functions.php:function custom_menu_item ( $items, $args ) {
if ( !is_user_logged_in() && $args->theme_location == 'INSERT-MENU-LOCATION-HERE' ) {
$items .= '<li><a href="/register"…[Read more] -
Henry replied to the topic Template hierarchy Codex page in the forum Requests & Feedback 11 years, 5 months ago
…and of course everyone else involved in the project.
-
Henry replied to the topic Template hierarchy Codex page in the forum Requests & Feedback 11 years, 5 months ago
-
Henry replied to the topic How can I get the activity like facebooks? in the forum Installing BuddyPress 11 years, 5 months ago
@bphelp nice!
-
Henry started the topic Template hierarchy Codex page in the forum Requests & Feedback 11 years, 5 months ago
This -> https://codex.buddypress.org/developer/theme-development/template-hierarchy/
..is fantastic (both in concept and the explanation of how it will work). Cannot wait for 1.8!
-
Henry replied to the topic Login or Register – Customize in the forum How-to & Troubleshooting 11 years, 5 months ago
In the old bp-default way of doing things, the registration page can be found at /registration/register.php
Once you upgrade to 1.8 (not available yet), the registration page will be available via the template /buddypress/members/index-register.php
With reference to the login page, perhaps someone else can help as I just use a widget
-
Henry replied to the topic How can I get the activity like facebooks? in the forum Installing BuddyPress 11 years, 5 months ago
@bphelp just took a look at your plugin, great attempt at activity privacy. Does it allow personal AND friend’s activity to appear in the same feed?
-
Henry replied to the topic Member list displaying twice in the forum How-to & Troubleshooting 11 years, 5 months ago
It isn’t displaying twice for me. I used Chrome to access just now and the list looks fine.
-
Henry replied to the topic Filtering question in the forum How-to & Troubleshooting 11 years, 5 months ago
Seem to have got the bugger working by adding the following to the function:
global $field;
$options = $field->get_children();and passing the proper number of variables to the function:
function edit_profile_radio($test, $options, $field, $selected, $k)
and
add_filter( 'bp_get_the_profile_field_options_radio', 'edit_profile_radio', 10, 5…
-
Henry started the topic Filtering question in the forum How-to & Troubleshooting 11 years, 5 months ago
I am trying to filter the edit profile radio button using the filter
bp_get_the_profile_field_options_radio
I am basically trying to add a class ‘regular-radio’ to the radio input. My code is:
function edit_profile_radio($test) {
[Read more]
$test = '<label><input' . $selected . ' type="radio" class="regular-radio" name="field_' . $field->id . '"… -
Henry replied to the topic One Activity Stream ( Personal, Mentions, Friends ) in the forum How-to & Troubleshooting 11 years, 5 months ago
It isn’t currently possible to have personal AND friend’s activity in the same activity feed. I have raised a ticket (#4988) but until then if you somehow find a way then please post here
-
Henry replied to the topic Changing the avatar size on the Members page in the forum How-to & Troubleshooting 11 years, 5 months ago
bp-core-widgets.php is a core file, you should try to avoid editing core files if possible.
Open members/member-loop.php and change the
bp_member_avatar
function to<?php bp_member_avatar( 'type=thumb&height=30&width=30' ); ?>
-
Henry replied to the topic setting the profile page as main page in the forum Creating & Extending 11 years, 5 months ago
add this line to your bp-custom.php file
define( 'BP_DEFAULT_COMPONENT', 'profile' );
-
Henry replied to the topic Dynamic profile fields in the forum How-to & Troubleshooting 11 years, 5 months ago
@hnla i’ve made a start but have to pop out for a while. You can see where i’ve got to so far
-
Henry replied to the topic Dynamic profile fields in the forum How-to & Troubleshooting 11 years, 5 months ago
Loving the second approach! although not as clean as the first approach, it’ll be much easier to do. jQuery show, hide and toggle could all be used to get the desired effect! i’m going to have a crack at it this weekend…
- Load More
@henrywright-1
Active 9 years, 10 months ago