Search Results for 'buddypress'
-
AuthorSearch Results
-
July 19, 2013 at 12:15 pm #168334
In reply to: Change Login link in admin bar
jetkappu
Participantso many error when i try it..
function custom_bp_adminbar_login_menu() { global $bp; global $wp; remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2); if (is_user_logged_in()) return false; echo '•' . __('Log In', 'buddypress') . ' '; // Show "Sign Up" link if user registrations are allowed if (bp_get_signup_allowed()) { echo '•' . __('Sign Up', 'buddypress') . ' '; } } add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1); Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/wp/wp-content/plugins/bp-custom.php:14) in /home/....../public_html/wp/wp-login.php on line 368July 19, 2013 at 11:56 am #168332In reply to: Change Login link in admin bar
lenasterg
ParticipantYou can try the following.
Into your /plugins folder create a file bp-custom.php.
Into the file put the following code:function custom_bp_adminbar_login_menu() { global $bp; global $wp; remove_action('bp_adminbar_menus', 'bp_adminbar_login_menu', 2); if (is_user_logged_in()) return false; echo '<li class="bp-login no-arrow"><a href="NEW_LOGIN_URL">' . __('Log In', 'buddypress') . '</a></li>'; // Show "Sign Up" link if user registrations are allowed if (bp_get_signup_allowed()) { echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>'; } } add_action('bp_adminbar_menus', 'custom_bp_adminbar_login_menu', 1);Bests,
LenaJuly 19, 2013 at 11:39 am #168330Hugo Ashmore
ParticipantYou have raised this on bbpress support and John has responded so let that thread run.
July 19, 2013 at 10:58 am #168329prikid
ParticipantB/wp-content/plugins/bp-groupblog/bp-groupblog-classes.php on line 58
July 19, 2013 at 9:11 am #168324In reply to: Artisteer Buddypress theme compatibility
Hugo Ashmore
ParticipantThe docs can always take improvement, and I think no one involved with them would claim they are anywhere close to covering all that’s required, but writing them can be very time consuming . The theme compat ones that exist, I thought pretty much covered the detail necessary, but as in all things can always stand reviewing and improving.
In your opening post it struck there was a possible level of confusion between the older approach to custom themes using template pack plugin and theme compat as of 1.7. ?Essentially if allowing BP to run with the newish theme compatibility ( i.e you do not select bp-default theme, or you do not have any bp directories in the theme root e.g /my-theme/members/index.php ) then BP component screens should fit to match a themes content area. In this sense one doesn’t need now to worry about the markup structure as BP uses what exists in page.php (or any of the proscribed file names it looks for first) So here the important question is to ask whether it’s possible you are mixing BP templates i.e some in your theme root, some in theme compat directory – in your theme the only place you should have BP templates is located within a top level directory /my-theme/buddypress/ or /my-theme/community/
In your page.php example the important section is the get_template part that includes the page content loop that’s where /what BP grabs to inject it’s data to.
Now what isn’t known is how your chosen theme is managing styles for those sidebars, but if you want absolute control in being able to configure a primary template file for BP screens then you can copy page.php rename to ‘buddypress.php’ and locate that in /my-theme/buddypress/ now in that file you may call specific sidebars as in get_sidebar(‘buddypress’) along with a new sidebar sidebar-buddypress.php
At the end of the day I think the initial issue to resolve is the (possible) confusion between the two ways of managing BP templates and that you probably want to ensure that full theme compatibility is being allowed to run ( again the bottom line to ensure that this is the case is that one has NO BP templates in the theme whatsoever, letting BP handle injecting it’s content via whatever files the theme provides )
July 19, 2013 at 7:26 am #168322In reply to: Artisteer Buddypress theme compatibility
Sizons
ParticipantI’m sorry to have taken such nab with low emotional intelligence at the documentation, truly I am at a loss of understanding as to why such a powerful product is available under a GPL license, I guess I don’t fully understand the open source philosophy (PS: I’ve been reading your posts over the years Hugo and am a great fan, pity I started off on the wrong foot) –
That aside, in my retraction of such careless words born out of frustration, I must say that the documentation seems very professional and concise, though I also feel it could be a little more detailed.
I’m personally an average everything, I did a multimedia diploma that I dropped out of and never really excelled at anything. I did php during those days too but just barely passed with a 50% or something.
Nevertheless, it is my view that the documentation should be able to lead someone with at least my little experience to getting the job done, it should be just a little bit more detailed, I would suggest print-screens of every step just to be safe.
“Not really sure what you mean here, think you need to explain in detail what file structure and locations”
Okay, under fixing alignment there is a sentence:
Open up the page.php file (if this does not exist, use index.php). Make note of the HTML template structure of the file, specifically the <div> tags that surround the content and sidebar.
When I open my page.php file from my FTP client at the root of my theme folder what I see from page.php is the following code:
<?php get_header(); ?>
<?php get_sidebar(‘top’); ?>
<?phpif (have_posts()) {
/* Start the Loop */
while (have_posts()) {
the_post();
get_template_part(‘content’, ‘page’);
/* Display comments */
if (theme_get_option(‘theme_allow_comments’)) {
comments_template();
}
}
} else {
theme_404_content();
}
?>
<?php get_sidebar(‘bottom’); ?>
<?php get_footer(); ?>In that code, (Forgive me if my understanding is lost here) there is not even one Div tag, infact, there is no HTML code in that file at all, even the index.php(the one in my themes root folder) file looks closely similar to the file above, here is its contents:
<?php get_header(); ?>
<?php get_sidebar(‘top’); ?>
<?php
if (have_posts()) {
/* Display navigation to next/previous pages when applicable */
if (theme_get_option(‘theme_’ . (theme_is_home() ? ‘home_’ : ”) . ‘top_posts_navigation’)) {
theme_page_navigation();
}
/* Start the Loop */
while (have_posts()) {
the_post();
get_template_part(‘content’, get_post_format());
}
/* Display navigation to next/previous pages when applicable */
if (theme_get_option(‘theme_bottom_posts_navigation’)) {
theme_page_navigation();
}
} else {
theme_404_content();
}
?>
<?php get_sidebar(‘bottom’); ?>
<?php get_footer(); ?>Perhaps I am using the wrong page.php file, but that would not make sense because I used the directory address provided by BP-Compatibility on the fixing alignment section.
July 19, 2013 at 12:14 am #168315Ali Hendaoui
Participant@modemlooper, thank you so much that code works, really appreciate the help
July 19, 2013 at 12:07 am #168314In reply to: code showing in top since 1.8 update
modemlooper
ModeratorThe theme you are using is not bp default or twenty twelve. The BuddyPress part of the page looks custom. What theme is this?
July 18, 2013 at 11:19 pm #168313In reply to: WP-minify and new version of Buddypress
ds123
Participanti know this is an old thread but its top of the list on google for the cdn buddypress avatar search …. @pisanojm did you ever find a solution to this using push origin cdn’s …for anyone else the maxcdn company seems to work with buddypress avatars but you can’t permanently store your files there you have to have them mirrored on your local web server … i have to offload the thousands of avatar files off the web app server …onto a cdn …need to use push cdn like cloud files ..or self hosted with w3 total cache plugin ..any advice would be greatly appreciated!?
July 18, 2013 at 9:43 pm #168305Ali Hendaoui
ParticipantThank you and I am really sorry for the inconvenience, if I need anything else I will start a new topic.
July 18, 2013 at 9:40 pm #168304In reply to: Problems with registration page.
Cidade Sonho
ParticipantHello 😡 I have this problem after register
and the member don´t get the e-mail to active your account
Warning: sprintf() [function.sprintf]: Argument number must be greater than zero in /wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 255
I have multi site too
I don´t change the core files 🙂 NEVER 😉why? Thanks =D for all hard work
from Brazillove bp
July 18, 2013 at 7:42 pm #168298In reply to: Adding Dynamic Profile Link to Main Menu Item
katemgilbert
ParticipantI have followed your suggestion to add the Profile link to a second theme location menu. However, now it shows in both menus. How can I specify it just to show in one and not the other? Here is my code:
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in() && $args->theme_location == 'footer-nav' ) return $menu; else $profilelink = '<li><a href="' . bp_loggedin_user_domain( '/' ) . '">' . __('My Profile', 'buddypress' ) . '</a></li>'; $menu = $profilelink . $menu; return $menu; }Thanks!
July 18, 2013 at 5:48 pm #168293In reply to: Own style buddypress.css
Hugo Ashmore
Participantwell ‘community’ always did exist as a location but it’s preference I guess, personally I like ‘community’ as it denotes what the directory is for but it’s half a dozen of one six of the other.
July 18, 2013 at 5:34 pm #168292In reply to: Own style buddypress.css
modemlooper
Moderatoryou can use both locations? everything bp makes better sense in buddypress folder
July 18, 2013 at 5:29 pm #168289In reply to: Own style buddypress.css
Hugo Ashmore
Participant@modemlooper
Yep, I put a patch in then beat Boone around the head until he wrote it correctly and committed 🙂https://buddypress.trac.wordpress.org/ticket/4949
Was planning to update those template compat codex pages to include mention of this.
July 18, 2013 at 3:40 pm #168285In reply to: Own style buddypress.css
modemlooper
Moderator@hnla was that switched in 1.8?
July 18, 2013 at 2:56 pm #168283In reply to: User Registration Problems
ojbravo
ParticipantI have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.
Here is what seemed to have caused / resolved my problem:
In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.
Hope this helps someone.
Godspeed,
Omar
Wordpress v3.5.2
Buddypress v1.7.2July 18, 2013 at 2:55 pm #168282In reply to: Register Page Goes Nowhere
ojbravo
ParticipantI have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.
Here is what seemed to have caused / resolved my problem:
In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.
Hope this helps someone.
Godspeed,
Omar
Wordpress v3.5.2
Buddypress v1.7.2July 18, 2013 at 2:53 pm #168281In reply to: Registration form not allow new members
ojbravo
ParticipantI have been having this exact same problem sporadically. I have searched a ton of forums and have seen many people with the same issue, starting as far back as BPv1.2 and WPv2.9. So far, I have yet to find anyone who has posted a solution to this problem.
Here is what seemed to have caused / resolved my problem:
In the general settings of my WordPress install, I listed the url of my site as http://mydomain.com, but when I linked to the register page I linked to http://www.mydomain.com/register/. Registering with this link produced the page refresh / clearing of passwords error. Removing the www from the address fixed the issue.
Hope this helps someone.
Godspeed,
Omar
Wordpress v3.5.2
Buddypress v1.7.2July 18, 2013 at 2:34 pm #168278In reply to: 500 Server error after upgrading to 1.8
meg@info
Participanttry to disable all plugins excepts buddypress
July 18, 2013 at 2:33 pm #168277In reply to: Artisteer Buddypress theme compatibility
Hugo Ashmore
ParticipantA source of documentation that just works? not sure what that means , there are a couple pf codex docs that go into fair detail regarding how to deal with theme compatibility and customising not sure we can make them any more explicit really, there is a certain amount of knowledge one just needs as regards generic PHP amd markup in order to be able to work effectively for ‘clients’
My major problem is that my page.php and index.php both have no div tags
Not really sure what you mean here, think you need to explain in detail what file structure and locations you are trying to work with before trying to see where you are getting confused.July 18, 2013 at 6:32 am #168258In reply to: Own style buddypress.css
Hugo Ashmore
ParticipantAs of 1.8 you should be able to locate the file in /my-theme/community/css/ or /my-theme/buddypress/css/
July 18, 2013 at 4:56 am #168255In reply to: Own style buddypress.css
modemlooper
Moderatoryourtheme/css/buddypress.css
place the file there and it will overide the css
July 18, 2013 at 4:54 am #168254modemlooper
ModeratorUse the code I posted above
July 18, 2013 at 3:54 am #168252In reply to: Register Page Not working
-
AuthorSearch Results