Search Results for 'buddypress'
-
AuthorSearch Results
-
February 1, 2015 at 4:43 pm #233363
In reply to: [Resolved] How To Get Notification Count? (Code)?
danbp
ParticipantFebruary 1, 2015 at 4:06 pm #233357In reply to: in profile hide notifications and settings
Brajesh Singh
ParticipantHi Fan,
Do you mean removing the tabs in user profile ?
If yes, Please visit Dashboard->Settings->BuddyPress then click on the components tab.
there you can disable the Notifications and settings component.If you are using WordPress multisite, you can find the BuddyPress settings under NetworkAdmin->Settings->BuddyPress
Hope that helps.
February 1, 2015 at 3:58 pm #233356In reply to: [Resolved] How To Get Notification Count? (Code)?
Brajesh Singh
ParticipantHi Chaitanya,
Try this code.function bpfr_add_notification_to_page_title( $title, $original_title, $sep ) { //do not change if the user is not logged in if( ! is_user_logged_in() ) return $title; $user_id = get_current_user_id();//logged in user's id $count = bp_notifications_get_unread_notification_count( $user_id ); if( $count > 0 ) $title = sprintf( "You Have %d New Notification(s) - ", $count ); return $title; } add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );I have modified the code from your last post. The difference is, It only does it for logged in users. Also, I have decreased the priority to make it work on BuddyPress pages( otherwide bp_modify_title would have overwritten it).
Hope that helps.
February 1, 2015 at 1:08 pm #233348danbp
Participant@henrywright is right. There is only one js file handling whats-new: buddypress.js and one function: bp_activity_action_post_update() in bp-activity-actions.php:289 (2.2) and of course CSS, in buddypress.css
Thought you have to use the minified versions to get customization to work.
buddypress.min.js
buddypress.min.cssFebruary 1, 2015 at 11:08 am #233338In reply to: [Resolved] How To Get Notification Count? (Code)?
Henry Wright
ModeratorThere’s 2 types of notifications: a) read and b) unread.
bp_notifications_get_unread_notification_count( $user_id )will get you the unread count so you could use that value in the comparison you mentioned here.February 1, 2015 at 10:13 am #233334Henry Wright
ModeratorI think you’re right in that bp-legacy files are used when a file doesn’t exist in your templates folder. In this case though I’m not sure the same applies as it’s a .js file. Perhaps @danbp will know what happens in this instance?
Update: After a little research, it seems as though the same does apply to .js files. See here which loosely mentions .js files
* As of BP 1.8 the paths for assets i.e styles and JS has been modified to look to your ‘buddypress’ or ‘community’ folders first…
So you’re right to think the JavaScript that expands the what’s new textarea on focus may exist elsewhere. But unless you’ve explicitly created the file in your theme, then bp-templates/bp-legacy/js/buddypress.js should be the only place.
February 1, 2015 at 8:58 am #233331In reply to: Answer about Admin Area Turned to Persistent
danbp
Participanthi,
increasing the avaible memory means php memory, which handles scripts.
On a usual install, WP+BP need at least 128mo to run flawless.Even if the server as the theoric resources, weird scripts or bad coded theme or plugins can lead to severe issues…
Read here for some basics about blank sreen of death.
This is actually the only issue which is real ! You have to consult the log files to track down the responsible script who generate this error.Please give also more details about your install (theme name or site url, used plugins, server type and php, mysql version number) if you need more and/or better help.
February 1, 2015 at 8:44 am #233330In reply to: Buddypress navigation menu styling
danbp
ParticipantHi,
before asking for a fix, there is a need to identify the problem. You’re using 2 third parties plugin which you think are creating issues… Maybe, maybe not.
First of, give your site URL so other can try to help you eventually.
Second, if you’re sure one, or both plugins are defect somehow, you can ask on thei r respective support.To be clear in regards of issues, ensure always that your base install is working correctly.
Is WP ok ? yes/no
Is BuddyPress ok ? yes/no
Is your theme ok ? yes/noIf 3 “yes”, each time you activate a plugin and something goes wrong, you’ll be sure it’s the plugin, and not your install. In 95% of cases, the culprit is the added extension.
This is a debug logic you can follow to find or try to, for explanations. 😉
February 1, 2015 at 1:19 am #233319Henry Wright
ModeratorJanuary 31, 2015 at 11:35 pm #233317In reply to: BP Page Title Errors in WP Twenty Fifteen Theme
wadsworth4
ParticipantThank you for your reply and for the link. Good to know it is not just our system. To date, Buddypress is the only plugin we have tested that fails to provide a useful title (traditionally, Page | Site ).
I disagree with the point, however, that only a page should be cited in a page title. Just as with a book, a page is only part of a site. The name of just a page is fairly useless in bookmarking, just as with with a book. We may know we left off at page 123, but without knowing which book, it is not very helpful. 😉
A quick web search pulls up instances (including CUNY) of the Buddypress title problem of “Site Directory Directory,” as well, which makes one wonder if BP could leave title control to WP somehow.
Thanks again for taking time out for the informative feedback, albeit disappointing.
January 31, 2015 at 9:16 pm #233314danbp
ParticipantLove the last one @chubbycrow !
Would see a smoothed version on closed topic ! Which looks really awfull actually.
https://buddypress.org/support/page/20/#stars&stripes or #StarSpangledBanner ?
We now have the stripes, where are the stars ? That’s the question… 🙂January 31, 2015 at 9:09 pm #233312In reply to: Buddypress navigation menu styling
danbp
ParticipantI’m sorry too, but i can’t learn you to use BuddyPress and WordPress. I can only guide you. It’s a volonteer based forum, and understand that i can’t offer you a lot of my time.
You asked how to apply at least a background color to the buddy nav.
The CSS code i indicated should go in a file called style.css
This file exist in almost any theme. Open it and copy/paste the code, save and bam, you’re done.For more explanation about child theme or any other custom work, you have to read WP & BP‘s codex or find some tutorials on the net.
Be also aware that you use a premium theme, which can be difficult for you to find assistance outside of the theme support.
January 31, 2015 at 8:41 pm #233310In reply to: Buddypress navigation menu styling
gnasralla
ParticipantI am sorry but I am new at buddypress, would you please guide me where to get to where I should make the change? I guess I start with wp-content.php
January 31, 2015 at 8:32 pm #233308In reply to: Buddypress navigation menu styling
danbp
ParticipantIt’s intended so by default.
Try this from child-theme style.css
#buddypress div#item-nav div#object-nav ul li{background-color: #ccc;}January 31, 2015 at 8:19 pm #233303In reply to: Buddypress navigation menu styling
gnasralla
ParticipantHere is the image link
January 31, 2015 at 8:01 pm #233229In reply to: Buddypress navigation menu styling
danbp
Participanthi,
use the img button, you can insert an url.
Do you use the buddypress menu in wp’s menu manager ?
January 31, 2015 at 6:46 pm #233224In reply to: Pagination on homepage redirecting to root URL
Menzer69
ParticipantHi jwind I did you managed to find a solution as I have the exact same issue… When I turn on Buddypress group and I sm logged in the pagination on the front page stops working however if I disable permanent links pagination works…
Baffled
January 30, 2015 at 8:20 pm #233191shanebp
ModeratorRemove both the background colors.
Change the text color to black.In In bb-base/style-buddypress.css:
#bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a { /* background-color: #be3631; */ }In bb-base/style.css:
#bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a { color: #000000; padding: 2px 5px; border-radius: 3px; font-size: 10px; font-weight: bold; }January 30, 2015 at 8:14 pm #233190mcpeanut
Participant@johnjamesjacoby well if it was me personally i would either tone the color of red down slightly, but i think the better idea in this case may be to make the topic titles themselves a darker red to match more in with the background color of these links, so that the attention isnt taken from the categories (because putting a background behind them is enough of a statement anyhows) whilst staying in tune with the eye. (but you may not be happy with this if trying to keep in tune with the buddypress color)
either way its down to you i can only suggest to you. as it stands in my opinion the boldness of the color behind the link sort of makes the topic titles less visible.
Edit: After looking again maybe just try a few shades lighter so the eye sees it as the same color of the titles. or you could even lighten the color of the background and add a 1px border a darker red around it.
January 30, 2015 at 7:51 pm #233186John James Jacoby
KeymasterAlso @skyrant, it’s possible this is just a bug in our implementation, and using WordPress’s
add_menu_page()function, which requires a capability be passed into it that is consequently checked on the current site being accessed, and not the root site where thebp_moderatecapability is likely to be assigned.I’ve opened a ticket in our bug tracker to bring a bit more attention to this as a bigger issue, so if you end up creating any patches, go ahead and drop them there:
January 30, 2015 at 7:45 pm #233185John James Jacoby
KeymasterHey @ubernaut. All thoughtful consideration is appreciated and encouraged, but your “doesn’t currently exist in buddypress” response was neither, considering @skyrant appeared to already frustrated by BuddyPress not performing to his expectations.
It was also inaccurate, as functions like
bp_current_user_can()exist explicitly to enable developers to extend this functionality. If skyrant is unable to make it work, more open-ended questions about the approach will help us figure out what’s not working correctly, be it on his/her end or ours.And this…
please let me know if you feel like my participation is no longer desired around here
This isn’t the case, and if it ever was to be, never let that stop you anyways. We are all trying to build cool things and improve the world through better open-source community software. It’s inclusive at it’s core. Only twice in eight years have we excluded anyone because of clearly malicious abuse of other members, and it still bothers me to have needed to do so.
<3
January 30, 2015 at 6:54 pm #233182John James Jacoby
KeymasterHey @skyrant, project lead chiming in here. Apologies for @ubernaut’s response; it doesn’t come across as very helpful or inviting, nor does it point you in any directions as to where to start building this type of functionality, which is the type of helpful reply I would expect from our forums normally.
You’ll want to look into WordPress’s
map_meta_capfilter, and more specifically, ourbp_moderatecapability checks.In the old days, we used a bunch of
is_super_admin()checks to only allow the type of access you desire to network administrators. This proved to be too powerful an assumption once BuddyPress started working on Single-Site installations, and so we ported (almost) everything to checking forbp_moderateinstead.You could create a new role and grant it the
bp_moderatecapability. In doing so, any user with that role will have the ability to moderate the entire BuddyPress community.This also is a bit more powerful than we would like it to be, and in the future we hope to introduce dedicated roles and capabilities all through-out BuddyPress very similarly to the way we did with bbPress. It’s not in the immediate roadmap however, so if this is an area you’re interested in, and want to help us improve it, let’s keep a dialogue going here and see if anyone else chimes in.
January 30, 2015 at 4:36 pm #233179Milutin
ParticipantI tried to switch to another theme and saw messed Main Manu, without Register page. When I switched back to Anchor theme, Widgets broke down so I had to set it again. Theme author told me that they intergrated a lot of plug-ins in order to provide users more options and that sometimes Jetpack can cause problems.
Anyway answer was: ” BuddyPress isn’t part of our theme neither our AIT plugins. That’s why I cannot support this issue. For compatibility with third party plugins please contact their support”.
What can be an issue? Please help me.
January 30, 2015 at 3:38 pm #233175In reply to: Activity appear two times on activity stream
mcpeanut
ParticipantOh i came across this issue in the past when trying out different themes, i cannot remember which theme it was that caused this for me but i did manage to solve it somehow but it was so long ago i just cannot remember, but it was definitely caused with a theme i tried and not buddypress, in the end i decided not to use that theme, so i would suggest finding a different theme first as @mercime said and if its the cause change to a diff theme unless you paid for it of course then make the issue known to the developer for a fix.
January 30, 2015 at 2:57 pm #233171In reply to: [Resolved] How to custom the templates
@mercime
ParticipantI tried to get the register.php from the legacy folder and put it in my own theme folder but it didn’t help.
@alesas If you copied register.php from legacy, then you’d have to paste it into yourthemefolder/buddypress/members/register.php Is that what you did?edit – codex articles which can help you https://codex.buddypress.org/themes/theme-compatibility-1-7/
-
AuthorSearch Results