Search Results for 'buddypress'
-
AuthorSearch Results
-
August 22, 2014 at 2:18 am #188229
Topic: Limiting Membership Profiles
in forum How-to & TroubleshootingGrKmP
ParticipantI was wondering if in BuddyPress, you could allow some members to have a profile, and not allow the remaining members to have one. I was looking online, but I couldn’t find anything on it. Thanks ahead of time.
August 21, 2014 at 10:43 pm #188045In reply to: Not getting the activation mail
danbp
ParticipantIs yor site allowed to send mails ?
Deactivate buddypress and regisrer from WP. If you don’t receive the mail you have to get in contact with your hoster or read the host documentation.Good read here, with some wise recommendation from @hnla
August 21, 2014 at 9:09 pm #187770In reply to: using placeholder attribute instead of label
danbp
ParticipantHi @mmadden,
not sure i understand what you want to achieve. Are you creating a register page from scratch ?
Anyway….
Open the original BP register file (/buddypress/bp-templates/bp-legacy/buddypress/members/register.php). It contains many placeholders and conditionnalsSo, for the mandatory NAME xprofile group (the only one you use), you have line 65
if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); --- blah---Line 75 sit this placeholder
do_action( 'bp_custom_profile_edit_fields_pre_visibility' );where you can hook your additionnal information.Line 98 there’s another one:
do_action( 'bp_custom_profile_edit_fields' );just above this function:<p class="description"><?php bp_the_profile_field_description(); ?></p>In register.php, the section you speak about goes from line 50 to 112
From/***** Extra Profile Details ******/to</div><!-- #profile-details-section -->Of course, you can also add your own placeholder to your register template.
Sorry if i’m wrong.
August 21, 2014 at 8:27 pm #187766Topic: using placeholder attribute instead of label
in forum How-to & Troubleshootingmmadden
ParticipantI’m using WordPress 3.9.2 with BuddyPress 2.0.2. I’m building a new theme and on the registration page I’d like to use the placeholder attribute instead of a label to guide users through the setup. It was easy enough to move the php into a new placeholder attribute for the input fields in the basic-details-section, but since the profile-details-section is different, there is no input field to add a placeholder attribute. How might I accomplish the same thing in the profile field (I only have the default one) that I did with the others?
August 21, 2014 at 8:02 pm #187765Christian Freeman (codelion)
ParticipantAlright, I have an update.
It turns out that BuddyPress Activity Plus was not to blame after all. For some reason, when I use
$retval['object'] = 'status';it only shows activity updates that I’ve just submitted. Once I refresh the page, the stream is empty again.So I changed the function you provided to try to get around this, and to be conditional to the home page of my eX-Stream site only:
function bpfr_filtering_activity( $retval ) { global $blog_id; // activities to filter on, comma separated if ( $blog_id == 13 && is_front_page() ) { $retval['action'] = 'activity_update'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'bpfr_filtering_activity' );August 21, 2014 at 7:10 pm #187763Christian Freeman (codelion)
ParticipantThanks a lot @danbp!
The function you provided was EXACTLY what I needed. I appreciate the post you provided with additional info as well. Extremely helpful stuff.
After I added the function I realized that my activity stream was not showing anything. Then, I figured out that the BuddyPress Activity Plus Plugin doesn’t register status updates. So, once I deactivated it, everything was working perfectly.
Thanks again, you are a huge help!
August 21, 2014 at 5:57 pm #187722shanebp
Moderator> it seems as complicated as re-writing the bp_get_activities
It’s not even close to being that complicated.
This examples are re members, but should give you an idea of the general approach to a custom process:
August 21, 2014 at 5:09 pm #187720shanebp
ModeratorIf I was doing this, I would write a custom function(s) to gather the activity ids.
And that function would most likely contain one or more custom db queries.If you are unable to write such queries, you may want to consider hiring a developer.
August 21, 2014 at 5:04 pm #187719laxmanvel
ParticipantHi Dandp,
Thanks for your reply.
OH is it? if i customize template file then will update version overridden.! okay i understand your words.!
finally get URL value. i want message thread id from URL.
Just using simple keyword ( bp_get_thread_id(); )
this function get current URL thread id in Buddypress.-Laxmanvel
August 21, 2014 at 4:48 pm #187718Topic: Activity feature
in forum How-to & Troubleshootingitisix
ParticipantHi,
I love the activity feature I get when I’m logged as admin. In my CP I just click the icon and get a list of posts, replies and who registers in neat order.
My users can’t get this, nor can they get decent info from the activity option from the drop down top menu… or can they?
Latests versions of WordPress, BBpress and Buddypress.
Thanks,
August 21, 2014 at 4:29 pm #187714danbp
ParticipantOops !
i’m customize the buddypress template files in bp-legacy folder in buddypress plugin directory.
Don’t that, as at next BP update your work will be overridden.
Message URL’s are built dynamically. So you can’t fetch them diretly from within the template. You need a custom function to do that and use it from your theme’s functions.php.
Read in file bp-messages/bp-messages-classes.php
Read this topic for some inspiration.
August 21, 2014 at 3:02 pm #187708aces
ParticipantUsing firefox on http://animalsfunnypictures.com/members/sanaa/ I can see
entry-content img {which has awidth: 510pxif i disable it in firefox it becomes the ‘normal’ size.This is coming from Marla theme’s style.css on line 1464 – see for yourself…
August 21, 2014 at 2:43 pm #187705In reply to: [Resolved] No button for finishing registration
danbp
Participanthave you salt keys in your wp-content.php ?
http://stackoverflow.com/questions/18771957/wordpress-does-not-properly-display-css-file
and use the given script to check the db.
aside, @r-a-y responded on the ticket. Unsurprisingly, like me, he couldn’t replicate the issue
August 21, 2014 at 2:14 pm #187696In reply to: [Resolved] How do I modify the navigation?
danbp
ParticipantWhich theme do you use ?
And have you already created a child-theme ?Generally such modification can be done by CSS.
August 21, 2014 at 2:09 pm #187695In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorThere might actually be more things you’d need to do. For example, the
bp_get_message_thread_avatar()function usesbp_core_fetch_avatar()so you would need to filter that usingbp_get_message_thread_avataretc.Unless someone else knows of an easier way, it seems as though it’ll be a big task of going through everything. You’d also need to be comfortable with PHP.
Alternatively, you could try disabling avatars by adding this to your bp-custom.php file
define( 'BP_SHOW_AVATARS', false );Note: I’ve not tested that, I’m just going on what I see at the beginning of the
bp_core_fetch_avatar()function. i.e:// If avatars are disabled for the root site, obey that request and bail if ( ! buddypress()->avatar->show_avatars ) return;August 21, 2014 at 1:59 pm #187693In reply to: register.php
danbp
Participantok, supposing you did a translation file (even if you use english by default) to test the above solution and assuming it hasn’t work, let’s try the hard way.
Add this to functions.php, it will force gettext to translate the string.
function bpfr_force_translation( $translated, $original_text, $domain ) { if ( 'buddypress' !== $domain ) return $translated; switch ( $original_text ) { case 'Registering for this site is easy, just fill in the fields below and we'll get a new account set up for you in no time.': return 'Join PushkarGuide.com - share your experience, thoughts about this pretty town Pushkar (INDIA).'; default: return $translated; } } add_filter( 'gettext', 'bpfr_force_translation', 10, 3 );If it doesn’t work i have no other solution to propose.
August 21, 2014 at 1:53 pm #187692In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantOkay, so searching that GitHub repo there is only one file under the bp-themes/bp-legacy/buddypress folders which mentions
bp_core_fetch_avatar()(but lots within the core BuddyPress code. So I just need to replace the reference in that one file and add it to by child theme under a BuddyPress folder and it should work?August 21, 2014 at 12:32 pm #187691laxmanvel
ParticipantHi,
I’m developing wordpress site with Buddypress. I’m try to add some kind of extending new functionality in my website.
if URL is,http://localhost/wordpress/members/admin/messages/view/15/
above link is hold message conversion of one to another. how will i get message thread id 15 from URL?
this thread id is just example.
i’m customize the buddypress template files in bp-legacy folder in buddypress plugin directory.i will just add to some kind of code placed to template file with thread id. i’m stuck in problem with this process kindly solve my problem?
if any reply will be appreciated.!
-laxmanvel
August 21, 2014 at 12:12 pm #187690In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorIf your theme doesn’t explicitly use BuddyPress templates then the default templates will be used. For a quick look at the templates check out the GitHub repo.
I’m guessing your theme doesn’t explicitly use the templates so what you’d have to do is create them yourself. The general idea is to create a folder called
buddypressinside your theme and then add the templates you’d like to customise to that folder. So for example, you’d end up with/wp-content/themes/your-theme/buddypress/. Everything goes inside there.August 21, 2014 at 12:01 pm #187689In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantSo I’m checking the theme files and not the BuddyPress files? How would it be referenced in the theme files. Sorry – bit of a beginner with this and appreciate your help 🙂
August 21, 2014 at 11:50 am #187687In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorIt will do, sort of indirectly, actually. For more info on how it works, check out the Template Hierarchy article.
August 21, 2014 at 11:19 am #187685In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantThanks @henrywright…
I’m not entirely sure that my front-end template actually references bp_core_fetch_avatar() as it is not a BuddyPress theme but rather a regular WordPress theme (Responsive Pro).
Martin
August 21, 2014 at 10:42 am #187677In reply to: Please help – Use WordPress Avatars not BuddyPress?
Martin Waller
ParticipantHi @henrywright
Thanks for the reply. I checked out that plug-in and it just removes the avatar from displaying on the BuddyPress profile – it still actually retains the ‘Mystery Man’ style avatar as opposed to using the one set in WordPress.
Martin
August 21, 2014 at 10:42 am #187676Henry Wright
ModeratorHi @elshobokshy
Take a look at Customizing BuddyPress Avatars
August 21, 2014 at 10:36 am #187675In reply to: Please help – Use WordPress Avatars not BuddyPress?
Henry Wright
ModeratorHi @multimartin
I just tried searching the WP plugin repo and came across an old plugin that may be of some help. Take a look at Remove Avatars
-
AuthorSearch Results