I’m making a new custom theme from the default 1.2 theme and I have run up against a display problem on the groups directory page. I have some odd “bullet points” that seem to be throwing off the design. Everything is getting pushed to the right. You can see the page here:
http://bestofnj.net/groups/
You can see a screenshot with arrows here:
http://bestofnj.net/images/buddypress design errors.jpg
Can anybody tell me what the problem is here?
I am working with WordPress MU 2.9.1.1 and the display error is showing up in IE8 and Firefox 5.0. I tried checking the elements with Firebug and I could not find anything wrong.
Fix:
1. Open up bp-core.php
2. Find Function bp_core_time_since( $older_date, $newer_date = false )
3. Locate $since = $newer_date – $older_date;
4. Change the above to $since = ($newer_date – $older_date) – $off_time;
5. Substitute $off_time (used as a reference in the steps) to the amount of seconds your site is off by. For instance my site was off by 5 hours, so I used 18000 (60 * 60 * 5). My result is $since = ($newer_date – $older_date) – 18000;
6. Upload changed to your website.
7. Fixed
After a bit of looking around I noticed that the Status time had been correct…and hence subtracting time led to the [Use GMT Timezeone] to pop up for the status time.
Here’s the fix for this.
1. Find the if statement if ( 0 > $since )
2. Comment out return __( ‘[Use GMT Timezone]’, ‘buddypress’ );
3. Add $since = $newer_date – $older_date; inside the if (above the line you just commented out)
4. Upload changes
5. Fixed
I just noticed that the only categories which are working right are those 3 which come by default: news, humor, other.
The others I added are not filtering the links, but display all.
Thanks! Im just afraid to go mucking around with it. I have a habit of breaking things when I do that!
Okay, I found it. Looks like a bug in the BP default theme to me, really. This patch fixes it:
--- header-old.php 2010-02-21 02:02:40.000000000 +0000
+++ header.php 2010-02-21 01:54:31.000000000 +0000
@@ -41,7 +41,7 @@
<div id="header">
- <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>
+ <h1 id="logo"><a href="<?php echo site_url() ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bloginfo('name') ?></a></h1>
<ul id="nav">
<li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>
Hello,
I’m watching your threads for a few days now and I wanted to thank you for this awesome plugin.
After installing it, this is what I noticed: when choosing a category, sometimes it works, sometimes it shows all links not only those from the selected category.
Also, the timer for when a link was submitted begins at 6 hours.
It works ok, I didn’t notice anything else.
And I have a question: Is there a page where I can access a specific category, like website.com/links/category/news? … and is it possible to make the category name before the title clickable, pointing to a page where only the links from that category are?
I also wanted to make it my homepage, like someone else here. I can see that if I make the homepage a static one, I can chose for site activity, why not links too?
Thanks again for the plugin. I used the previous version too and this one is obviously nicer
The way that youtube videos are opening is just great.
Hi,
buddypress: 1.2
MU : 2.9.1
I want to load an external php file on click of tabs. Tabs similar to to the activit tabs.
There may lot of ways to do it using extrenal javascripts. But i want to know if this is possible using the javascripts already used by buddpress. I see tht each activity (friends, groups, etc) is loaded dynamically.
Can some one help.
Thanks,
I am adding a subnav item to my groups (to show screenshots that users uploaded).
This is the function that does the code:
if( !defined( 'SCREENSHOT_SLUG' ) )
define( 'SCREENSHOT_SLUG', 'screenshots' );
add_action( 'groups_setup_nav', 'cc_groupslugs_add', 3 );
function el_groups_screenshots_handler() {
locate_template( array( 'groups/single/home.php'), true);
}
function cc_groupslugs_add()
{
global $bp;
if ( $bp->is_single_item ) {
$group_link = $bp->root_domain . '/' . $bp->groups->slug . '/' . $bp->groups->current_group->slug . '/';
bp_core_new_subnav_item( array(
'name' => __( 'Screenshots', 'buddypress' ),
'slug' => 'screenshots',
'parent_url' => $group_link,
'parent_slug' => $bp->groups->slug,
'screen_function' => 'el_groups_screenshots_handler',
'position' => 30,
'user_has_access' => $bp->groups->current_group->user_has_access,
'item_css_id' => 'screenshots'
) );
}
}
in gourps/single/home.php I am doing this to display the correct theme template
<?php elseif ( SCREENSHOT_SLUG == $bp->current_component ) : ?>
<?php locate_template( array( 'groups/single/screenshots.php'), true) ?>
The Navigation is displayed properly but when I click it, it redirects me to my homepage rather than to the correct template (which is not currupt and existent on the server).
Am I doing something wrong here or forgetting something??
the problem is when something related to BP is still active, it will call the engine whatsoever… if people do the uninstalling steps, properly, nothing is broken..
I am trying to using spyker theme on on my wordpress blog, http://thenateums.com
It is having some issue with theme and I think some buddypress file.
Fatal error: Call to undefined function bp_get_nav() in/home/nateums/public_html/wp-content/themes/Spyker/inc/userbar.php on line 3
I think it might be the new version of buddypress but im not sure… any hints/tips?
Thanks, it works !! 
does it means once I activate buddypress I can’t deactivate it?
I’m looking at it. Good idea for spell checking in forms. Sorry I don’t have an answer for you. Give it a bit. Someone will answer.
steps when uninstalling BP:
1- switch theme to WP default
2- deactivate all BP addons
3- deactivate BP
reload your admin page: http://stecemu.weinandy.net/wp-admin/ and go change your details…
I use bp default. I rename the folder and now I got blank page.
is your theme built based on BP?!… if yes, rename its folder.
I did that already..didn’t work
I’d delete the buddypress plugin folder, refresh your site to make sure it works properly and try a different way of uploading the bp plugin folder (if you did it through the Dashboard >> Plugins >> Add new, then try it manually or vice versa).
@stefrusso check this link http://tempsg.com/buddypress you can see I have a text widget with HTML text added. This theme is using the same code as the default BP theme. I’ve only included CSS to format the widget columns.
Hi, I’ve installed WP single 2.9.2 and bp1.2. Just now I deactivate buddypress and suddenly came this error and can’t even go back to site admin to activate the plugins.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘ass_init’ was given in /wp-includes/plugin.php on line 339
What should I do? Help please. Thanks.
It is at http://stecemu.weinandy.net
This problem has been reported:
https://buddypress.org/forums/topic/nothing-appearing-under-my-blogs
I’m afraid there isn’t a definitive solution for this yet.
http://i18n.svn.buddypress.org/de_DE/tags/1.2/
I just discovered the link to the german-language-translation-files.
Who is actually working on THIS (official) german-language-translation for BP 1.2 and whom to contact in order to improve this translation in a collaboratively manner ?
Sadly to say, but there is lack of information at http://www.buddypress.de
@Andy,
is there a chance you install some software-tool which lets us collaboratively work on improving the official-versions of the language-translation-files ?