Search Results for 'theme'
-
AuthorSearch Results
-
September 23, 2016 at 7:34 pm #259073
In reply to: Remove secrtion icons in profile
Venutius
ModeratorTHose icons don’t come with Buddypress, they may be something from your theme?
September 22, 2016 at 4:09 pm #259025danbp
ParticipantHi,
that’s usually a CSS issue with the theme.
I visited admin’s profile on your site and highlighted the whole Basic Info and user name. By doing this i can read the word Name you don’t see actually. Exact same behave on the other user’s profile….This means that’s the text has the same color or has such a low contrast with the page background that you can’t read it !
You can adjust this via CSS in your (child) theme. Try something like:
div.profile .label { color: #000!important; }Paul Wong-Gibbs
Keymaster(This error message in your screenshot refers to some other plugin, not BuddyPress. But anyway:)
To remove any plugin in WordPress, go into
wp-content/plugins/with FPT or however, and delete the plugin folder — in this case,BuddyPress.If you visit
your-site.com/wp-admin/plugins.phpdirectly, WordPress should disable the missing plugin.If you happen to not be logged in, and so can’t get into
wp-adminbecause of the error… you could edit something in the database with SQL, but it sounds like you aren’t technically proficient with SQL to do this (it’s easy to break something else), so the last option — and this is a nuke — rename your theme folder to something else, rename the entire plugins folder to something else, then you should be able to log into wp-admin. WordPress will switch to one of the default twenty* themes. You can then rename the plugin folder back and start reactivating them one-by-one, and then switch the theme back.djsteveb
Participant“need a FTP script” – tried filezilla?
I use smart ftp more often, but filezilla is free last I checked.ftp in, download a backup of all the files.
Don’t know what you mean by “SQL script to remove buddypress” – I would use phpmyadmin to login to your sql database, click export, custom, check ‘add drop table’ – and save a copy..
then I would go to (via ftp or file manager in cpanel) – site / wp-content/plugins
I’d rename the plugins folder to /plugins-hold – then create a new /plugins folder
at that point you should be able to login to the site if you to sitename/wp-admin/
I’d immediately check appearance – themes – change to default.. then start adding the needed plugins one by one.. if you find that enabled two plugins at once causes a problem – you probably have found the conflict.
Of course it could be a theme issue, a corrupt database, a hacked site – who knows.. but that’s what I would do.. I’m not an expert, and double check the documentation at wordpress.org for making backups. ( https://codex.wordpress.org/WordPress_Backups )
Hope that helps.September 21, 2016 at 7:56 pm #258993argoncobalt
ParticipantI’m wondering if maybe I should just ignore the warning then. Warnings aren’t the same as errors anyway, and everything is working just fine on the production site. I’m contemplating disabling warning messages for now.
I’m just coming into the project now, I don’t know anything about the theme or where it came from. I assume my client had another developer build it at some point.
September 21, 2016 at 12:11 pm #258972Paul Wong-Gibbs
KeymasterOn any decent server config, warnings and errors will not be shown on screen in production environments. Instead, it’ll be written to a log file. So you will still have the problem.
Try switching back to your real theme (so the warning comes back), and then disable plugins one-at-a-time. See if you can figure out if it’s a combination of one plugin and your theme causing the problem.
Is this a custom theme you wrote? Or did you buy from somewhere? Are BuddyPress templates defined in the theme (it’d be in
your_theme/buddypress/subfolder)? If it’s isolated to only your theme and not your theme+plugins, you’re going to have to debug through the members templates and figure it out.September 21, 2016 at 7:18 am #258966In reply to: Custom Theme Template Path
danbp
ParticipantUsing BP Theme Compat in Plugins.
BuddyPress has no more theme since 1.9. The old BP-Default theme is only in for backward compatibility.
If you build a plugin for BP, i don’t think you need to build an extra theme for it. BP use only templates, who have enough flexibility to fit with almost any theme.Globally, for a plugin, you have to match with BP’s templates, not with a theme or another.
Ie. if you need a setting screen on profiles, you can use a simple call to a kind of pre-build template you can use for plugins
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );By using this, you’re on the profile with a new tab related to your plugin and automatically also integrated to the user’s theme. In other words, BP takes in account your plugin and the theme takes account of BP.
I wouldn’t recommand to build a theme with a plugin, as they are so many different themes on hand. If you don’t fit to the majority of them for any obvious reason, you’ll get in high difficulties if you are to specific. Don’t forget that you will have a plugin support to manage…
Made it simple and efficient and if possible, easy maintainable and upgradable. For you but also for any user type.
September 20, 2016 at 11:48 pm #258961In reply to: Custom Theme Template Path
Christian Freeman (codelion)
ParticipantAwesome, thanks! The template overload and BP theme compat documentation is really insightful.
My goal with this is to create a plugin that loads a BuddyPress theme which can work along with nearly any WordPress theme I switch to. With that said, in your expert opinion, which of the methods you’ve provided will work best from an overall compatibility perspective?
September 20, 2016 at 9:55 pm #258957In reply to: Custom Theme Template Path
danbp
ParticipantSome documentation here:
September 20, 2016 at 9:35 pm #258955In reply to: How to show full comment in the activity
danbp
ParticipantHi @tronix-ex,
Give this a try. Read more will only appear again if you use more than 500 000 characters…
Add to bp-custom.phpfunction bpfr_excerpt_length( $length ) { $length = 500000; // adjust the length to desired number of characters // Is the current page a user's activity stream page ? if( bp_is_user_activity() ) { return $length; } } add_filter( 'bp_excerpt_length', 'bpfr_excerpt_length', 11, 1 );September 20, 2016 at 6:21 pm #258944argoncobalt
ParticipantHi Paul, thanks for the tip. I tried doing that and the warnings went away. So it must have something to do with the theme. I’ll begin looking into it. If you have any suggestions, I would appreciate hearing them. Thanks!
September 20, 2016 at 3:57 pm #258939Paul Wong-Gibbs
KeymasterI haven’t seen this on my dev site, and I don’t think we’ve had reports of this, so… as it’s staging, please can you switch the theme temporarily to a default WordPress theme, like twenty-twelve (etc) — and then visit this same URL again and see if the warning is still being printed or not?
I suspect it’s something in your theme, maybe one of the templates, or some customisation hooked into the members loop, but switching the theme is an easy way to start figuring out possible causes.
September 20, 2016 at 3:54 pm #258938In reply to: Can’t type in Multi-Line Text Area Fields
Paul Wong-Gibbs
KeymasterIt’ll be something specific to your theme/site. Could be some odd Javascript, odd CSS. Impossible to tell unless your site is public for someone to take a look at.
September 20, 2016 at 3:53 pm #258937Paul Wong-Gibbs
KeymasterI’d look at increasing performance generally rather than specifically focusing on trying to block search engines.
Like… I don’t know what other plugins or themes you are running, or how well they are written, nor anything about your hosts’ performance, but you need to look into those. I’d also look at making sure you have an object cache available and configured for WordPress if there isn’t already.
September 20, 2016 at 11:49 am #258929In reply to: New user activation emails not sending. Help!
Stormn
ParticipantI am having the same issue. I need members to be able to sign up themselves with a confirmation email rather than me having to approve them manually. This problem also affects my ability to set up a commerce page. I am using BP 2.6.2 with the WP Spirit 01 Theme. I am not using any other Buddy Press plugins other than just BuddyPress.
September 19, 2016 at 7:26 pm #258923shanebp
ModeratorHave you tried any of the methods available via google search?
For example:How To Stop Search Engines From Indexing Specific Posts And Pages In WordPress
September 19, 2016 at 2:38 pm #258911danbp
ParticipantHi @rezbiz,
in brief, you want to add some status dependent custom link to the BuddyBar.
I’ll ignore Kleo (premium theme) and Visual Composer (third party plugin).
Following examples let you add an external link to a non BP page on almost any menus (except BP usermenu).
How it works ?
– create a test page and call it Book.
– the page slug must be /book/
– the link (tab/button) will be displayed to logged-in users only.I made also a snippet which add such a link to the WordPress Main Menu. This menu is the one you see in WP’s menu customizer by default. Depending the theme you use, you have always a main menu and X others. This can vary and it’s to you to find how it can/should work eventually. See theme documentation and WP Codex if you get in trouble with it.
Note that it should work with all Twenty themes at least.Add the snippets to bp-custom.php and see the result. After that, read through the code and modify the page name/ID and slug to your need. Leave anything else untouched.
// add Custom tab on site wide activity and members directory pages function tab_custom_link_to_page() { if ( bp_is_activity_component() || bp_is_page( BP_MEMBERS_SLUG ) ) { if ( !is_user_logged_in() ) return false; // link to what you want $link = bp_get_root_domain() . '/book'; echo'<li><a href="'. $link .'">My Book</a></li>'; } } add_action( 'bp_activity_type_tabs', 'tab_custom_link_to_page' ); // site wide activity page add_action( 'bp_members_directory_member_types', 'tab_custom_link_to_page' ); // members directory page // add Custom tab on Profile Nav function add_profiles_link_to_page(){ if ( bp_is_profile_component() || bp_is_user() ) { if ( !is_user_logged_in() ) return false; $link = bp_get_root_domain() . '/book/'; ?> <li><a href="<?php echo $link; ?>"><?php printf( 'My Book' ); ?></a></li> <?php } } add_action( 'bp_member_options_nav', 'add_profiles_link_to_page' ); // add Custom tab on Groups Nav function add_groups_link_to_page(){ if( bp_is_active( 'groups' ) ) { if ( !is_user_logged_in() ) return false; $link = bp_get_root_domain() . '/'; bp_core_new_subnav_item( array( 'name' => 'My Book', 'slug' => 'book', 'parent_slug' => bp_get_current_group_slug(), 'parent_url' => $link, 'screen_function' => true, 'position' => 40 ) ); } } add_action( 'bp_setup_nav', 'add_groups_link_to_page' ); // add Custom tab on Groups Directory function add_groups_directory_link_to_page() { if( bp_is_active( 'groups' ) ) { if ( !is_user_logged_in() ) return false; if ( bp_is_current_action( 'custom' ) ) return; $link = bp_get_root_domain() . '/book'; $button_args = array( 'id' => 'my-books', 'component' => 'groups', 'link_text' => 'My Book', 'link_title' => 'My Book', 'link_class' => 'my-books no-ajax', 'link_href' => $link, 'wrapper' => false, 'block_self' => false, ); ?> <li><?php echo bp_get_button( apply_filters( 'bp_get_group_custom_button', $button_args ) ); ?></a></li> <?php } } add_action( 'bp_groups_directory_group_filter', 'add_groups_directory_link_to_page' ); // add Custom tab on WP Main Menu ( after Home, About, etc ) function main_menu_custom_link_to_page( $menu ) { if ( !is_user_logged_in() ) return $menu; else // link to what you want $link = bp_get_root_domain() . '/book'; $grouplink = '<li><a href="'. $link . '">My Book</a></li>'; $menu = $menu . $grouplink; return $menu; } add_filter( 'wp_nav_menu_items', 'main_menu_custom_link_to_page' );Yes, it looks complicated, but it isn’t. Simply it’s not homogeneous ! 🙂
September 18, 2016 at 9:17 pm #258902rezbiz
ParticipantYou’re the man Dan!
Super useful info. I’m still an uber plebe in all this, so please forgive me for the further clarification:
So let’s say I create a page, then put a link to that page in the top menu bar (using Kleo theme for further context). This page isn’t a BP page at all, just a regular page with some Visual Composer elements. Is there a way I can make this regular page link in the navigation menu dependent on the visitor’s logged in status?
You may have already answered this in the info above, if so please just tell me to take a closer look at your reply. I’m not opposed to putting in the footwork to understand the basics, just don’t know enough to know what I don’t know. ‘Namsayin?
September 18, 2016 at 8:29 pm #258900danbp
ParticipantHere “the best guarded secret” finally revealed !
But it’s not a secret, is part of Codex and a multi handled topic subject on this forum.What we want to do: remove access possibility.
Where: on BuddyBar navigation menu (the one below the profile header).
Specifics: make the activity and forum tabs only visible to the logged in user.NOTE: The activity tab is shown by default when you visit a profile.
As we are going to hide/remove this tab to visitors, we need to define as first another default tab. If we won’t do that, the visitor will get a Page not found error. Which is not exactly the case here, the page exist but the visitor can’t access it.
Let’s define arbitrary Profile as the new default tab. You can of course define what ever other existing tab on your BuddyBar as default.
Add this line to bp-custom.php
define( 'BP_DEFAULT_COMPONENT','profile' );Now the mega “open secret” !
The folowing snippet contains almost any BP menu items you can have on a BuddyBar, and includes also the Forum item, in case you use bbPress.
You can remove or comment out those you don’t want to use.
Note also that it is only an example – you have to play with it to fit your need. But at least you have the right syntax to use.
Note also that some profile menu items are user only, such as message or notice. In other words, these are always private.This function goes preferably to bp-custom.php
function bpfr_hide_tabs() { global $bp; /** * class_exists() & bp_is_active are recommanded to avoid problems during updates * or when Component is deactivated */ if( class_exists( 'bbPress' ) || bp_is_active ( 'groups' ) ) : /** here we fix the conditions. * Are we on a profile page ? | is user site admin ? | is user logged in ? */ if ( bp_is_user() && !is_super_admin() && !is_user_logged_in() ) { /* and here we remove our stuff ! */ bp_core_remove_nav_item( 'activity' ); bp_core_remove_nav_item( 'friends' ); bp_core_remove_nav_item( 'groups' ); bp_core_remove_nav_item( 'forums' ); } endif; } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );Some other hints for privacy
if you want to allow only the profile owner to view some tabs, replace
!is_user_logged_inby!bp_is_my_profile()– this scenario doesn’t need a check for logged in users as it is made bybp_is_my_profile.If you want only to make a profile private, read here.
If you want to remove a sub-nav item (ie. View on Profile), you use something like:
bp_core_remove_subnav_item( 'profile', 'view' );Many other possibilities for navigation are also available, including for groups. Several examples are given on Codex, here.
And if not enough, RTFM and search the forum ! 🙂
Have fun !
September 18, 2016 at 5:59 am #258881In reply to: Not all widgets shows on front page
SunshineMagic
ParticipantI have this issue too. I can’t believe that no one has responded to you in 4 months!??
It’s clearly a buddypress issue too as it doesn’t work with the theme I am using nor does it work with the default wordpress theme and apparently while it used to work with your theme, after a reinstall, not anymore.
So it’s definitely a buddypress issue but no one responds in 4 months?? How on earth are we to get what we need working if the response time is more then 4 months??
Feeling concerned that buddypress was the wrong choice. This is my first issue and it’s a bad first experience! Unfortunately I put 2 months into building this site and I can’t go back now so it looks like I’m going to have broken pieces and likely have to dump buddypress and maybe even wordpress all together and build a custom PHP site asap, unless someone gets back to yoUs soon.
I hope they do cause I’ve been having fun w/ WP and BP but functionality clearly comes before fun…
September 17, 2016 at 7:08 pm #258872rafiamudasar
ParticipantBasically in the final look I have to remove tabs all together and will have custom links/ buttons here and there to edit profile and cv fields. So I was looking for a hook which will extract cv data onto the landing page. I have copied single directory files into theme child and working on that so basically I want to pull data into home.php file of single directory . hope this explains well
September 17, 2016 at 6:32 pm #258866danbp
ParticipantHi,
not sure i understand correctly, but if you want the resume page to show as default landing tab (in place of the user activity) when you are on a profile, you can use this:
define( 'BP_DEFAULT_COMPONENT', 'resume' );Add it to bp-custom.php
Codex reference.
September 17, 2016 at 8:24 am #258852In reply to: Order posts
Venutius
ModeratorThis seems to be more of a bbPress issue, since it is to do with the ordering of the forum. I would unload all other plugins and see if the problem persists, also switch to the 2016 Theme.
September 17, 2016 at 7:35 am #258849In reply to: Adding xprofile fields to activity header
karmatiger
Participantthanks 🙂 That narrows it down. However, I’m trying to add text to the header, inline with the timestamp. The filter solution above places text after the header, two line breaks down.
I’ve added
if ( ! function_exists( 'bp_get_activity_action' ) ) { function bp_get_activity_action( $args = array() ) {...…the rest is a copy of the original bp_get_activity_action function so I can override it with this new one via the child theme. However, I’ve tried adding the new info at various points throughout the function and still nothing is displaying other than the default info.
September 16, 2016 at 4:52 pm #258810In reply to: [Resolved] Redirect on Logout
danbp
ParticipantHi,
the warnings cames probably because the logout function is called twice.
Check your theme’s functions.php or see for a specific setting.Can you test the standard behave with a Twenty theme and BP, and all other plugins deactivated.
Remove also the custom code while testing.If still an issue, consider this plugin. All is in the title, but it redirects to homepage on logout.
-
AuthorSearch Results