Search Results for 'wordpress'
-
AuthorSearch Results
-
November 14, 2016 at 8:18 am #260982
In reply to: How to make Buddypress support my Theme completely
danbp
ParticipantHi @vickievik,
the right question here would be how to make my theme compatible with buddypress.
The thing to understand is that BP use dynamic content for its page and that these page are NOT ordinaty WP pages.
For each content, BP fires a so called template-part.
Lets take as example a profile pageThe slug is /members/ which exist as “page” on wp’s page list. This wp page has no content and also no model or template. It’s just a “slug” in the wp ecosystem.
When you’re on a profile you have the page(aka /members/) but also many template parts, depending what you’re doing on that profile. Aside the common parts header – content – footer, you’ll find also personnal activity, frineds, groups, mentions, notifications, messages and not the worst, profile settings. All this on the same “page”.
Most theme mistakes are at this point. People try to design the page, instead to work the template parts.
When you design a theme, you usually design something for a page, independantly from any plugin. This structure is used by any Twenty Theme and you can follow them as model, because these themes are bullet proof and systematically used by all wp devs when building (in our case) BuddyPress
BP can be used with almost any existing theme, so far this theme is respecting WP’s coding standarts.
If you have brocken elements, and specially thoose using JS, it could be due to missing ID or class or even more simple, some missing instructions/conditionnals in your theme.
BP’s template parts are designed to fit with a majority of themes. The best to do, at least while creating your first theme, is to use BP “as is” and build your theme around thoose existing parts and not to remove/modifying BP arts to fit your creation.
November 14, 2016 at 7:50 am #260980In reply to: Remove Login & Register Links From Toolbar
danbp
ParticipantHi,
the toolbar belongs to WordPress. How to remove items is explained here:
https://codex.wordpress.org/Function_Reference/remove_node
Searching the forum will certainly bring you some more hints too.November 13, 2016 at 10:17 pm #260973In reply to: help with default activity stream tab
Masoud
Participant@danbp
hi.
1 – first of all i have to thank you for your time, and complete explanation on this. i’m so grateful for that.
———
2 – second, i have to apologize for my limited knowledge.
i am at the beginning and still learning about php, DB, wordpress, and bp.
so sorry if i had mistakes in codes.
———
3 – third, i have to say that:
i was not aware of this, that the usage of components are not the same. just like the example you said about buddy nav bar.
in this code (which was not working) :<?php if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) { if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) ) $bp->default_component = 'mentions' ; } ?>my logic was :
if ( !defined( 'BP_DEFAULT_COMPONENT' ) )i use this code to understand if it’s a component or not.
then after with thisbp_is_active( 'activity' )it will be checked , if it’s activity or not
and with thisisset( $bp->pages->activity )to check if activity is to check whether activity is set or not.
and if all true, then set and define a new nav default tab to mentions with this$bp->default_component = 'mentions'but it seems that my logic/codes are wrong from the start 🙁
———
or for this code that i tried, and also went wrong:
<?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION', 'mentions' ); ?>
my logic was, the<?php define( 'BP_ACTIVITY_DEFAULT_EXTENSION'part will force the bp, to set the default landing tab to activity.
and with the second part, 'mentions' ); ?>it will force the Activity component to load on mentions sub-nav item.
———
4 – i have to thank you for the group example. i didn’t know that set such a thing is possible.
it was clear . i read it. and i’m trying to learn more about it.at last , i have to thank you again for the clear explanations.
November 13, 2016 at 11:26 am #260967In reply to: Localized time stamp broken with 2.7 update
Lars Henriksen
ParticipantThe defer%20onload is a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.
Sorry, I disabled a code snippet that defers javascript – that solved the problem.
November 10, 2016 at 9:59 pm #260930In reply to: Hiding register link
Venutius
ModeratorI think you are looking for BP Registration options – that provides you with new member moderation.
https://wordpress.org/plugins/bp-registration-options/If you are new to BuddyPress I’m developing a site aimed at helping people get the most out of BuddyPress http://buddyuser.com
November 10, 2016 at 7:40 pm #260921In reply to: Change Position of BuddyPress Buttons
modemlooper
Moderatoruse this plugin https://wordpress.org/plugins/buddypress-custom-profile-menu/
November 10, 2016 at 7:37 pm #260920In reply to: redirect to profile after register
modemlooper
Moderatoruse this plugin https://wordpress.org/plugins/bp-redirect-to-profile/
November 10, 2016 at 6:14 am #260892Topic: help with default activity stream tab
in forum How-to & TroubleshootingMasoud
Participanthi.
i am using latest versions of both wordpress and buddypress.and working on a food website.
in this website , i wanted to allow only authors to post activity updates .
(because it will be much easier for users to track their favorite chef recipes in the activity page.)
so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
with the help of following code in bp-custom.php :function bpfr_hide_tabs() { global $bp; if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) { bp_core_remove_subnav_item($bp->activity->slug, 'just-me'); } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );but now when i go to my profile (as a subscriber)
i will see a 404 page.
i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )so my question is:
how can i change the default activity stream tab
from
Activity > Personal
To
Activity > Mentions – Or to – Activity > Favorites – …thanks a lot for any help.
November 10, 2016 at 12:45 am #260888In reply to: default page for logged in users
Venutius
ModeratorYou could try something like this, only it’s not been updated in a while, not tried it myself https://wordpress.org/plugins/buddypress-login-redirect/
November 9, 2016 at 10:28 pm #260887Earl_D
ParticipantIt doesn’t set up predefined filters which seems like what OP wanted but this works really well for me and includes widget
November 8, 2016 at 4:52 pm #260845In reply to: BP and AMP
Ben Hansen
ParticipantResponsiveness and AMP are actually sort of unrelated concepts any page/site that can have an AMP’ed version probably should have one (for optimal ranking) and it’s sort of the opposite idea of making a one page fits all situations notion that has made responsiveness a first order requirement in building sites these days (it’s like deja vu all over again).
i believe that WP itself is not fully compatible with AMP yet:
https://wordpress.org/plugins/amp/
(see notes)
so BP compatibility is probably a ways off at this point. Others may know more than me on this subject though. 🙂
November 8, 2016 at 2:31 am #260824In reply to: How to Turn Off Email Notifications for All Users
Red Sand Media Group
ParticipantHey @danbp
I just thought I’d jump in here real quick, as I think this will be beneficial to everyone in the thread including @Tranny.
And even if you would be a genius coder creator of an extra super original spam shield, you could be sure to became target #1 of all spammers, because in this case, you would represent the absolute challenger of all code breakers !
We are that “genius coder creator of an extra super original spam shield” that you speak of. 🙂
There is no miraculous plugin or trick to stop them.
Ahh, but there is.
It’s real, and it’s even called WP-SpamShield. LOL…you can’t make this stuff up. 🙂
Check it out on WPorg. It’s been out for about two and a half years, and is forked from another plugin we developed almost a decade ago. It works perfectly and automatically on BuddyPress, bbPress, and pretty much everything else. You can also feel free to check out the plugin documentation here.
…And for the record, we definitely are a huge target of spammers. 🙂
dealing with spammers is a long run work, to not say a never ending work.
True story!
– Scott
November 7, 2016 at 12:29 pm #260811In reply to: MyCred not working with buddypress
jono543
ParticipantHi,
Thank for your help, I tried another theme and it seemed to work. So looks like its a theme issue. The theme, plugins and wordpress core is all updated to latest version.
I’ll contact mycred/theme developers to see how to fix this.
Thanks much appreciated 🙂
November 7, 2016 at 8:36 am #260809In reply to: Mutual Friends Online status Display
Henry Wright
ModeratorGreat plugin; but the online status only display on the blog site
Thanks! As I mentioned it’s a WordPress plugin so you will need to adapt it for use with BuddyPress. It shouldn’t be too difficult to do because BuddyPress members and WordPress users are the same.
November 7, 2016 at 8:31 am #260808danbp
ParticipantHI,
BP use the same pagination system as WordPress. Here a tutorial to get this to work for WP
And here a list of “pagination” related functions:
http://hookr.io/plugins/buddypress/#index=a&search=paginationNovember 7, 2016 at 5:41 am #260802In reply to: Localized time stamp broken with 2.7 update
r-a-y
Keymaster@adjunkten – The
defer%20onloadis a sign that you might be using a plugin to do something to all WordPress javascript enqueued files.Because if you remove the
deferline, the JS file is valid:
http://historielaerer.dk/wp-content/plugins/buddypress/bp-core/js/vendor/moment-js/locale/da.min.jsAre you using such a plugin? If so, disable it and see if that fixes your problem.
November 6, 2016 at 11:52 pm #260797In reply to: Mutual Friends Online status Display
Henry Wright
ModeratorHi @swiftblack
Take a look at my plugin Here: https://github.com/henrywright/here
I use the WordPress Transients API to output a user’s online status. You could easily adapt it for use with BuddyPress.
November 6, 2016 at 5:47 pm #260785In reply to: Show activity stream only when user is logged in
Venutius
ModeratorOne of the features of WPFront User Role Editor is that it allows you to set whether menu items are visible to logged in users or not.
November 5, 2016 at 4:20 pm #260763In reply to: wordpress.org plugin page link to 404
@mercime
Participant@wasanajones Thank you for the report 🙂 We will be removing that information from our readme.txt https://buddypress.trac.wordpress.org/ticket/7328
November 5, 2016 at 12:59 pm #260758In reply to: Profile Page
Earl_D
ParticipantThe look of your pages including the profile will be determined in large part by the theme you are using. Not sure if the image you referenced is the default buddypress theme with modifications or another WordPress theme. Pretty much any well designed WordPress theme should work but those made compatible with BP work best. You may want to try searching the WP theme directory with Buddypress as a keyword. There are also premium themes designed for BP which create their own look and feel for your site.
Hope that helpsNovember 4, 2016 at 9:51 pm #260742In reply to: Can’t upload media from sitewide activity stream
d6collab
ParticipantOkay, I deactivated every plugin I have, except for BuddyPress and rtMedia. It did not resolve the problem. I can still only upload media from my own activity stream but not from the sitewide activity stream.
I’m at a loss here. I really need to be able to resolve this. I even activated the Twenty Sixteen default theme to make sure it wasn’t a conflict with my theme and no dice.
Why can’t media be uploaded from the sitewide activity stream? Anybody have any ideas?
Please, I’m getting a little desperate here, as I don’t know what else I can do other than deactivate all the other plugins and activate one of the default WordPress themes, which I’ve already done with no resolution. Thanks for any insight you can give!
November 4, 2016 at 6:25 pm #260734In reply to: Can’t upload media from sitewide activity stream
livingflame
ParticipantFor upload Media install: rtMedia plugin.
November 4, 2016 at 1:02 pm #260717In reply to: Updating to 2.7.1 breaks front-end
Venutius
ModeratorYes this has been identified, a fix is going to be released today, in the meantime you will need to downgrade to 2.7. To do this you will need to download 2.7 from the “Developers” section of https://wordpress.org/plugins/buddypress/developers/, Delete BuddyPress 2.7.1 and then upload 2.7
November 4, 2016 at 12:00 pm #260714In reply to: BP Emails are sent in plain text
danbp
ParticipantTry WP Better Email
November 3, 2016 at 3:48 pm #260681In reply to: Actions not taken
Slava Abakumov
ModeratorOne more thought aloud: I see in WordPress core code that this text also displays when nonce check (security) fails. See
wp_nonce_ays()if you are interested. This function is used incheck_admin_referer()which is used everywhere in BuddyPress. That’s the only hint that I can give you right now. Try investigate in this direction further. In general – this is something with your site/server and not BuddyPress itself.To cleanup – you will need to reinstall everything from scratch (I mean create a new database and use it). Those plugins do not provide cleanup on uninstall functionality.
-
AuthorSearch Results