Search Results for 'theme'
-
AuthorSearch Results
-
November 3, 2015 at 2:47 pm #246305
In reply to: Custom Hook Help
shanebp
ModeratorAfter you register a user, do you see a message that starts with You have successfully created your account! ?
If you do, your function should work.
You could try putting it in the theme/functions.php
Putting code directly into a template is okay if you create a template overload.
November 2, 2015 at 5:29 pm #246262shanebp
ModeratorThe right way is to use a template overload.
November 2, 2015 at 9:23 am #246232In reply to: Displaying cover image BuddyPress 2.4
danbp
ParticipantPlease, read a possible answer in this new codex article:
November 1, 2015 at 8:53 pm #246215In reply to: Can’t upload Group Avatars
Plucker
ParticipantHi shane, thanks for the very prompt response – I’m getting nothing on screen with debug on and nothing in the file if I also switch the debug log file on.
This is with BuddyPress active, bbpress de-activated and with t013 theme and no other plug-ins installed.
I have the same (or very similar) error with member avatars.
Upload Failed! Error was: The uploaded file could not be moved to wp-content/uploads/avatars/1/avatars/1.November 1, 2015 at 7:00 pm #246212In reply to: Number of comments on that entry
slawek247
ParticipantHello again.
Thank you very much, it helped me a lot and it works fine.
But after click in “Load More” in bottom of page, older post has been loaded. Then thoses posts are loaded with all comments. Seems, the function bp_legacy_theme_hide_comments does not work for load more. Can you confirm it? Or maybe it’s a kind of bug, or maybe other other function is responsible for this? (I tried to find some other function but without success).Thank you in advance.
November 1, 2015 at 4:43 pm #246207In reply to: Can’t upload Group Avatars
shanebp
ModeratorThat is odd.
It’s difficult to suggest a solution when replicating the issue is nigh impossible.
But maybe more info about the issue can be generated…Try using a WP theme like 2013, deactivating bbPress and turning debug on in wp-config.php
https://codex.wordpress.org/WP_DEBUGThe file is getting uploaded to “wp-content/uploads/group-avatars/4/” but doesn’t appear on the group.
Does anything appear on the group? View source or use a browser code inspector to take a close look.
October 31, 2015 at 11:55 pm #246192In reply to: Customizing group creation
paragbhagwat
ParticipantOk i figured out part question 1 and 2. Basically i copied create.php in my theme and customized the text as needed. Now the remaining questions are
1)Add additional tab or fields to existing tab for the group.
2) I want to enforce each group having a forum is there a way i can remove the section?Thanks,
paragOctober 31, 2015 at 10:39 pm #246190In reply to: Number of comments on that entry
Brajesh Singh
ParticipantHi,
You need to override this js functionbp_legacy_theme_hide_comments(There are many ways to do it. You can either put the following code in your theme’s js file
function bp_legacy_theme_hide_comments() { var comments_divs = jq('div.activity-comments'), parent_li, comment_lis, comment_count; var max_show = 2; if ( !comments_divs.length ) { return false; } comments_divs.each( function() { if ( jq(this).children('ul').children('li').length < max_show ) { return; } comments_div = jq(this); parent_li = comments_div.parents('#activity-stream > li'); comment_lis = jq(this).children('ul').children('li'); comment_count = ' '; if ( jq('#' + parent_li.attr('id') + ' a.acomment-reply span').length ) { comment_count = jq('#' + parent_li.attr('id') + ' a.acomment-reply span').html(); } comment_lis.each( function(i) { /* Show the latest 5 root comments */ if ( i < comment_lis.length - max_show ) { jq(this).addClass('hidden'); jq(this).toggle(); if ( !i ) { jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' ); } } }); }); }or you can put the following php code in your bp-custom.php/functions.php
function buddydev_override_legacy_theme_hide_comments_js() { ?> <script type="text/javascript"> function bp_legacy_theme_hide_comments() { var comments_divs = jq('div.activity-comments'), parent_li, comment_lis, comment_count; var max_show = 2; if ( !comments_divs.length ) { return false; } comments_divs.each( function() { if ( jq(this).children('ul').children('li').length < max_show ) { return; } comments_div = jq(this); parent_li = comments_div.parents('#activity-stream > li'); comment_lis = jq(this).children('ul').children('li'); comment_count = ' '; if ( jq('#' + parent_li.attr('id') + ' a.acomment-reply span').length ) { comment_count = jq('#' + parent_li.attr('id') + ' a.acomment-reply span').html(); } comment_lis.each( function(i) { /* Show the latest 5 root comments */ if ( i < comment_lis.length - max_show ) { jq(this).addClass('hidden'); jq(this).toggle(); if ( !i ) { jq(this).before( '<li class="show-all"><a href="#' + parent_li.attr('id') + '/show-all/" title="' + BP_DTheme.show_all_comments + '">' + BP_DTheme.show_x_comments.replace( '%d', comment_count ) + '</a></li>' ); } } }); }); } </script> <?php } add_action( 'bp_after_activity_loop', 'buddydev_override_legacy_theme_hide_comments_js' );Both will work. you can change the max_show to any value. Hope that helps.
October 29, 2015 at 10:52 am #246117In reply to: CSS for Registration Form
William
ParticipantNow, there is a “Custom CSS” section in my Theme. Will pasting the modified code there work?
I’m not sure give it a try.
October 28, 2015 at 9:33 pm #246106In reply to: Issues with messages page
shanebp
ModeratorIt looks like an issue with your theme.
To confirm – try switching to a WP theme like 2015 and see if the problem remains.October 28, 2015 at 7:04 pm #246100In reply to: CSS for Registration Form
konberg
ParticipantPhew, it worked this time! After I saw it in IE!!! Thank you, William!!
I am not sure if it was your code that helped – because other fields, not radio boxes, also got lowercased. Perhaps, it was this code that i found in style.css
form p{
text-transform: uppercase;
margin: 15px 0;
display: block;
width: 100%;
}I simply replaced uppercase with none.
Now, there is a “Custom CSS” section in my Theme. Will pasting the modified code there work? It did for other things in my Child theme? Thank you again!!!
October 28, 2015 at 5:57 pm #246099In reply to: CSS for Registration Form
William
Participant@konberg you probably did not create the child theme properly. Try pasting that code directly in “style.css” of your active theme and see if it works. Don’t paste it in child theme first.
I tested the code from my end and it worked.
It’s also likely that your web browser has cached your website. Try clearing the cache, restart your browser, and see if you notice the changes. If that does not work try visiting the website from another web browser such IE, Google Chrome, Firefox etc. You can even use a different computer to do so.
October 28, 2015 at 3:52 pm #246097In reply to: CSS for Registration Form
Henry Wright
ModeratorUnfortunately, this code did not work at all 🙁
Likely you’ll need to change the selector
#buddypress .standard-form div.radio div labelso that it’s appropriate for the theme you’re using.October 28, 2015 at 3:37 pm #246096In reply to: Hide All Admins from All Buddypress Activities
shanebp
Moderator
…which I have uploaded to the root of the buddpress folder
It should go in the root of the plugins folder.
October 28, 2015 at 2:48 pm #246095In reply to: CSS for Registration Form
konberg
Participanthi William,
This is the best advice I have seen so far, thank you so much! Unfortunately, this code did not work at all 🙁
Yes, I am using the child theme and I did it in active folder (child theme’s folder).
October 28, 2015 at 9:53 am #246090In reply to: Help loop activities
William
Participant@RafVin Here’s how to hide “All Members” tab with CSS.
Find a file called “style.css” in the wordpress active theme, add the code below and re-upload the file.
#buddypress div.item-list-tabs ul li.selected a { display: none !important; }Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Showing custom tasks under personal? Well that requires some custom PHP coding or probably a plugin. Hopefully, someone will help you with this.
October 28, 2015 at 9:37 am #246089In reply to: CSS for Registration Form
William
Participant@konberg find a file called “style.css” in the wordpress active theme, add the code below and reupload the file.
#buddypress .standard-form div.radio div label { text-transform: lowercase; }Warning! When you update your theme, you’ll loose these CSS changes so try doing this in a child theme if you’d like to retain the changes when you update your theme.
Let me know if that works.
October 28, 2015 at 2:40 am #246085In reply to: Buddypress in multisite
mrjarbenne
ParticipantI’m not sure what you mean by the “Top Tab Recipe”. If your theme is adding a custom post type, then you need to register that post type in order for it to populate the activity stream, and the user profile activity. BP should do exactly what you are looking to do once you do that: https://codex.buddypress.org/plugindev/post-types-activities/ Maybe your theme is doing this for you already if you are seeing activity generated when you post a recipe in the custom post type area.
Your alternative idea in the last paragraph would also certainly work. You don’t need multisite for that. Make every member of your community an Author on the main site: everything they publish will appear in the Custom Post Type “Recipes” archive, along with all the posts appearing on each users profile: this is their customized space, particularly once header profile images launch in BP 2.4. This would also give you more control over the experience. You could create a publishing checklist to make sure all the recipes are categories and tagged appropriately: https://github.com/danielbachhuber/Post-Checklist
October 27, 2015 at 9:25 pm #246079In reply to: CSS for Registration Form
konberg
ParticipantGee, guys, thanks for not helping at all.
The name of the element is exactly what I am trying to figure out. If my registration form looks like thisL
WHAT IS YOUR GENDER
[] MALE
[] FEMALEI am trying to change words MALE and FEMALE to lowercase. I went through ALL CSS files in my theme, and tried replacing text-transform: uppercase with text-transform: none but it did not help at all!
So more specifically, my questions are:
1) what exactly controls the lowercase/uppercase of profile field answer options. Something like this:
#buddypress .standard-form #basic-details-section – but what the hell exactly and howand
2) where to find itThank you!
October 27, 2015 at 9:08 pm #246078In reply to: Buddypress send PM not refreshing after sent.
shanebp
ModeratorMembers need to be logged in before they can send a PM.
If you’d like to provide a user / pw, somebody might take a closer look.You’re using a custom theme – does its member-header.php include
do_action( 'template_notices' );?
If not, the feedback messages will not appear.October 27, 2015 at 3:22 pm #246059In reply to: Error Logs with BuddyPress
shanebp
Moderatori’ve discussed this with the theme creators and was told it was an issue with the plugin.
Try switching to a WP theme like 2015.
Do the warnings stop appearing?
If so, then the problem is caused by something in your preferred theme.October 27, 2015 at 3:18 pm #246058In reply to: Error Logs with BuddyPress
Fobulis
ParticipantYes, i’ve discussed this with the theme creators and was told it was an issue with the plugin. However, I cannot seem to isolate the problem. I imported the theme using the .zip file and activated it. Then activated the associated plugins after that, including BP. But BP cannot be deactivated and keeps mass producing these error logs.
October 27, 2015 at 9:44 am #246050In reply to: Buddypress in multisite
mc9625
ParticipantThanks for your reply.
Actually what I miss is the custom post type “share” between the main site and the sub blog. I’ve installed Social Chef (I well known theme for foodblogger community). It let’s you write a custom post type “Recipe”. Actually I’ve installed the same theme for all sub blogs and I expected to see, in the member activity stream every recipe added in the blogs (Actually they are shown but not counted, I mean in the top tab “recipe” the count for the user is always 0, even if he had just posted a recipe in his blog, I can even see it in the stream). Is there something I miss?
Basically what I want to achieve is to let every single post (or custom post) be present in the main site, in order to search for it globally, and at the same time to be shown in the member’s blog.
Or, from another point of view, I could let every member publish their post from the main site, and then simply “group” every post from a specific user in a kind of “customised” view, like if it where his own blog, with custom background, colours, ecc.
Does it make any sense?
October 27, 2015 at 5:26 am #246048In reply to: Login page
Rimon Habib
ParticipantIf you want to redirect all users(admin,subscriber,all roles) to homepage after login, just use this line at your theme functions.php file
add_filter( 'login_redirect', create_function( '$url,$query,$user', 'return home_url();' ), 30, 3 );Or if you filter a bit, like Admin users will redirected to dashboard, and all others to home page, you can place this code instead of that
function wp_bp_custom_login_redirect( $redirect_to, $request, $user ) { global $user; if ( isset( $user->roles ) && is_array( $user->roles ) ) { if ( in_array( 'administrator', $user->roles ) ) { return $redirect_to; } else { return home_url(); } } else { return $redirect_to; } } add_filter( 'login_redirect', 'wp_bp_custom_login_redirect', 30, 3 );October 27, 2015 at 2:00 am #246042In reply to: Buddypress in multisite
mrjarbenne
ParticipantIt doesn’t work like that. In a multisite instance, your users can all have their own blogs (think wordpress.com). What BuddyPress does is allow you to see all of the activity from those subsites in one Activity feed (among other things).
I have set up the categories in the main site, and I expected to see the same categories on every site, but it doesn’t work.
Although this isn’t a BP feature, there is a plugin that does this. It hasn’t been updated in a while, but you could test it out, or purchase support from Brajesh and request a fix if you run into issues:
http://buddydev.com/plugins/mu-global-terms/. There’s a write-up on the plugin here: http://wptavern.com/wordpress-multisite-global-terms-plugin-share-taxonomies-across-a-networkAlso in the user activity stream I cannot see the posts the user has written in his own blog.
That SHOULD work. You mention a custom post type though: is that the activity you are hoping to see? By default BP only shows posts and comments, not custom post types. You can register custom post types: https://codex.buddypress.org/plugindev/post-types-activities/
If the subsite that you are hoping registers activity is set to discourage search engines in Settings/Reading then it won’t register on the main site.
You may also want to try one of the default themes (twentyxx) to see if it’s your theme screwing things up. Many themes that tout themselves as BuddyPress-Ready, are doing some funky things best left to plugins in their functions.php file.
-
AuthorSearch Results