Search Results for 'theme'
-
AuthorSearch Results
-
October 30, 2010 at 8:47 pm #97020
r-a-y
KeymasterYou need to change the_content() to the_excerpt() in your theme’s index.php:
https://codex.wordpress.org/Function_Reference/the_excerptOctober 30, 2010 at 7:36 pm #97017In reply to: Default theme with widgetized home page
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.
October 30, 2010 at 7:02 pm #97016In reply to: Not all themes showing buddypress bar
Hugo Ashmore
ParticipantDidn’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.
October 30, 2010 at 6:50 pm #97014In reply to: Not all themes showing buddypress bar
momsnet
MemberThanks – 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?
October 30, 2010 at 5:52 pm #97013In reply to: Not all themes showing buddypress bar
Hugo Ashmore
ParticipantYou’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.
October 30, 2010 at 5:50 pm #97012Tammie 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.
October 30, 2010 at 5:13 pm #97011In reply to: Not all themes showing buddypress bar
momsnet
MemberAny 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
October 30, 2010 at 4:52 pm #97009suman
Participantany one guide me
i m using bp-columns 3 column themes, plz guide me sir, how can i show summery blog in my site.
thankswhile 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
October 30, 2010 at 4:51 pm #97008suman
Participanti m using bp-columns 3 column themes, plz guide me sir, how can i show summery blog in my site.
thankswhile 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
October 29, 2010 at 6:03 pm #96937anindyaray
Memberyes now I understand a bit
A lot of thanks to you @hnlaOctober 29, 2010 at 5:43 pm #96935In reply to: Header image on network site
A Weathers
Participantok…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 expectednow, 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!
October 29, 2010 at 3:48 pm #96927Hugo Ashmore
Participantthinking 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
October 29, 2010 at 3:06 pm #96918anindyaray
MemberThanks
October 29, 2010 at 2:59 pm #96917Hugo 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
October 29, 2010 at 2:35 pm #96915anindyaray
MemberYes 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()` ?October 29, 2010 at 1:19 pm #96908In reply to: Changing Group tab display defaults
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’);
`October 29, 2010 at 1:10 pm #96907Hugo Ashmore
ParticipantYou 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
October 29, 2010 at 12:07 pm #96897anindyaray
MemberI 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’ );
`October 29, 2010 at 12:01 pm #96895anindyaray
MemberThank I’ll try and get back to you
October 29, 2010 at 9:40 am #96883Mark
ParticipantDoh! 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
- cat_name . ‘: ‘; ?><a href="” rel=”bookmark” title=””>
- No related content
$profile_query = new WP_Query($profileargs);
if( $profile_query->have_posts() ) {
while ($profile_query->have_posts()) : $profile_query->the_post(); ?><?php endwhile;
} else { ?><?php }
$post = $orig_post;
wp_reset_query();
?>`
Thanks to @hnla @r-a-y and @boonebgorges for their help.October 29, 2010 at 9:08 am #96879Hugo Ashmore
ParticipantNo 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 ‘==’
October 29, 2010 at 4:05 am #96867Round World Travels
ParticipantI’m using a theme called buddypress daily that I got from buddydress so yeah, I guess so.
October 29, 2010 at 3:49 am #96866Boone Gorges
KeymasterAre you using a custom theme?
October 29, 2010 at 2:19 am #96862anindyaray
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
October 28, 2010 at 9:14 pm #96851Hugo Ashmore
ParticipantThere 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
-
AuthorSearch Results