Search Results for 'theme'
-
AuthorSearch Results
-
February 5, 2015 at 8:26 am #233688
In reply to: Disallow Non logged users on certain pages
chatty24
ParticipantTry to add it to your theme’s function.php file instead of bp-custom.php
February 5, 2015 at 7:29 am #233684In reply to: Disallow Non logged users on certain pages
chatty24
ParticipantTry This Code :
add_action( 'wp', 'custom_lockdown_redirect', 3 ); function custom_lockdown_redirect(){ global $wp; if (!is_user_logged_in()){ if ( bp_is_activation_page() || bp_is_register_page() || ( in_array( $GLOBALS['pagenow'], array( '/login' ))) ) return; bp_core_redirect(get_option('http://yoursite.com') . "/login"); exit; } }Make sure the you change
/loginwith your login link.Add it to your theme’s function.php file
February 5, 2015 at 7:02 am #233681In reply to: Modify the activity loop
deshmukh
ParticipantHere is an update. I tried doing the same thing but changed directory to mytheme/buddypress/activity/index-directory.php with disastrous consequenes. With the code you had mentioned, it leads to a blank page and with bp-activity-template.php suitably renamed and modified, it gives an error.
So, I guess, I will need to have the file in /mytheme/buddypress/activity and the name will need to be index-directory.php. But what goes in that file is still not known 🙂
February 5, 2015 at 6:49 am #233679In reply to: Modify the activity loop
deshmukh
Participant@henrywright, this is going to be one long conversation, I guess. And thanks for your patience.
OK. Went through the Codex page again. And, as I understood it, created mytheme/buddypress/activity/single/index.php with the code you had given earlier: ‘display_comments’ => ‘stream’. No effect.
Then I copied the whole bp-activity-template.php to the same location, renamed it as index.php and changed ‘display_comments’ => ‘stream’. Still no effect.
Obviously, I am doing something wrong. How do I get this right?
Also, note my earlier point. This change, when successful, only pulls the comments up — not the entire conversation on which the comment was made. But that was the effect I wanted. How do I get that achieved?
Lastly, I guess, I will need to make similar changes to other areas (display of group activity /members/username/activity/groups, favorites /members/username/activity/favorites — to be specific) or it is the same activity loop that generates those pages, too and changes at one place will reflect through all loops?
February 5, 2015 at 3:12 am #233605In reply to: How to create template
bringmesupport
ParticipantThe BuddyPress Codex explains how to do this here:
You were on the right track, but you are copying the wrong files from the BuddyPress core. If you want to override the BuddyPress Templates in your own theme, you would copy the files you wanted to override from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress to /wp-content/themes/myTheme/buddypress, just keep the file structure intact in your theme.
For example, if you just wanted to modify the members loop, copy just the members-loop.php file from wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/members-loop.php and paste just that file to /wp-content/themes/myTheme/buddypress/members/members-loop.php in your theme. If the folders don’t already exist in your theme, just create them.
February 5, 2015 at 3:01 am #2336045high
ParticipantHi there,
(w/p = 4.1; buddypress = 2.1.1; s2member = 150203)
I see it’s been asked before, but the suggestions I’ve found have only lead to out-of-date plugins, and I don’t want to base my new site on a plugin that may well be completely unsupported within a few months.
my aim: I’d like to ensure that all new members are signed up automatically to at least one group, if not to all 3 groups, so they can immediately be part of a small community.
Is there a way I can add some code into either a BP file or my (child) theme files to do this? I realise that I would have to be careful with updates, so perhaps a child theme functions.php file or similar? (I know the basics of code and how to insert in different files, but have very little knowledge of php, hooks etc so would need help with the exact code for this.)
All help much appreciated.
February 4, 2015 at 11:28 pm #233594In reply to: Adding Copy to Create an Account page
@mercime
Participant@wanderingsoles Just to be clear, you have enabled registration on your site and removed the copy correct? Have you have assigned the Register and Activate pages in Settings > BuddyPress > Pages? Have you tried changing your theme to 2014 or 2015 to check if it’s a theme issue or not?
February 4, 2015 at 10:31 pm #233585Toby
ParticipantSorry I never replied. Turning off all the plugins and going to the default theme is a bit torturous on the site I’m supporting.
February 4, 2015 at 9:25 pm #233576Arkadaemos
ParticipantI’m having a similar issue with BP2.1 and WP4.1. The group pagination links aren’t working on either the front or back-end. They work fine for the member list, but not the groups.
On the front-end, the links seem to be pointing to the correct mlpage=#, but when clicked they do nothing.
On the back-end, the links work for page 2, but all the rest are all pointing to member_page=3.
I’ve disabled all plugins, switched to default WP themes, and used a couple different browsers and the problem exists in all cases. Is this a known issue?
February 4, 2015 at 12:49 pm #233551In reply to: Modify the activity loop
Henry Wright
ModeratorI do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays… …all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?
You have to ‘add’ the new activity.
Regarding the second bullet point, you’d need to modify your activity loop which will be inside your activity template. Try something like this:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&display_comments=stream' ) ) : ?> <?php while ( bp_activities() ) : bp_the_activity(); ?> <?php locate_template( array( 'activity/entry.php' ), true, false ); ?> <?php endwhile; ?> <?php endif; ?>For more info on the BuddyPress template system and where you find your activity template, please see this article.
February 4, 2015 at 9:31 am #233543In reply to: Modify the activity loop
deshmukh
Participant@henrywright I do not want to ‘add’ new activity. I just want that when one visits example.com/activity, it displays all profile updates (these are displayed even now), all updates to public groups (these, too, are displayed currently) AND all updates in private/ hidden groups where the concerned person is a member (this is NOT displayed currently.) How do I do that?
Also, I understood the second part re threads with new comments coming to top. But could you please elaborate a bit? Do I need to add some code to bp-custom.php or mytheme/function.php? In this specific case, what code should I add?
I am sorry if my question appear to be basic. I am a newbie — I like to guess, like many others coming to forums 🙂
February 4, 2015 at 3:30 am #233540In reply to: How to create template
djsteveb
ParticipantI think you are playing with the old bp default theme files which are no longer being used(?)
see – https://codex.buddypress.org/themes/bp-default-theme-moving-forward-with-bp-1-9/
and perhaps -> https:// codex.buddypress .org/themes/
although I am pretty sure a bunch of the info on that buddypress .org / themes is talking about the old ways of doing things.. so check dates.. I think a bunch of that info is deprecated… however you may find what you are looking for in the codex..
maybe what you are looking for in relation to profiles is touched on here: https://codex.buddypress.org/themes/guides/displaying-extended-profile-fields-on-member-profiles/
February 4, 2015 at 12:31 am #233530In reply to: Activity Stream Homepage Compatibility Issues
bazaarocommunity
ParticipantThanks for the advise. When I do that, it does not load the wall post text box or tabs that are normally found on the activity page. Do I have to copy the entire contents of /activity to my theme root?
February 3, 2015 at 5:38 pm #233499In reply to: [Resolved] Creating the forum and groups
tracymisidore
ParticipantI just changed my theme and it seems to work. thank you! I knew it had to be something simple.
February 3, 2015 at 5:35 pm #233498In reply to: [Resolved] Creating the forum and groups
tracymisidore
ParticipantI am using the latest wordpress and buddypress 2.1.1
I have not tried changing my wp theme…February 3, 2015 at 5:25 pm #233497In reply to: [Resolved] Creating the forum and groups
shanebp
ModeratorPlease provide the versions of WP and BP that you are using.
What theme are you using?
If you switch to a WP theme like 2014, does the issue still exist?February 3, 2015 at 4:35 pm #233492In reply to: [Resolved] Members page pagination broken
miguelcortereal
ParticipantWorking now!
There’s nothing wrong with the theme suffusion, any plugin or Buddypress.
All I had to do was perform a browser’s cache cleaning.
Certainly there was an outdated jquery version loaded on my browser’s cache.
Thanks a lot Henry for your concern.
February 3, 2015 at 11:38 am #233474In reply to: Show profile fields in description/ excerpt
Henry Wright
ModeratorYou’ll need to modify your members template. Check out the BuddyPress Template Hierarchy for more info on the template system.
To show a specific profile field inside the loop, you can just do:
bp_member_profile_data( 'field=the field name' );February 3, 2015 at 10:26 am #233473danbp
ParticipantI guess something is not translated, but in this case, the email text should come in english.
If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.
After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1
https://translate.wordpress.org/projects/buddypress/dev
If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.
Code in 2.1.1 looks like this
%1$s,\n \n \n \n Thanks for registering! To complete the activation of your account and blog, please click the following link:\n \n %2$s\n \n \n \n After you activate, you can visit your blog here:\n \n %3$sFebruary 2, 2015 at 11:59 pm #233454In reply to: Edit Profile Redirects to different page
Henry Wright
ModeratorWhat should it be using?
Do you mean which redirection function? Either is fine – but my point was, the offending code will likely involve one of those functions. I thought it might be helpful me mentioning them if you were trying to debug…
Your best bet is to contact the theme or plugin author (as @shanebp mentioned). They’ll probably be grateful for the bug report.
February 2, 2015 at 11:24 pm #233450In reply to: Edit Profile Redirects to different page
Henry Wright
Moderatorwp_redirect(),wp_safe_redirect()orbp_core_redirect()are the functions that redirect. It could be that your theme is using one of those?February 2, 2015 at 11:23 pm #233449In reply to: Edit Profile Redirects to different page
shanebp
ModeratorYour best bet is to talk to NextGen. It’s probably a known issue. If you do, tell them what versions of WP, BP, bbPress and NextGen you have installed. Ditto re your theme.
February 2, 2015 at 9:29 pm #233446In reply to: [Resolved] Members page pagination broken
Henry Wright
ModeratorIt’s definitely AJAX-related because as you mentioned earlier, visiting /members/?upage=2 works fine. I think the way to pin-point the problem now that you can be sure the template isn’t the issue is focus your investigations on any customisation you’ve made elsewhere. Specifically, any JavaScript you’ve introduced (either in your theme or via a plugin perhaps?).
February 2, 2015 at 8:16 pm #233443In reply to: [Resolved] Members page pagination broken
miguelcortereal
ParticipantThanks Henry for your quick response.
I’m using Suffusion theme.
I’m not using template pack conpatibility provided that since BP 1.7 it just became unecessary. However I’m using in child theme /buddypress/members/members-loop.php which I’ve copied from BP-legacy and customized to have a different layout and display xprofile fields information.
I removed this file to force the use of the original BP markup and the problem remains.
So it’s Ajax related.
I’ll try to check theme’s and BP’s Javascript files.
February 2, 2015 at 6:55 pm #233429In reply to: [Resolved] Members page pagination broken
Henry Wright
ModeratorWhat theme is it that you’re using?
There’s a couple of things you could look into.
Firstly, how does the markup of your theme’s members page differ from that of the template file provided by BP (in bp-legacy)?
Secondly, take a look at your theme’s JavaScript files (if it has any) to see if there’s anything that might conflict with BP’s JavaScript
-
AuthorSearch Results