Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 28,626 through 28,650 (of 31,073 total)
  • Author
    Search Results
  • #47435
    21cdb
    Participant

    Hi 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?

    #47424

    Are 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.

    #47411
    Burt Adsit
    Participant

    Cool. 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.

    #47410
    Greg
    Participant

    Here 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/&#8217; . 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.

    #47407
    r-a-y
    Keymaster

    There 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.

    #47406
    Jeff Sayre
    Participant

    r-a-y

    If you’re all good to go, just set the light up top to green!

    r-a-y
    Keymaster

    Thank you sir!

    Jeff Sayre
    Participant

    Look 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_component

    #47395
    r-a-y
    Keymaster

    Try 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!

    r-a-y
    Keymaster

    Thanks 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.

    #47386
    carpconnect
    Participant

    Cheers, could not see that one for the woods :)

    #47384
    Paul Wong-Gibbs
    Keymaster

    First 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

    #47382
    Jeff Sayre
    Participant

    First 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.

    #47381
    talk2manoj
    Participant

    Pls try by moving album folder to your member theme folder

    Jeff Sayre
    Participant

    r-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.

    #47365

    In reply to: Dashboard ?

    Ezd
    Participant

    I 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.

    #47360
    Sandeep Ramamoorthy
    Participant

    @Pcrain

    When 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

    #47331
    Jeff Sayre
    Participant

    catincoach-

    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.

    #47329
    3125432
    Inactive

    Hey:

    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

    #47300

    In reply to: Alignment in profile

    carpconnect
    Participant

    Hello 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.

    #47295

    In reply to: Alignment in profile

    Jeff Sayre
    Participant

    I 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.

    #47286
    Burt Adsit
    Participant

    Nope. 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.

    #47276
    Paul Wong-Gibbs
    Keymaster

    What 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?

    #47258
    Anointed
    Participant

    well 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?

    #47253
    nyckiddz
    Participant

    hey 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

Viewing 25 results - 28,626 through 28,650 (of 31,073 total)
Skip to toolbar