Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 22,526 through 22,550 (of 32,562 total)
  • Author
    Search Results
  • #97020
    r-a-y
    Keymaster

    You need to change the_content() to the_excerpt() in your theme’s index.php:
    https://codex.wordpress.org/Function_Reference/the_excerpt

    #97017
    open flips
    Participant

    @modemlooper Thanks for answering, the column height issue seems to happen on all modern browsers and OS. Don’t you have this problem ?

    I use latest Firefox under Ubuntu and a friend tested on IE 7 and 8 under Windows XP.

    #97016
    Hugo Ashmore
    Participant

    Didn’t really mean you couldn’t ask but that certain issues might prove awkward to clear up or fall slightly outside the purvue.

    Still the fact remains that we have little to work with here, that you say the BP adminbar works once you get the correct WP hook in place is good, however there is little that can be said for why the theme presents other problems with the footer.

    There are countless number of badly written themes for WP some of these may work with BP some may not, not all themes, good or bad, will necessarily work with BP or at least will take some work to bring up to the level BP needs.

    Rather than waste time trying it might be better to simply discard those that don’t work and only keep ones that do or at least have fewer issues.

    #97014
    momsnet
    Member

    Thanks – I had pasted in the code I used but it didn’t show up in here…. What I had found on the forum here from someone was using “ so I put that in and that made the buddypress bar show fine but the rest of the footer was gone.

    Sorry if my question is outside the focus of the boards – I’m new to this and I had seen a few other people ask about it and people offering a fix, so I assumed that is was ok to ask. Is this not a place for buddypress working with wordpress multisite questions?

    #97013
    Hugo Ashmore
    Participant

    You’re not really supplying any information of any detail, helping out with custom themes or WP themes is slightly outside this sites focus really and is very difficult regardless without good info.

    I assume you meant to say you had ensured that wp footer hook was in each theme but why adding that should upset the themes original footer would be speculation other than to say that the theme sounds like it maybe breaks with WP conventions on template tags/hooks.

    #97012
    Tammie Lister
    Moderator

    @GUAP: There is an update out for that theme or alternatively you can follow the theme changes from 1.2.5 > 1.2.6 in the codex on this site if you are no longer a member at BuddyDress so don’t get updates. If you are though updates are free to any member it’s up to you which route you go. I can’t though replicate any issues with a vanilla (nothing else) install and updated Daily theme so that could be the problem. Now, whether there is something going on with followers plugin or not.. that could only be seen once the theme is updated really to be fair to your installation.

    #97011
    momsnet
    Member

    Any ideas on this? I searched here and tried the fix of putting in and that got the buddypress bar showing BUT then the regular footer of the theme wouldn’t show

    #97009
    suman
    Participant

    any one guide me
    i m using bp-columns 3 column themes, plz guide me sir, how can i show summery blog in my site.
    thanks

    while i post in blog the full text shows in my buddypress site. , I want to show only title and some text in front pages,

    plz guide me, which code i amend to show blog post in summery in front page.

    Thanks in advance

    suman
    Participant

    i m using bp-columns 3 column themes, plz guide me sir, how can i show summery blog in my site.
    thanks

    while i post in blog the full text shows in my buddypress site. , I want to show only title and some text in front pages,

    plz guide me, which code i amend to show blog post in summery in front page.

    Thanks in advance

    anindyaray
    Member

    yes now I understand a bit
    A lot of thanks to you @hnla :)

    #96935
    A Weathers
    Participant

    ok…i gave this a try…

    example.com – primary site – enabled edublogs theme – expected edublogs theme to work – functioned as expected
    example.com/site1 – activated buddypress default theme on site – worked as expected
    example.com/site2 – activated buddypress child theme on site – worked as expected

    now, i wanted to customize the header on example.com/site2. i logged in with the admin for example.com/site2 but was unable to customize header, so i logged into example.com with superadmin and went to example.com/site2 backend. I updated the header to a customized image, but it doesn’t show up anywhere!

    Hugo Ashmore
    Participant

    thinking about it it does need to be ‘!’ not otherwise the add_action will only run when that function returns true and we don’t want it running if true

    anindyaray
    Member

    :) Thanks

    Hugo Ashmore
    Participant

    ! == ‘Not’

    and isn’t really needed the function is either true or false 1 or 0 on it’s own it answers it’s own question – remove the ‘!’ and test again that it works as expected.

    Cool well done had a feeling it was better to simply not run function if user logged in

    anindyaray
    Member

    Yes atlast … Thanks a lot @hnla and also @rogercoathup :)

    `
    function cancel_header_padding_for_no_adminbar() {

    if(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar == false) ?>

    body {padding-top:0;}
    <?php
    }
    if (!is_user_logged_in())
    add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );
    `

    but One stupid question :
    what is the difference between `!is_user_logged_in()` and `is_user_logged_in()` ?

    #96908
    Andrew Tegenkamp
    Participant

    @r-a-y, thanks for this as it works great! To @Robcwright and others interested, I know it’s an old thread but have found this change will make it only do this for public groups or groups where you are a member and private groups will no longer redirect but keep the default setup. I put both in bp-custom.php and that seems to work great with a variety of child themes. If you want any other modifications for other cases I haven’t tried, just mention me in the reply and I’ll take a look when I can.

    `
    function redirect_to_forum() {
    global $bp;
    $path = clean_url( $_SERVER );
    $path = apply_filters( ‘bp_uri’, $path );
    if ( bp_is_group_home() && strpos( $path, $bp->bp_options_nav ) === false ) {
    if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == ‘public’) {
    bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
    }
    }
    }
    add_action( ‘wp’, ‘redirect_to_forum’ );

    function my_bp_groups_forum_first_tab() {
    global $bp;
    if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == ‘public’) {
    $bp->bp_options_nav = ’50’;
    $bp->bp_options_nav = ‘Activity’;
    }
    }
    add_action(‘wp’, ‘my_bp_groups_forum_first_tab’);
    `

    Hugo Ashmore
    Participant

    You had it almost correct earlier a little more testing and playing around and you would have got there.

    add back in the outer ‘if’ parent to check first whether the user is logged in so that is as I have shown before:
    !is_user_logged_in()

    Then follow with the other ‘if’ as done before but make sure you have the ‘==’

    so the conditional query says if the user is not logged in then run second ‘if’ and check to see id the constant BP_DISABLE_ADMIN_BAR has been set OR $bp->doing_admin_bar == false is set if either of these two conditions are met then run the following style tag

    The !is_user_logged_in() should probably be run on the add_action rather than within the function to prevent a pointless function being parsed but that would need testing.

    You shouldn’t need the

    anindyaray
    Member

    I tried this but it didn’t worked , same thing is happening , Sorry :(
    `
    function cancel_header_padding_for_no_adminbar() {

    if(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar == false && !is_user_logged_in()) ?>

    body {padding-top:0;}
    <?php
    }
    add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );
    `

    anindyaray
    Member

    Thank I’ll try and get back to you

    Mark
    Participant

    Doh! You know, I was using explode() later on to extract the individual elements – don’t know why I didn’t think of using implode() to clean up the array.

    Thanks @hnla – that works now. For reference, here is the full code – basically this uses the data derived from checkboxes in the member’s profile (in this case it’s called “Areas of Interest” with the field ID of 25 – change this to reflect your name/field ID) to hunt down related content tags and display a random list of content relevant to that member (remember to put the code mentioned by @boonebgorges (above) in your theme’s functions.php):

    `

    <?php //for use in the loop, list 5 post titles related to user profile interest areas – checkboxes in extended profile
    $backup = $post; // backup the current object
    //Fetch profile tags from custom field ‘Areas of Interest’ and clean up data
    $profileTagFull = xprofile_get_field_data( ’25’ , bp_loggedin_user_id() );//Fetch the text for the tags
    $profileTagClean = implode( ‘, ‘, $profileTagFull);//Clean up the data

    $profileargs=array(
    ‘tag_slug__in’ => explode( ‘, ‘, $profileTagClean ),
    ‘post__not_in’ => array($post->ID),
    ‘showposts’=>5,
    ‘orderby’ => rand,
    ‘order’ => DESC,
    ‘caller_get_posts’=>1
    );
    ?>

    Content of Interest
    ()

      <?php
      $profile_query = new WP_Query($profileargs);
      if( $profile_query->have_posts() ) {
      while ($profile_query->have_posts()) : $profile_query->the_post(); ?>

    • cat_name . ‘: ‘; ?><a href="” rel=”bookmark” title=””>
    • <?php endwhile;
      } else { ?>

    • No related content
    • <?php }

      $post = $orig_post;
      wp_reset_query();
      ?>

    `
    Thanks to @hnla @r-a-y and @boonebgorges for their help.

    Hugo Ashmore
    Participant

    No you’re over complicating you don’t need to add whatever is already stated i.e padding-top: 25px just remove it if certain conditions are met.

    As Roger pointed out the single ‘=’ needs to become the correct ‘is equal to’ operator ‘==’

    #96867
    Round World Travels
    Participant

    I’m using a theme called buddypress daily that I got from buddydress so yeah, I guess so.

    #96866
    Boone Gorges
    Keymaster

    Are you using a custom theme?

    anindyaray
    Member

    @hnla , @rogercoathup : One thing I donot understand (surrendering that I am a novice) , the snippet suggest that `if user is logged in then the condition is to padd 0px` , but what is need according. to the scenario is `if a user id logged out the padd 0 px , else padd 25 px`
    isn’t it ?

    `
    function cancel_header_padding_for_no_adminbar() {
    if (is_user_logged_in())
    body {padding-top:25;}

    else(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar = false) ?>

    body {padding-top:0;}
    <?php
    }
    add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );
    `

    could it be like this ? I have not tested as I think it has some syntax error

    Hugo Ashmore
    Participant

    There you go that was my bad as I wrote that incorrectly in the original and then completely overlooked it when testing it earlier, time to give up this coding game!

    Good spot Roger

Viewing 25 results - 22,526 through 22,550 (of 32,562 total)
Skip to toolbar