-
Henry replied to the topic HTML filtering of profile feilds in the forum How-to & Troubleshooting 11 years ago
To my knowledge, profile fields accept HTML. Have you tried inserting tags to see? try adding
<strong>test</strong>
to a profile field to see if the text is bolded. -
Henry replied to the topic HTML filtering of profile feilds in the forum How-to & Troubleshooting 11 years ago
@harpeml do you want to disallow all HTML tags? or allow certain ones?
-
Henry replied to the topic 2.0 top features – ideas in the forum Ideas 11 years ago
@anointed with reference to the large number of joins throughout the code and speed issues – where would you say speed improvements can be made in BP?
-
Henry replied to the topic 2.0 top features – ideas in the forum Ideas 11 years ago
I’d love big new features to be left up to plugins and 2.0 to focus on speed improvements and code optimisations which will all make for a zippy user experience.
-
Henry replied to the topic Change default email wordpress@mydomain.com in the forum How-to & Troubleshooting 11 years ago
@synaptic I didn’t realise the auto emails were sent from ‘wordpress’@mydomain so thanks for this!
The code does go into your theme’s functions.php file. This is what I have:
function custom_wp_mail_from( $email ) {
[Read more]
$handle = 'laurentdesserrey';
$find = 'http://';
$replace = '';
$link = get_bloginfo( 'url'… -
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
I wanted to avoid editing templates
I suppose you could achieve what you’re trying to do by using a bunch of action hooks although the advantage of theme template files is they are there to be edited.
Hopefully you’ll be able to get your plugin approach to work! Perhaps it might be worth throwing BP Profile Search into the mix. It offers some…[Read more]
-
Henry replied to the topic Search form in the forum Creating & Extending 11 years ago
Copy bp_message_search_form() to your theme’s functions.php file then change the name to custom_message_search_form(). You can then use the custom search form function in your theme templates.
-
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
Essentially it sounds like you need two roles. Band and fan.
Then, once a ‘band’ user has logged in after they’ve registered you want them to be able to embed music into their profile. Users of role ‘fan’ won’t be able to do this.
On those requirements, why isn’t it as easy as the process outlined in my post?
Once you have separated the fans…[Read more]
-
Henry replied to the topic Problem editing email templates (notifications) in the forum How-to & Troubleshooting 11 years ago
You could try Welcome Pack
-
Henry replied to the topic Problem editing email templates (notifications) in the forum How-to & Troubleshooting 11 years ago
You can usually update content of these emails via a filter. See the Codex for more info https://codex.wordpress.org/Function_Reference/add_filter
For example, to filter the email body for message notifications, use
messages_notification_new_message_message
. To filter the subject line, usemessages_notification_new_message_sub…
[Read more] -
Henry replied to the topic Future of BuddyPress? in the forum Miscellaneous 11 years ago
JJJ’s work on the notifications component pretty much answers that question. If you look at the updates in the Trac ticket you’ll see just how much time and effort he has put in over the past month.
-
Henry replied to the topic 1.9 top features – ideas in the forum Requests & Feedback 11 years ago
I’m looking forward to the new notifications component! Notifications facilitate interaction – now they’re going to be super charged!
-
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
Ah I see! Can you try setting up a new profile field called ‘Role’ – make it of type option list and have ‘fan’ and ‘band’ as the options available.
This field will then appear on the registration form. As a user signs up they’ll choose if they are a fan or a band. Then that info will be saved as an xprofile field and will be searchable. To my…[Read more]
-
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
Remember you asked the same question in another thread few weeks ago
Can you dig out the link and paste it here? I’m trying to understand your exact requirements – and maybe that will help. If I asked the same question then it is possible that I found a solution to it already
-
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
@noizeburger yep, it is for use in your templates. For example, your page template could look like this:
<?php get_header(); ?>
// put the code here
<?php get_footer(); ?>
-
Henry replied to the topic Password problem in the forum How-to & Troubleshooting 11 years ago
Also on another topic I would like the site admin to use the registration page to add new users but if the site admin is logged on then they cannot view the page because of redirects, is there a way to turn this off some how?
I’d raise each different question you have as a separate thread. That way, the thread title will catch the eye of readers…[Read more]
-
Henry replied to the topic Trim Field Text in the forum Installing BuddyPress 11 years ago
Do you want to trim the text on output? Or do you want to accept a maximum number of characters on user input?
-
Henry replied to the topic Passing user role to custom xprofile field in the forum Creating & Extending 11 years ago
@noizeburger I think I get what you mean. To show all members of type ‘fan’ in a “fan directory” you would do this
<?php
$fans = get_users( array( 'role' => 'fan' ,'fields'=>'ID') );
$fans = implode( ',', $fans );if ( bp_has_members( '&include=' . $fans ) ) :
while ( bp_members() ) : bp_the_member();
// you can output whatever you…[Read more] -
Henry replied to the topic Transition Effects on Activity/Member/Home in the forum How-to & Troubleshooting 11 years ago
1: There is some inconsistency, yes.
2: It isn’t specific to your installation. bp-default implements the transition effects (see global.js) in certain but not all places
3: bp-default, whilst a fantastic theme in my opinion, has come to the end of it’s life and will be retired in 1.9 (currently in beta). Look out for the brand new and improved…[Read more]
-
Henry started the topic Must 'name' be a required field? in the forum How-to & Troubleshooting 11 years ago
Is there any reason why ‘name’ must be a required field? I’m working on a site that focuses on the member’s username so there is little need to display a member’s name.
My question is – do you know if anything will break if I disable the name field – or make it non-mandatory?
- Load More
@henrywright-1
Active 9 years, 10 months ago