Search Results for 'theme'
-
AuthorSearch Results
-
December 9, 2010 at 12:29 am #100127
In reply to: icons next to navigation?
@mercime
Participant– Copy over the header.php from bp-default theme to your child theme.
– Open header.php and add class to the li’s of default BP components starting from line 47 on header.php<li class="icon-home"> <li class="icon-activity"> <li class="icon-members"> <li class="icon-groups"> <li class="icon-forums">You would have to ask plugin authors of “Links” and “Achievements” on how to generate addition class for styling hook.
– after you’re done, save and upload to your child theme folder in server
– in style.css add background image to li.icon-members, li.icon–groups, etc.December 8, 2010 at 8:50 pm #100118In reply to: PHP help links in bp_core_add_message
r-a-y
Keymaster@ewebber – Just checked. Yeah the message gets escaped, so you can’t add HTML by default.
If you want to add HTML, you’ll have to remove how BP renders the message, then you’ll have to write your own custom message function.
Untested, but this should work in your theme’s functions.php:
`
remove_action( ‘wp’, ‘bp_core_setup_message’, 2 );function my_bp_core_setup_message() {
global $bp;if ( empty( $bp->template_message ) )
$bp->template_message = $_COOKIE;if ( empty( $bp->template_message_type ) )
$bp->template_message_type = $_COOKIE;add_action( ‘template_notices’, ‘my_bp_core_render_message’ );
@setcookie( ‘bp-message’, false, time() – 1000, COOKIEPATH );
@setcookie( ‘bp-message-type’, false, time() – 1000, COOKIEPATH );
}
add_action( ‘wp’, ‘my_bp_core_setup_message’, 2 );function my_bp_core_render_message() {
global $bp;if ( $bp->template_message ) {
$type = ( ‘success’ == $bp->template_message_type ) ? ‘updated’ : ‘error’;
?>
<div id="message" class="”>template_message; ?>
<?php
do_action( ‘bp_core_render_message’ );
}
}`December 8, 2010 at 8:31 pm #100117r-a-y
KeymasterYou can apply a filter to ‘bp_get_the_profile_field_datebox’ to add extra years:
`apply_filters( ‘bp_get_the_profile_field_datebox’, $html, $day, $month, $year, $default_select );`
Find the bp_get_the_profile_field_options() function in /buddypress/bp-xprofile/bp-xprofile-templatetags.php where this filter is defined, so you’ll have a better idea of how to override it.
Some sample code that you can add to your theme’s functions.php:
`function my_year_field ($html, $day, $month, $year, $default_select ) {
// your code to override the year field
}
add_filter( ‘bp_get_the_profile_field_datebox’, ‘my_year_field’, 10, 5 );
`December 8, 2010 at 8:27 pm #100116In reply to: Too late to create a child theme?
Chad
Participanttechguy, of course why didn’t I think of that…quick and easy solution! and r-a-y, the codex looks extremely helpful. Thanks guys!
December 8, 2010 at 8:16 pm #100114In reply to: Too late to create a child theme?
r-a-y
KeymasterRemember the codex is your friend!
https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/
https://codex.buddypress.org/theme-development/December 8, 2010 at 7:53 pm #100112In reply to: Too late to create a child theme?
techguy
ParticipantNot too late. Just download the BP plugin to your computer so you can get the default theme. Create your child theme and upload that and enable it. Then, upload the default BP theme back to its original location.
Warning: Backup first in case something goes wrong:-)
December 8, 2010 at 6:00 pm #100103In reply to: Problem With Title Tags
techguy
ParticipantCheck with the Theme author. Sounds like a theme specific issue.
If they don’t respond try the SeoPress plugin and you should be able to set the titles the way you want.
December 8, 2010 at 5:20 pm #100101In reply to: Getting Rid of Not Found Searchbar
jonishere55
MemberI’m Using the custom community theme.
December 8, 2010 at 12:45 pm #100093In reply to: Link to users blog.
Bowe
ParticipantI think placing the following code at the bottom of functions.php of your child theme should do the trick:
`
/* Creates Blog navigation for Accordeon Menu */
function my_blog_menu(){
global $bp;
if ( !is_user_logged_in() || !function_exists(‘bp_blogs_install’) )
return false;
//two lines from bp_adminbar_blogs_menu() in bp-core-adminbar.phpif ( !$blogs = wp_cache_get( ‘bp_blogs_of_user_’ . $bp->loggedin_user->id . ‘_inc_hidden’, ‘bp’ ) ) {
$blogs = bp_blogs_get_blogs_for_user( $bp->loggedin_user->id, true );
wp_cache_set( ‘bp_blogs_of_user_’ . $bp->loggedin_user->id . ‘_inc_hidden’, $blogs, ‘bp’ );
}if ( is_array( $blogs ) && (int)$blogs ) {
$blog=array_pop($blogs);//the first blog
?>
<a href="siteurl; ?>”>`
After you’ve put this in your functions.php add the following to sidebar.php to call the function:“`
Thanks to @sbrajesh for this snippet
December 8, 2010 at 10:21 am #100088In reply to: Citizen Kane Theme white space
modemlooper
ModeratorI’ve fixed this and will upload to WP repo when BP gets updated.
December 8, 2010 at 8:28 am #100078In reply to: Citizen Kane Theme white space
Ekine
ParticipantI also use firebug a lot but I can’t seem to find the corresponding css style.
Edit: Okay, I have found it using Chrome developer tools. It is this line:
“.subcontentpost { margin-bottom: 15px;}”December 8, 2010 at 8:06 am #100076@mercime
ParticipantBP Codex is your friend. Disable the custom header functionality on the default BuddyPress theme … add the following to your wp-config.php file:
`define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );`December 8, 2010 at 3:53 am #100066anindyaray
Memberthanks @mercime
actually I was using this .
“
and it was creating the problem , now after I removed this line , its all ok ….but the other problem I mentioned about unable to change the default-header.jpg image from the default.css #header , it still persist …
can you please show me some light ?
December 8, 2010 at 1:04 am #100053In reply to: Citizen Kane Theme white space
stoi2m1
ParticipantYour best bet is to modify the css for the theme. I use Fifefox with the plugin Firebug. This allows you to highlight different sections of the site and see its styling and modify till you get things right and then apply that to your actual code.
Your problem is not buddypress related and is better suited in a html/css forum.
December 7, 2010 at 9:25 pm #100038In reply to: How to add a login function at the top of the page
@mercime
ParticipantThe code for the BP login form can be found from line 40 to line 52 here. Adjust divs and format to taste.
December 7, 2010 at 8:03 pm #100027In reply to: Friend Requests and Sending Messages Not Working
Daniella
MemberAnother problem is in the email for pending requests it says,
“To view all of your pending friendship requests: http://cornhill.org/cornhillbeta/members/ellaj/friends/requests/” but that link redirects to the home page.
A lot of blood, sweat and tears went into this site and I am leery of deactivating that theme. Will it be ok?December 7, 2010 at 7:47 pm #100022In reply to: Friend Requests and Sending Messages Not Working
Boone Gorges
KeymasterTry switching to the BuddyPress Default theme for testing. Try sending some friend requests. If it works, then the theme is the problem, and you’ll have to get in touch with WPMUDev.
If it still doesn’t work, please provide some more info about your setup. Are you using any other plugins?
December 7, 2010 at 7:00 pm #100018In reply to: Problems with functionality on WPMU
planet-narcolepsy
MemberDouble-checked: I already had permalinks set to yr/mo/day/name; changed theme to bp-default, and all components are enabled. No change, still says page not found when attempting to go to group or forum pages from main page.
December 7, 2010 at 6:54 pm #100017In reply to: Problems with functionality on WPMU
@mercime
Participant– change permalinks in settings to something other than default – https://codex.buddypress.org/getting-started/before-installing/#wp-configuration
– then change theme to bp-default theme
– configure BP Components – https://codex.buddypress.org/getting-started/configure-buddypress-components/December 7, 2010 at 6:49 pm #100015@mercime
Participant@AnindyaRay I see that you’ve found a header parallax tutorial. The thing is, since you’re on localhost, it’s not as easy to ID the exact corrections which would give you a fix for what’s there in the image you uploaded. That being said, my stab in the dark is adding the following style to your child theme’s stylesheet
`body {
max-width: change to 960px;
}`
which will override the parent theme’s max-width of 1250pxIf that doesn’t work, install the Firefox add http://getfirebug.com/ to find styling fix
December 7, 2010 at 5:36 pm #100012In reply to: Getting Buddypress Functions in to Custom Theme
luvs
Member@hnla, the files are already there, and the code is already there.
AAARRRRG.

@mercime, thanks, but I like the real arras theme

P.S, I have another problem lurking in the shadows….. I cannot ban members from groups. (kick and ban) “There was an error when banning the user”
If anything could go wrong, it will!
December 7, 2010 at 5:15 pm #100010In reply to: Getting Buddypress Functions in to Custom Theme
@mercime
Participant@luvs123 Not sure where you are in getting Arras theme compatible with BuddyPress. But you might want to look at this Arras Child theme with BuddyPress templates installed and configured – http://durkkooistra.com/brownbuddy/
You might want to style the fonts smaller in the sidebar, but that’s not a deal-breaker
Good luck.December 7, 2010 at 4:33 pm #100004In reply to: Getting Buddypress Functions in to Custom Theme
Hugo Ashmore
ParticipantThe javascript main file ‘global.js and also the ajax file are both included and enqueued from the main functions file in bp-default so I don’t really know why it isn’t working for you other than your child theme isn’t correctly referencing bp-default and that might be the fault of the custom theme?
you could try adding:
`
// Load the AJAX functions for the theme
require_once( TEMPLATEPATH . ‘/_inc/ajax.php’ );// Load the javascript for the theme
wp_enqueue_script( ‘dtheme-ajax-js’, get_template_directory_uri() . ‘/_inc/global.js’, array( ‘jquery’ ) );
`
to your functions file in child theme and copying over the two files into ‘_inc’ folder of child theme and see if that works.December 7, 2010 at 2:37 pm #100000In reply to: Getting Buddypress Functions in to Custom Theme
December 7, 2010 at 10:14 am #99986aendrew
MemberHi Roger! Thanks for the response.
I’m running the same version of WP and BP on both servers; field IDs are the same. I cannot replicate the issue on the testing server; I’m presently thinking it might be a PHP version issue.
I thought at one point it might be related to https://trac.buddypress.org/ticket/2171, but moving the custom profile field code to after the functions mentioned doesn’t do anything either…
Something else I forgot to mention — the “add friend” button now appears twice. Also, I don’t think it’s an issue with my theme — I tried switching to the BP default theme and adding a profile field during the members-loop and had the same issue.
-
AuthorSearch Results