Search Results for 'theme'
-
AuthorSearch Results
-
July 13, 2016 at 11:10 am #256550
In reply to: [Resolved] Password reset template
Henry Wright
ModeratorThe Theme My Login plugin does that quite well.
July 12, 2016 at 8:37 am #256526In reply to: tinymce post-form missing “post update” button
danbp
ParticipantCompare source code of the textarea on activities (which use original BP JS) and compare with the source of the custom textarea. The first thing you may notice on the original, is that there is no iframe.
The second is that you have some tinymce related divs which aren’t handled by what’s new JS – that’s why the visual tab doesn’t recognize formatted text and why there is the filter to diable that tab.
To show the buton and the missing selector, it’s a simple CSS adjustment to declare.
Add this to your child theme style.css#whats-new-options{ clear:both!important; }Works at least on 2016.
If you absolutely want the visual tab to work, you have to write some additionnal JS, so it can recognize the custom area tools. I’ve never done that and i’m unable to help you with this.
July 12, 2016 at 8:12 am #256523In reply to: override bp_show_blog_signup_form()
Henry Wright
ModeratorHi @socialc
The Template Hierarchy will let you override create.php. In your own version of that file you could use
custom_show_blog_signup_form()in place ofbp_show_blog_signup_form(). I’d copy everything frombp_show_blog_signup_form()to your custom function and edit what you need to.July 12, 2016 at 1:34 am #256512Bj123
ParticipantThanks for all your replies! @r-a-y ‘s modified zip of the plugin successfully fixed the error on my Boss themed site. It’s all working normal again. Awesome job there r-a-y!!
July 11, 2016 at 5:50 pm #256489In reply to: Change ‘Show all X comments’ limit
danbp
ParticipantGlobal.js is related to BP Default theme which is no more used since 1.9.
The “new” js you can check for comment count is \buddypress\bp-templates\bp-legacy\js\buddypress.js:667I don’t know how the default 5 count is set before firing Show all X comments link. But i haven’t read very attentively the whole js file.
If your goal is to gain some place on activity feeds, you may use a show/hide comment button ?
function add_comment_hide_show() { ?> <style> .single-group .activity-comments ul{display: none;} </style> <script type="text/javascript"> jQuery(function($) { setInterval(function() { $('.activity-meta').each(function() { if( !$(this).find('.show-comments').length ){ var html = '<a href="#" class="button bp-primary-action show-comments">Show/Hide Comments</a>'; $(this).find('.button.acomment-reply').after(html); } }); }, 500); $('body').on('click', '.show-comments', function(e) { e.preventDefault(); var obj = $(this).closest('.activity-content').next('.activity-comments').find('ul'); obj.slideToggle(); return false; }); }); </script> <?php } add_action( 'wp_footer', 'add_comment_hide_show' );Or if you want to limit the number of comment a member can leave on activities, BPDEVEL has a premium plugin called BP Rate Limit User Activity which can do that.
On Trac, some very old tickets about comments: #2768, #1870
Perhaps @dcavins can tell you more about this ?
July 11, 2016 at 1:28 pm #256470knownocode
ParticipantAlso I added Modulus to my list of themes, thanks everyone who contributed! This can be marked as closed/resolved! (not seeing how to do so myself)
July 11, 2016 at 7:30 am #256459In reply to: Several bad links. (I’m at a loss)
mgenjoker
ParticipantI was unable to see the link you saw. With my theme i see the correct link but a white screen for edit. Even though I left twentyfourteen on over night. But It’s back on my theme. I’ve tried with, removing each, and removing all of the functions in the functions.php there are only 3 basic things. That leaves it to be something in the main section of my css. I could upload my css if you wanted to take a look, I’m in the process of trying to sort stuff out somewhat. Css link: https://www.dropbox.com/s/u961o0da9am7ocy/cssBackup71016.txt?dl=0
July 11, 2016 at 1:25 am #256454tutorbe
ParticipantHello @danbp,
Thanks for your help,
Actually I have been using BP 2.5.3 for several months and already did the configurations you’ve mentioned above, it has been working properly. I just tried to upgrade to BP 2.6.1.1 then the problem has happened. I tried to eliminate causes of the problem by installing a fresh WP 4.5.3 with only PB 2.6.1.1 activated, the problem still existing.
I also tried to compare BP 2.5.3 and BP 2.6.1.1 with the same configuration, the same request and with Rayβs script, I have noticed one difference is that:
1. For BP 2.5.3, it can send requesting {action, component} for each menu navigation, but
2. For 2.6.1.1, it only sends only {component}Just would like to mention that I have tried to use BP 2.6.1.1 with different themes, the same problem has happened for all. My server uses nginx, it works well with BP BP 2.5.3.
Thanks for helps.
Jobi
July 10, 2016 at 6:38 pm #256443tutorbe
ParticipantDear All,
I hope someone can point me a clue regarding the following:
I have just installed WP 4.5.3 along with only Buddypress 2.6.1.1 activated, when I tried to access members/admin/profile/, it just returned 404 page. I have tried with different themes, the same issue still existing.
I tried to investigated the problem using the debug script from r-a-y, it just showed:
Array ( [component] => profile )Thanks and best regards,
Jobi
July 10, 2016 at 3:49 pm #256434In reply to: Custom post type
danbp
ParticipantGlad you got it !
Sad you did it wrong by hacking a plugin core file (ignitiondeck-admin.php). What will happen to your modification at next Ignitiondeck update ?
Couldn’t your filter work from within bp-custom.php or theme’s functions.php ?
Has that plugin no hooks to extend it ?IMO a generous bad good idea.
July 10, 2016 at 3:19 pm #256431In reply to: Login redirects not working
socialc
Participant… or just add a login link to your site anywhere in your theme files. e.g
<a href="<?php echo wp_login_url(bp_loggedin_user_domain()); ?>"><?php _e('Login', 'buddypress'); ?></a>.This will redirect a user to their profile page after logging in.
July 10, 2016 at 2:49 pm #256425In reply to: Errors after update
danbp
Participant[MOD] Topic moved to a more appropriate forum.
The following plugins/widget are generating these error messages.
bp-edit-group-slug
BP_Toplevel_Groups_Widget
BP_Group_Navigator_Widget
bp-group-email
bp-group-hierarchy
You have to contact their authors via plugin support on WP repo.
and on your side:
The first step to getting rid of those Notices is identifying the source, so:
β switch momentarily to a WP theme like 2016 and see if any persist
β turn off plugins one at a time and see if any persistAbout the bbPress notice (bbp_setup_current_user was called incorrectly), read here:
https://buddypress.trac.wordpress.org/changeset/10709/July 10, 2016 at 12:09 pm #256411In reply to: How to hide profile menu items from other users
danbp
ParticipantAdd this snippet to bp-custom.php and give it a try.
function bpex_hide_profile_menu_tabs() { if( bp_is_active( 'xprofile' ) ) : if ( bp_is_user() && !is_super_admin() && !bp_is_my_profile() ) { // BP's profile main menu items. Comment those to show. // bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'profile' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); // exist only if you use bbPress bp_core_remove_nav_item( 'forums' ); // BP's profile main menu items. Comment those to show. // bp_core_remove_subnav_item( 'activity', 'personnal' ); bp_core_remove_subnav_item( 'activity', 'mentions' ); bp_core_remove_subnav_item( 'activity', 'favorites' ); bp_core_remove_subnav_item( 'activity', 'friends' ); bp_core_remove_subnav_item( 'activity', 'groups' ); } endif; } add_action( 'bp_setup_nav', 'bpex_hide_profile_menu_tabs', 15 );July 10, 2016 at 11:16 am #256410In reply to: Several bad links. (I’m at a loss)
mgenjoker
ParticipantI switched to the Twentyfourteen theme to see if it would work and it did. I don’t understand why my child theme would be causing it. I’ve tried removing my stuff from functions.php . That just leaves the css, any insite on what possibly could be causing that? It’s Weird.
July 10, 2016 at 6:37 am #2564065high
Participantuh oh – just logged a php error for the new code. The error reported was this:
PHP Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in /home/mysite/public_html/wp-content/themes/child-theme/buddypress/activity/index.php on line 34
But when I look at this file I’m pretty sure it’s the same as what you posted =
<?php if ( is_user_logged_in() && is_super_admin() ) ?> <?php bp_get_template_part( 'activity/post-form' ); ?> <?php endif; ?>and line 34 is:
<?php endif; ?>which I’m pretty sure I didn’t change!Can anyone spot what the problem is here?
Many thanks, j
July 10, 2016 at 2:56 am #2564045high
Participant@danbp – Just had another chance of reviewing this and finally the penny’s dropped! So I now totally understand what you’re doing and where the code goes and it works as expected! (as I’m sure you knew it would…)
Though one of the issues before, rather embarrassingly, was that after migrating my site and retesting with the original theme I’d then forgotten to change it back to my child theme – so all my edits weren’t taking effect – duh!
So now it works AND it has the correct code in.
many thanks for your time again, jJuly 9, 2016 at 5:19 pm #256394In reply to: [Resolved] Front.php and BuddyPress 2.6
mcarlyle
ParticipantHi, Ive spent most the day trying to add widgets to the profile areas and stumbled accross this explanation which seems perfect but doesnt seem to work for me.
The widget areas are there and populated, and the home tab is displaying, but the widget content doesnt display?
Is it possible my front.php is not being called for some reason?
Im using an Avada Child theme, could that be part of the problem?
Thanks
July 9, 2016 at 1:39 pm #256168In reply to: How do I change the activity-greeting copy?
socialc
Participant@danbp yeah, sorry about that :). Reason I went a bit further was when working on a theme earlier I was using a function
get_displayed_group_id()or something with a similar name. I was expecting a return value but it was echoing no matter where I placed this.Ended up using a different method.
Just wondered if there were other functions inside BuddyPress that looked like a return value but had output instead.
July 9, 2016 at 1:00 pm #256166In reply to: Custom post type
danbp
ParticipantHave you read this tutorial ?
Note that most of BP custom functions for core are better handled when living in bp-custom.php. Sometimes also, a same function may work from within one file, but not from the other. In other case, which file has no real importance.
Even if in background there is a hierarchy and a load order, to take in account for the file choice.That said, as it is related to CPT, bp-custom is the best place IMO.
Theme’s functions.php contains functions related to theme, templating and evtl. wp stuff
BP custom functions goes to bp-custom.phpIt’s also better for you to have such separated functions.
peterBerlin
ParticipantFor some unknow reason, it all worked out the next day and the local themes was working again. Maybe the server restarted or something… who knows.
July 9, 2016 at 9:15 am #256158In reply to: How do I change the activity-greeting copy?
socialc
ParticipantInside your theme, make sure there is a file
wp-content/themes/your-theme/buddypress/activity/post-form.php. If there is no file in that location copy this filewp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.phpinto the first location.Then, look at line number 28 – 32 of post-form.php.
From there, you will notice you can change this text for the activity update form which reads “What’s new in “GROUP NAME” if you’re on a group page posting the update or “What’s new USERNAME” if you’re any where else.
So, to swap in a specific profile field you’d need to supply a bit more about the nature of your project and how it’s setup. You could simply drop in some static text, but if you want it to relate to a specific profile field in a dynamic way then please elaborate further.
July 9, 2016 at 2:40 am #256147In reply to: Post Registration message hidden
binary10
ParticipantMight be a theme problem? Try if it works with WP default theme or use this CSS
.entry-title{display:block !important}July 8, 2016 at 1:40 pm #256136In reply to: Don’t auto login after user activation
sharmavishal
Participantyes its not…check with the theme author
July 8, 2016 at 1:35 pm #256135In reply to: Don’t auto login after user activation
pulidomate
ParticipantI’m using WPLMS theme:
https://themeforest.net/item/wplms-learning-management-system/6780226Maybe is not a problem of Buddypress?
July 8, 2016 at 7:49 am #256078In reply to: Customizing Preset Groups Page
danbp
ParticipantIf you’re sepaking about the Group directory page, yes !
# of columns can be defined by CSS. For other details, read here
https://buddypress.org/support/topic/how-to-display-multiple-single-group-headers-on-a-single-page/You need also a child-theme to do customization.
Codex is your friend. π
-
AuthorSearch Results