Search Results for 'theme'
-
AuthorSearch Results
-
September 8, 2010 at 3:12 pm #91877
mariochampion
Participantjust to add to this discussion, concerning what hook to link it to…this is what works for me. i didnt have luck with bp_setup_nav for some reason. i dont recall where i got this example, but think its bp-xprofile.php itself. this worked in both theme>functions.php and in my own mmc_functions.php which i “require()” in functions.php
just to add a hint of background, we are moving these two items to the ‘settings’ tab from the profile tab. the removing is trivial, the adding is trivial, the getting all the right functions/themes/forms called, not so much. but its done and it works.
here is the code for removing sub-tabs — aka options:
`
//removes in a structural way.. no change to bp-xprofile.phpfunction mmc_bpsetupnav_removefromprofile(){
global $bp;if ( $bp->current_component == $bp->profile->slug ) {
bp_core_remove_subnav_item($bp->profile->slug, ‘edit’);
bp_core_remove_subnav_item($bp->profile->slug, ‘change-avatar’);}//end if
}//end function
add_action( ‘wp’, ‘mmc_bpsetupnav_removefromprofile’, 2 );
`here is my code for adding them to the settings tab
`
////////////////////////////////////////////////////////////
////// functions for moving to Settings tab the editprofile/change avatar sub-tabsfunction mmc_bpsetupnav_forsettings(){
global $bp;if ( $bp->current_component == $bp->settings->slug ) {
//define ( ‘BP_XPROFILE_SLUG’, ‘settings’ );//didnt have desirable effects. left her for documentation//this is essentially a clone of xprofile-settings.php, but with tweaks to change BP_XPROFILE_SLUG references tp BP_SETTINGS_SLUG
//that way didnt change any core files, and moved it out of the upgrade stream
require_once( WP_PLUGIN_DIR.’/mmc_misc/functions_xprof_settings_mmc.php’);$profile_link = $bp->loggedin_user->domain . $bp->profile->slug . ‘/’;
$settings_link = $bp->loggedin_user->domain . $bp->settings->slug . ‘/’;//EDIT PROFILE
bp_core_new_subnav_item( array(
‘name’ => __( ‘Edit Profile’, ‘buddypress’ ),
‘slug’ => ‘edit’,
‘parent_url’ => $settings_link,
//’parent_slug’ => $bp->profile->slug, //left for documentation
‘parent_slug’ => $bp->settings->slug,
‘screen_function’ => ‘xprofile_screen_edit_profile_mmc’,
‘position’ => 50, //magic number based on current items already there in SETTINGS tab
‘user_has_access’ => bp_is_my_profile() //ADDED, NOT IN ORIGINAL WHEN IN BP-XPROFILE.PHP
) );//CHANGE AVATAR
bp_core_new_subnav_item( array(
‘name’ => __( ‘Change Avatar’, ‘buddypress’ ),
‘slug’ => ‘change-avatar’,
‘parent_url’ => $settings_link,
//’parent_slug’ => $bp->profile->slug, //left for documentation
‘parent_slug’ => $bp->settings->slug,
‘screen_function’ => ‘xprofile_screen_change_avatar_mmc’,
‘position’ => 60, //magic number based on current items already there in SETTINGS tab
‘user_has_access’ => bp_is_my_profile() //ADDED, NOT IN ORIGINAL WHEN IN BP-XPROFILE.PHP
) );}//end if
}//end function
add_action( ‘wp’, ‘mmc_bpsetupnav_forsettings’, 2 );
add_action( ‘admin_menu’, ‘mmc_bpsetupnav_forsettings’, 2 );
`note the TWO add-actions at the end. also taken from example at bp-xprofile.php. why this and not bp_setup_nav.. i dont know!
ggod luck
marioSeptember 8, 2010 at 12:50 pm #91863thekmen
Participant@boonebgorges thanks, got it working by adding it to plugins/bp-custom.php.
wouldn’t work from my own themes functions.php for some reason.September 8, 2010 at 9:35 am #91850In reply to: Login textboxes
Hugo Ashmore
Participant@cameroncameron BB code tags don’t work, I edited your post to correct.
That doesn’t look like bp-default theme to me but a modified version, generally issues with custom themes will need to be taken up with the theme author, but as Roger has explained using debugging tools such as Firebug will help you navigate and locate code.
September 8, 2010 at 9:04 am #91845In reply to: Login textboxes
Roger Coathup
ParticipantSet the width of the username and password input boxes in your theme’s CSS file.
If you don’t know the selectors for the input boxes, use firebug in firefox or safari developer tools to take a look at the code
September 8, 2010 at 8:31 am #91842In reply to: Can’t access groups since upgrade
en0ch
MemberOnly just found this reply. (Think I’m confused between subscriptions and favourites??) Anyway …
Thanks very much. My theme is 2010 Weaver – current version 1.2.3 .. WP 3.0.1 .. BP 1.2.5.2
Anyway … just did some more tinkering. Disaster at first resulting in near death .. but got out alive, and continued. Now realised that what I needed was to re-do the BP Template Pack activation process. Now done that, and groups are alive again. Maybe this will help someone one day ….
September 8, 2010 at 1:35 am #91826In reply to: backslashes not showing
r-a-y
KeymasterYou can try removing the stripslashes filter applied to forum posts.
Add the following to your theme’s functions.php file:
`remove_filter( ‘bp_get_the_topic_post_content’, ‘stripslashes_deep’ );`
September 7, 2010 at 7:01 pm #91807In reply to: Nested Comments are not indenting
Hugo Ashmore
Participantit’s not a CSS issue the markup is malformed, trying to correct malformed markup with a presentations language is not a good idea CSS is predicated on well formed DOM structure it’s a symbiotic relationship if one is broken so id the other.
If you really need to fix quickly and are comfortable then access the comment function in the bp-default themes function.php file remove it to a functions file
in a child theme and look for the last closing tag and delete it, then comments will correctly nest within parent li elements. naturally then you’ll need to add any specific styling you want via CSS.As the fix for this is in place and will filter through when versions are upgraded it would be pretty safe to edit the bp-default themes functions file to remove that one tag, but only this one time mind; as always though on ones own head be it!
September 7, 2010 at 6:59 pm #91805Boone Gorges
KeymasterEither you haven’t placed the function in the right place (should go right after the `<?php ` in your theme's functions.php), or you're not correctly referencing the nav items. Remember that they're case-sensitive.
September 7, 2010 at 6:15 pm #91802In reply to: Activity stream replies
techguy
ParticipantSeems like the jquery could be added to the bp-default theme and then everyone could enjoy the feature.
September 7, 2010 at 12:40 pm #91769In reply to: Defining a default page
Paul Wong-Gibbs
KeymasterHi John
Change front page via Administration > Settings > Reading panel. You may have to edit your theme’s header.php to remove the “home” link. “About” is the name of the WordPress page of the same name, so just delete it.
September 7, 2010 at 11:51 am #91760Boone Gorges
Keymaster@blogmudgeon Glad to help
@ri-kun bp_core_remove_nav_item doesn’t take multiple arguments. Try something like:
`<?php function boone_remove_blogs_nav() {
bp_core_remove_nav_item( ‘blogs’ );
bp_core_remove_nav_item( ‘groups’ );
}
add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 ); ?>`Add additional lines for nav items you want to remove. And make them lowercase, as the names might be case-sensitive and they are almost certainly lowercase when they are initially added.
functions.php, in your theme directory, is the appropriate place to put this. There should be no function called bp-functions.php.
September 7, 2010 at 11:09 am #91758In reply to: mobile theme for buddypress?
Anton
ParticipantCare to share a link of your site with this enabled?
September 7, 2010 at 9:35 am #91748In reply to: mobile theme for buddypress?
lylewinton
MemberI’ve been experimenting with WordPress Mobile Pack on my BuddyPress site. Made some progress so I thought I’d share how…
Context is BuddyPress already installed, WordPress Mobile Pack installed:
1) enable Appearance – Mobile Switcher
2) set the mobile theme to “WordPress Mobile (blue)” or other, but not base!!!
3) under Appearance – Menu, create a new custom menu (for mobile navigation) with the following 4 URL links…
Link: Activity /pathto/activity/
Link: Members /pathto/members/
Link: Groups /pathto/groups/
Link: Forums /pathto/forums/
4) add the custom menu to the bottom of your sidebar, under Widgets (unfortunately visible for non-mobile too, but it not too conspicuous)
5) now under Appearance – Mobile Widgets enable only that custom menu (otherwise mobile navigation is a problem)
6) the BuddyPress links don’t work as the mobile theme isn’t compatible, so hack them in on the command line:
$ cd ?pathto?/wp-content/themes/mobile_pack_base/
$ ln -sf ../../plugins/buddypress/bp-themes/bp-default/activity ./
$ ln -sf ../../plugins/buddypress/bp-themes/bp-default/forums ./
$ ln -sf ../../plugins/buddypress/bp-themes/bp-default/members ./
$ cd ../mobile_pack_blue/ (or the one you’re using, but not base)
$ ln -sf ../../plugins/buddypress/bp-themes/bp-default/groups ./Your good to go! You can’t use the mobile base theme as it already has a “groups” directory which stuffs things up (if you’re not a nokia).
September 7, 2010 at 4:38 am #91733In reply to: Admin bar disappeared
Sixgunzx
ParticipantI am having a simular issue. I am using the Jooc theme, wordpress 3.0.1 and Buddypress 1.2.5.2, my admin bar is not showing on the front page. It does seem to be showing in the admin panel. I have deactivated, and deleted bp, and I checked the functions file for the theme as well, and it has the same code as posted above.
September 6, 2010 at 4:54 pm #91671In reply to: Buddypress iPhone theme update
Ekine
ParticipantThe screenshots look great.
September 6, 2010 at 4:25 pm #91667Boone Gorges
KeymasterThe following function, placed into your theme’s functions.php or bp-custom.php file, will remove the Blogs nav item from the Members section of the site:
`function boone_remove_blogs_nav() {
bp_core_remove_nav_item( ‘blogs’ );
}
add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );`Other top-level nav items can be removed by replacing ‘blogs’ with the appropriate name. Subnav items will work in a similar way, except using `bp_core_remove_subnav_item` and the extra $parent_id argument:
`function boone_remove_friends_activity_nav() {
bp_core_remove_subnav_item( ‘activity’, ‘friends’ );
}
add_action( ‘bp_setup_nav’, ‘boone_remove_friends_activity_nav’, 15 );`September 6, 2010 at 2:28 pm #91660PapaTango
MemberSorry to say, a lot of us on the end publishing equation are not programmers… I used EngineSite to find the string, but have no clue as to where the parent ID for the menu item is to be found. even then, is it simply a matter of entering that ID into the argument?
‘/**
* bp_core_remove_nav_item()
*
* Removes a navigation item from the sub navigation array used in BuddyPress themes.
*
* @package BuddyPress Core
* @param $parent_id The id of the parent navigation item.
* @param $slug The slug of the sub navigation item.
*/
function bp_core_remove_nav_item( $parent_id ) {
global $bp;/* Unset subnav items for this nav item */
if ( is_array( $bp->bp_options_nav[$parent_id] ) ) {
foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) {
bp_core_remove_subnav_item( $parent_id, $subnav_item );
}
}unset( $bp->bp_nav[$parent_id] );’
Thanks!
P
September 6, 2010 at 12:22 pm #91654In reply to: Changing fonts in the BuddyPress Default theme?
ch8rt
MemberI would recommend this as a great place to start looking into child themes. Its not advisable to edit the default theme, since your changes could be overwritten if/when you update your buddypress plugin.
For a quick a dirty change however you’ll need to change some values in the default.css file which can be found in wp-content / plugins / buddypress / bp-themes / bp-default / _inc / css / default.css
Your looking for ‘font-size:’ under body and h1, h2, h3, h4, h5, h6.
Hope that helps.
September 6, 2010 at 12:06 pm #91652In reply to: Changing fonts in the BuddyPress Default theme?
Adam
ParticipantI haven’t changed any of the coding whatsoever, and, sorry I should have mentioned, I’m using the theme ‘BuddyPress Default 1.2.5.2’.
I’ve tried using the ‘Inspect Element’ in Chrome, however am still confused as to what I need to change. Does anybody know what line these setting are on within the code, and in what file?
Thanks again.
September 6, 2010 at 11:58 am #91650In reply to: Changing fonts in the BuddyPress Default theme?
ch8rt
MemberThis should be a CSS change, your probably best to use a something like firebug ( a plugin for Firefox ) to locate the attributes that need changing and then searching for them within the stylesheet your site is using.
Without knowing how much you’ve changed or whether your using a child theme its difficult to say where specifically you’d need to look.
September 6, 2010 at 6:34 am #91643Paul Wong-Gibbs
KeymasterIf it’s the main navigation menu item you’re referring to, I’d just edit header.php of your theme. If it’s another menu, clarify which
September 6, 2010 at 6:29 am #91642In reply to: Avatar upload failed on www.buddypress.org
WraithKenny
Participant@Modemlooper, the whole point of my question was that I have Gravatar’s for every email I own, and not a single one shows up on this site, no matter which email I use here. ITS BROKEN (kinda).
In case anyone’s interested in the fix, only use lower case letters for your email address. I propose that the theme author or who ever’s in charge of it puts a filter on the function that calls gravatar to convert the string to lower-case, as some (like me) prefer to type their names will Capitals.
September 6, 2010 at 12:21 am #91629In reply to: Redirect BEFORE Login
pcwriter
ParticipantI saw your post on Buddydev but didn’t have what was needed to answer… now I do.
Redirect to profile:
http://buddydev.com/buddypress/bp-redirect-to-profile-plugin-redirect-users-to-their-profile-on-login-on-buddypress-sites/Restrict non-members to splash-page:
http://www.primothemes.com/post/s2member-membership-plugin-with-paypal/Hope this helps!
September 5, 2010 at 3:45 pm #91613In reply to: Even default theme not working.
@mercime
Participant@pacifist congratulations
@coralatlas – many have been able to get it up and running:
https://buddypress.org/showcase/
https://buddypress.org/community/groups/gallery/forum/September 5, 2010 at 12:58 pm #91608In reply to: Even default theme not working.
pacifist
ParticipantHi there.
I reinstalled it two times. Now its finally working. I dont know how or what the problem was but it seems like it works.Thanks for the help.
-
AuthorSearch Results