Search Results for 'theme'
-
AuthorSearch Results
-
June 14, 2009 at 11:55 am #47435
In reply to: What is the correct way to alter the admin-bar.css
21cdb
ParticipantHi together,
thanks for the advices. Everything works fine! I now can modify the css of the admin-bar on a per blog basis, because i storec the admin-bar.css file in the template directory of the actual theme (i’ll keep the admin-bar consistent, but now i have the option to do some color adaptions to fit the user themes.)
I have one more question. I’m hiding the admin-bar if a user is not logged in. However i want to show it on the buddypress-home- and -member-theme sites also if a user is not logged in.
Is there a technique to achieve this?
June 14, 2009 at 6:06 am #47424In reply to: None of the Pages work after fresh install
John James Jacoby
KeymasterAre you using a custom theme or the included themes? If custom, then you’re missing the code in functions.php that is needed to route to the BuddyPress specific pages.
Copy the code out of bphome/functions.php and paste it into your themes’ functions.php file, and that should help out quite a bit.
June 14, 2009 at 1:57 am #47411In reply to: BP Avatars (and nothing else!) in bbpress… possible?
Burt Adsit
ParticipantCool. Anyway you get your function into the mix is a ‘reasonable way’ of adding it. Unfortunately bbpress doesn’t have the concept of a functions.php like wp does in it’s themes. The only other alternative you have is a plugin. The plugin makes it available no matter what theme the user has selected. That’s the big difference.
June 14, 2009 at 1:19 am #47410In reply to: BP Avatars (and nothing else!) in bbpress… possible?
Greg
ParticipantHere is a quick & dirty stab at the method Burt suggests above. I have modified “bp_core_get_avatar()” (from “bp-core-avatars.php”) for use bbPress. Like the bp function it uses an uploaded avatar or a gravatar. You need to ensure that there is a “mystery-man.gif” file in the images folder of your theme. Note that I haven’t enabled the fancy automatically generated avatars.
It works for me. Here are the steps:
Create the new function “_get_avatar()”. I put it in “functions.php” in my theme folder and added “<?php require_once( ‘functions.php’ ); ?>” just before the <body> tag in “header.php” to ensure that it was loaded.
You need the following in your “post.php” to call the function:
<?php echo _get_avatar( get_post_author_id() ); ?>Here is the code for “_get_avatar()”:
function _get_avatar( $id ) {
$avatar_file = bb_get_usermeta( get_post_author_id(), ‘bp_core_avatar_v1’ );
$url = BB_PATH . $avatar_file;
if ( strlen( $avatar_file ) ) {
return ‘<img src=”‘ . attribute_escape( $url ) . ‘” alt=”” class=”avatar photo” width=”50″ height=”50″ />’;
} else {
$default_grav = bb_get_active_theme_uri() . ‘images/mystery-man.gif’;
$user_email = bb_get_user_email( $id );
$gravatar = ‘https://secure.gravatar.com/avatar/’ . md5( $user_email ) . ‘?d=’ . $default_grav . ‘&s=50’;
return ‘<img src=”‘ . attribute_escape( $gravatar ) . ‘” alt=”” class=”avatar photo” width=”50″ height=”50″ />’;
}
return;
}
One question I have for the experts… Is this a reasonable way of adding a new function? Or would it be better to create a plugin. I didn’t do the latter because I didn’t need to use any of the hooks.
June 13, 2009 at 10:44 pm #47407In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
r-a-y
KeymasterThere we go!
One addendum for those that may be interested. Remember to call on the global variable $bp (global $bp) before calling on the $bp->$current_component.
June 13, 2009 at 10:38 pm #47406In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
Jeff Sayre
Participantr-a-y
If you’re all good to go, just set the light up top to green!
June 13, 2009 at 6:36 pm #47399In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
r-a-y
KeymasterThank you sir!
June 13, 2009 at 6:32 pm #47398In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
Jeff Sayre
ParticipantLook at bp-core-catchuri.php. You’ll find all sorts of good URL discovery and parsing functions.
You can use this to test for the current component. If you are on the settings page, as an example, this will evaluate to “settings”.
$bp->current_componentJune 13, 2009 at 5:32 pm #47395In reply to: What is the correct way to alter the admin-bar.css
r-a-y
KeymasterTry this…
Paste the following in your “bp-custom.php” file (‘wp-content/plugins/bp-custom.php’). If you don’t have one, make one!
function my_admin_bar_css() {
echo '<link href="LINK TO STYLESHEET" rel="stylesheet" type="text/css" media="screen,projection" />';
}
remove_action('wp_head', 'bp_core_admin_bar_css', 1);
add_action('wp_head', 'my_admin_bar_css', 1);Assuming that your admin bar stylesheet is in your member theme’s directory, you could probably use “<?php bloginfo(‘template_url’); ?>/css/your_admin_bar.css” to determine the theme’s path (I say probably b/c I’m not sure! hehe).
Might want to play around with that… in theory, it should work… *untested*.
[EDIT]
Okay I’ve tested this… and it doesn’t quite work!
The custom CSS gets loaded, but I can’t seem to remove bp_core_admin_bar_css.
Time for a mod to jump in!
June 13, 2009 at 5:09 pm #47390In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
r-a-y
KeymasterThanks Jeff, I’ll take a look at that.
Here’s a follow-up question, is there a PHP function to determine if you’re on a “Settings” page? I could use $_SERVER[‘REQUEST_URI’], but am wondering if there’s already a built-in function that BuddyPress uses.
June 13, 2009 at 4:09 pm #47386In reply to: Copy bp themes and customise settings
carpconnect
ParticipantCheers, could not see that one for the woods
June 13, 2009 at 3:06 pm #47384In reply to: Copy bp themes and customise settings
Paul Wong-Gibbs
KeymasterFirst of all, Member themes MUST be installed to /wp-content/bp-themes/. To select which Member theme your site uses, visit this page on your install: http://example.com/wp-admin/admin.php?page=bp-core.php
June 13, 2009 at 2:45 pm #47382In reply to: bp-photo what a GREAT plugin!
Jeff Sayre
ParticipantFirst of all, you still may have an issue with the bppicture-album plugin being improperly installed. The readme.txt file has an error in its “Theme” section. It states that:
Move the "/wp-content/plugins/bp-album/album/" directory
to "/wp-content/bp-themes/bpmember/"
"album" directory should be at the same level as "/wp-content/bpmember/groups"
and "/wp-content/bpmember/profile" etc...You need to do this instead:
Keep /bp-album/ within the bppicture-album directory.
What you need to relocate is the album directory.
So, you move the "album" directory out of /bppicture-album/ and
place it into /wp-contents/bp-themes/bpmember/.Make sure you have done that. If you have done this properly and are getting this message, then you will have to go through the process of deactivating all the other plugins (except BuddyPress), then reactivating them one at a time until you see the problem occur.
June 13, 2009 at 2:33 pm #47381In reply to: bp-photo what a GREAT plugin!
talk2manoj
ParticipantPls try by moving album folder to your member theme folder
June 13, 2009 at 2:23 pm #47380In reply to: BP Skeleton Member Theme – Missing “Settings” Pages
Jeff Sayre
Participantr-a-y
You are not going crazy!
The reason you cannot find a “Settings” page in the Skeleton Member theme is the same as why you cannot find one in the default bpmember theme (if you look). It is handled via one of the core BuddyPress files. Look at bp-core-settings.php and you’ll find what you need.
June 13, 2009 at 10:31 am #47365In reply to: Dashboard ?
Ezd
ParticipantI Love the Dashboard Andy! Been waiting for something like that which gives a complete overview of the site that i’m involved in and activity.
Maybe it could even be the first page you see (instead of the profile page) when you click your own username… Making it more visible and easy to customize (Maybe widgetize it in future versions).
I hope the Dashboard can be implemented in the next/future version of the member theme as a standard.
June 13, 2009 at 9:47 am #47360In reply to: Privacy options (friends only viewing)
Sandeep Ramamoorthy
ParticipantWhen i placed your code,it shows this error message
Fatal error: Cannot use object of type stdClass as array in /home/username/public_html/sitename/wp-content/bp-themes/bpmember/friends/index.php on line 13
June 12, 2009 at 10:52 pm #47331In reply to: Navigation buttons – Where are they?
Jeff Sayre
Participantcatincoach-
This thread is very outdated. A lot has changed in BuddyPress since this thread last had activity 3 months ago.
If you are simply looking for where you can change the text of the menu buttons “Home”, “Blog”, “Members”, “Groups”, “Blogs”, then it is found in the header.php file of both the home and member themes.
June 12, 2009 at 10:44 pm #47329In reply to: Navigation buttons – Where are they?
3125432
InactiveHey:
I have read and reread this forum post to discern how to find and edit the nav bar names.
I am using WordPress MU 2.7.1
Buddypress 1.0.1
Facebuddy theme
Burt says: “- header.php in both the home and member theme dirs bp_nav_items() > bp-core-templatetags.php function bp_nav_items() ” but when I look in my files in the control panel, I can’t find it anyhwere.
I know this is super easy but I think I am missing a very basic file breadcrumb trail.
wp-content -> themes -> facebuddy-home-theme -> ?
I have looked in file after file for Burt’s mention of bp-core-templatetags and there is no bp-core that I can see anywhere or any kind of templatetag. What am I missing?
Thanks,
Brian
June 12, 2009 at 5:24 pm #47300In reply to: Alignment in profile
carpconnect
ParticipantHello and thanks for reply.
I will create a custom theme but will still have the same issue with layout if copy content of base.css to sitewide.css!
But will start another thread for that issue.
As to the other thread, yes i did change the css but can’t for the life of me see how changing the colour will alter what font is used?
I will mark other as resolved in that i now know why even if it is not to my liking.
June 12, 2009 at 4:36 pm #47295In reply to: Alignment in profile
Jeff Sayre
ParticipantI am glad your issue is resolved! If that is the case, please set the light to green in both this thread and this one.
By the way, this is the particular question I asked in the other thread that you did not answer. I asked:
You also are saying that you did not touch the code or CSS within those two theme directories at all.
From your post above, it appears that you did indeed touch the CSS and that is what caused the problem.
As to your last question:
I take i need to be more selective in what put in sitewide.css is it not possible to just copy base.css and edit that?
Since you are in essence making a custom theme every time you touch a single piece of code or CSS in the default themes, you should follow this approach.
Make a copy of both bphome theme and bpmember theme. Give them new, unique names. Your theme customizations should be done in these copies, not the originals. That way, if you have issues with your custom themes (and we all do when working on customization), you can switch back to the standard BP themes to see how things should work.June 12, 2009 at 12:36 pm #47286Burt Adsit
ParticipantNope. There’s no hidden ‘exclude’ parameter. If you really need this you can:
1) Derive a new class from BP_Blogs_Site_Blogs_Template modifying the constructor to exclude the blogs you want from the list of blogs returned by BP_Blogs_Blog::get_<whatever>()
2) Create a new template tag that modifies the standard version of bp_has_site_blogs() to call your derived template class instead of the standard one.
3) Modify your theme to use the new bp_has_site_blogs() template loop goodie.
Like this code here: http://buddypress.pastebin.com/d12aa57a1
That code is totally untested.
June 12, 2009 at 6:52 am #47276In reply to: Activation link show me errors
Paul Wong-Gibbs
KeymasterWhat about using the default unexited theme, and no plugins other than BuddyPress (move the folders out just to be certain). Is this something you are able to test on the server where you are having problems?
June 12, 2009 at 2:44 am #47258In reply to: buddypress insalled in a subdomain help needed
Anointed
Participantwell i copied the bp home theme to the themes directory and then chose that as my theme.
That seemed to fix all of the problems except one.
Now when I try to upload an avatar for my member acct, it says it uploads but there is no avatar to crop, just the crop tool.
(this was working perfectly prior to my moving buddypress to the subdomain)
is this a known problem?
June 11, 2009 at 9:33 pm #47253In reply to: Stylesheet not loading for Default Member Theme
nyckiddz
Participanthey guys am having the same exact issues..here is what is in my error log..
[Thu Jun 11 16:25:03 2009] [error] [client 97.215.118.204] (13)Permission denied: file permissions deny server access: /home/folder/public_html/wp-content/themes/bphome/style.css, referer: http://site.com/wp-admin/themes.php
[Thu Jun 11 16:25:01 2009] [error] [client 97.215.118.204] SoftException in Application.cpp:252: File “/home/folder/public_html/wp-admin/themes.php” is writeable by group, referer: http://site.com/wp-admin/wpmu-themes.php
[Thu Jun 11 16:24:48 2009] [error] [client 97.215.118.204] (13)Permission denied: file permissions deny server access: /home/folder/public_html/wp-content/themes/bphome/style.css, referer: http://site.com/wp-admin/themes.php
what permissions should i set ? coz i cant even see the thumnail for the theme
-
AuthorSearch Results