Save file.
Search Results for 'buddypress'
-
AuthorSearch Results
-
May 8, 2012 at 6:10 pm #134179
In reply to: How to check if member has avatar ?
meg@info
ParticipantThanks @shanebp for answer,
I wanted a clean solution (just function from buddyrpess) but
– .
Any way, here is my function, i used bp_core_avatar_default() to return the default avatar.
/**
* Check if the current user has an uploaded avatar
* @return boolean
*/
function current_user_has_avatar() {
global $bp;
if ( bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true,'html'=> false ) ) != bp_core_avatar_default() )
return true;
return false;
}
Hope this help some one.
Closed.May 8, 2012 at 6:08 pm #134178In reply to: How to Create a New Login Page
@ChrisClayton
ParticipantTheir is no core supported way to customise it at this stage but their are tickets discussing the best method for it.
SEE: https://buddypress.trac.wordpress.org/ticket/2125Their are plugins though that help create a new login page
eg. https://wordpress.org/extend/plugins/theme-my-login/May 8, 2012 at 5:02 pm #134174chr313
MemberHi @ChrisClayton I liked this idea, but if a user chooses to use forgot your password it takes them back to wp-login anyway, seems there will be too many login forms for the site.
Do you still know of a way to change that redirect for wp-admin?
Thanks for all your help
Chris
May 8, 2012 at 5:00 pm #134173In reply to: Best way to add commentable comments?
@ChrisClayton
ParticipantThreaded comments (activity comments) is built into BuddyPress Default theme.
Threaded comments (blog comments) is built into WordPress.
quick google search: http://idratherbewriting.com/2009/05/31/wordpresss-threaded-comments/May 8, 2012 at 4:54 pm #134171In reply to: how to use files globally?
@ChrisClayton
Participant@ashokgolusu
1) Is the activity component enabled on your site?
Go to your wp-admin buddypress settings and click on components. is the ‘activity’ component checked? None of the activity-related functions will load unless it is turned on within the wp-admin.2) Has BuddyPress loaded by the time you call those function?
https://codex.buddypress.org/plugin-development/checking-buddypress-is-active/May 8, 2012 at 3:07 pm #134169candy2012
MemberAnyone ?!??!?!? @djpaul !??!
(the lack of reaction suddenly reminded me of the non-existent support of buddypress … )
But hope dies last .. so here some more to my question:
How can i make this text only “friend X posted smth on FreindY’s wall” to appear in the general timeline (under root/activity) when a friend is posting smth. on one of his friends wall (root/members/friendY)
and not showing the content of the post or the avatar of the poster ?!?!Just a line of text, like in facebook ….
Thank you
May 8, 2012 at 1:48 pm #134168Boone Gorges
Keymaster@hnla It sounds like you might have found a bug.
@djpaul The change you’re thinking of is here: https://buddypress.trac.wordpress.org/changeset/5552
May 8, 2012 at 12:03 pm #134166In reply to: How to check if member has avatar ?
meg@info
ParticipantHere is my code
This my code in functions.php
function user_has_avatar() {
global $bp;
if ( !bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true ) ) )
return false;
return true;
}
I try to check this in header.php,
// test one with bp_get_user_has_avatar function
global $bp;
if( !bp_get_user_has_avatar()) :
// echo html message warning
endif;
// test two with user_has_avatar function
if( !user_has_avatar() ) :
// echo html message warning
endif;
bp_core_fetch_avatar( array( ‘item_id’ => $bp->loggedin_user->id, ‘no_grav’ => true, ‘html’=>false )
return this string :http://localhost/wordpress-buddypulse/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg
and not false like describe in buddypress docs ( when no_grav is true function will return false if no avatar is added)
bp_get_user_has_avatar() is used in memberssingleprofilechange-avtar.php , mybe i need to call a funtion to load the data of current member or somthing like that…
Thanks advance @shanebp for help
May 8, 2012 at 11:33 am #134165In reply to: Member Profile – Settings Tab is Not Functioning
abray
ParticipantFirst, I just noticed that the name next to my comments now show “Deleted User.” I don’t understand why I would be a deleted user when I only made an “accident” and didn’t post in two places on purpose. I am learning as I go along. Good grief.
I am using a NON-buddypress theme. I did install the BP Template pack and I did follow all of the noted instructions so that the files were carried over to my theme. Everything worked fine but the Settings tab – when clicked it “did nothing.” There are several discussions on here about take Settings Folder from the CORE BP files and copy it into the MEMBER FOLDER in the THEME folder. When I do that – the tab works however, the page is NOT formatted like the remainder of the Buddypress pages – it has NO FORMAT AT ALL.
Again, I apologize for posting in two areas. And hopefully I won’t have to post over here anymore if I get this resolved.
May 8, 2012 at 10:55 am #134164willhendy
MemberI’ve found a solution so hopefully this helps the others who have had this problem…
The key is to install group forums before changing buddypress onto a secondary site/blog.
May 8, 2012 at 10:35 am #134163vus
MemberThanks Mercime
That totally did the trick

//vusMay 8, 2012 at 10:20 am #134161Hugo Ashmore
Participant@mercime lets start closing threads marked as resolved as I have been banging on about posting in others threads for two years – at least we can effectively turn some threads into read only.
May 8, 2012 at 9:30 am #134158@mercime
Participant@megart04 do start a new topic for your issue. Your issue is different than that of OP so do not add a link to your new topic here. Thanks.
May 8, 2012 at 9:20 am #134159@mercime
ParticipantMay 8, 2012 at 7:52 am #134157megart04
ParticipantHi. I am having a similar problem with my right sidebar alignment except that it’s being caused by the Buddypress plugin Group CSS which I’d very much like to use. I am using the Custom Community Pro theme. If anyone can help please respond or email and I can start a new thread on this subject (if I do I will come back and link to it here!) Thanks!
May 8, 2012 at 7:45 am #134155niwaroll
Participant@candy2012 go to https://buddypress.org/community/groups/installing-buddypress/forum/ or the forum home page for whatever group you are trying to post in. Click new, head to the bootom of the page and post!
May 8, 2012 at 7:34 am #134154niwaroll
Participant@mercime worked like a charm. They should include you in the next avengers cast! Thanks a bunch.
May 8, 2012 at 7:05 am #134153Paul Wong-Gibbs
KeymasterNo limit.
May 8, 2012 at 6:52 am #134148vus
MemberHi Mercime and other php gurus

I figure this is only a small tweak of the code, but I’m unable to fix it as I’m a NooB to wordpress and .php in particular. Do you have any idea about how to fix this issue?
Sorry to be pushy, I am just really anxious to lauch this buddypress feature to the site I’m building to my son and his like minded friends
Regards and thx in advance.
VusMay 8, 2012 at 12:17 am #134144In reply to: Mixed content warnings
@mercime
ParticipantI can only speak for the bp-default theme:
– default blog pages == index.php https://buddypress.trac.wordpress.org/browser/tags/1.5.5/bp-themes/bp-default/index.php
BP Corporate might just have a home.php page which trumps the index.php page per template hierarchy– search results page == search.php https://buddypress.trac.wordpress.org/browser/tags/1.5.5/bp-themes/bp-default/search.php
May 7, 2012 at 11:44 pm #134142In reply to: Members page not functioning
@mercime
Participant== Page errors on everything I tried to do in terms of interacting with the members page- next page results, sorting, searching, etc. ==
Windows or Linux? Single WP or WP Multisite? Where is your WP/BP installed? Domain root or subdirectory or subdomain? if the two latter ones – make sure the subdir and subdom are not named the same as a BP component. e.g. groups.example.com and example.com/groups are no-no’s
== ie have you guys had any luck with getting sitewide forums working yet? ==
We’ve got both forums working together ever since BP 1.5 https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/
May 7, 2012 at 11:20 pm #134141In reply to: Tags and categories
@mercime
Participant== I’m just trying to find out out to attach categories or tags to BuddyPress posts. ==
The same way you attach categories or tags to WordPress Blog Posts in the backend
May 7, 2012 at 11:19 pm #134140In reply to: activity stream duplicating post.
@mercime
ParticipantWP/BP versions? Theme used? Did you deactivate plugins other than BuddyPress to see which one is making this happen in your installation?
May 7, 2012 at 11:16 pm #134139@mercime
ParticipantB. Create a BLANK sidebar-buddypress.php
Open up the sidebar-buddypress.php file and add this
`jQuery(document).ready( function() {
if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
jQuery(‘div#blog-details’).toggle();
jQuery( ‘input#signup_with_blog’ ).click( function() {
jQuery(‘div#blog-details’).fadeOut().toggle();
});
});`
Save file.
C. Create a BLANK footer-buddypress.php file. That’s it. Keep this file blank.
D. Upload header-buddypress.php, sidebar-buddypress.php and footer-buddypress.php to your theme folder in server wp-content/themes/yserif/ at the same directory where your regular header.php and page.php files are in.
E. Copy the style modifications for some BP elements https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/ and paste those at the bottom of your theme’s stylesheet, then adjust to taste.
Note: There are many sidebars in the theme, but no need to paste them here.
May 7, 2012 at 11:14 pm #134138@mercime
Participant@candy2012 peace be with you too

@niwaroll Per initial scan, you only need to create three new files, header-buddypress.php, sidebar-buddypress.php and footer-buddypress.php
If you’ve revised any of the BP template files transferred to your yserif theme folder in server during the BP Compatibility process, please delete the 6 BP folders transferred to your yserif theme folder in server – activity, blogs, forums, members, groups, register – then re-run Appearance > BP Compatibility again to make sure that you have clean template files.
A. COPY your theme’s header.php and Save As > header-buddypress.php
Open up header-buddypress.php and at the bottom of the file, below other code contained within, add this:
`<div id="f9-container" class="”>
<div id="post-” >` -
AuthorSearch Results