Forum Replies Created
-
double bump
awesome man, that worked! thanks so much for all your help.
i removed it by adding `remove_action( ‘wp’, ‘bp_show_home_blog’, 2 );’ in the functions.php page.
is there any way to avoid a core hack? i tried creating a template for /blog and putting the remove_action in it under a function, but it didn’t seem to work that way.
ok, I did that and it takes me right back where I started. when I click on the \”blog\” link, it just shows the \”static\” or root page as the only post available instead of showing all my posts.
it’s almost like there is a bug between MU and BP on the dash->settings->reading->posts page setting. doesn’t matter what page i select, it won’t display the posts.
can you test that on your setup?
You can also put code in between backtick ( ` ) characters.
or use http://pastebin.com for free
I was just thinking, is that a buddpress checkbox or a WMPU checkbox? Might need to move this to the MU forums…
if anyone has a thought, i would appreciate it! this is my LAST major issue before I convert production! (that I know of, hehe)
great addition Burt, didn’t even think about that. it works great!
Jotem = Genius!
That worked, thanks! I hate core hacks, but looks like it wasn’t going to work any other way.
bump
I just checked and mine has “cancel friendship” for those that are my friends.
bump
you are close, I want this:
domain.com (static page)
domain.com/blog (list all my blog posts, index.php)
domain.com/home (buddypress home page, home.php)
i have everything working, except the /blog link.
with that being said, what code do I need in my index.php in order to pull the “normal home page” blogs posts? right now it looks at the WP radio button and just pulls the “static” page, which ends up being a link back to domain.com. i want domain.com/blog to list all my posts. i tried the normal:
<?php while (have_posts()) : the_post(); ?>, but I assume that looks at the WP static flag that I set, which will no longer pull the posts. how do I get around this?bump
yeah, I am on v1.2 of the component, i was just showing you what I thought was left out when we went to v1.2 from v1.1.
andy, you dirty dog. so it looks like the icon for a new component is no longer supported by the skeleton component v1.2?
hmmm, so how in the devil do I get this to work properly? it looks really odd on my site when all of the main components have an icon on the member theme, and mine doesn\’t.
I made all the changes you suggested, here is the copy of my code. Let me know if I made any mistakes.
http://pastebin.com/m57a2fc51 (v1.2 of my component file, bp-mystuff-cssjs.php)
http://pastebin.com/m69816adc (in my v1.2 file, bp-mystuff.php)
my plugin is now loaded into wp-content/plugins/bp-mystuff
i’m still not able to get an icon to show up.
I don’t know what broke it from v1.1 to v1.2, I’m just making my best guess. That is why I was asking if you had a working v1.2 w/ images, then I could just download a copy and modify for my component. Like a version 1.2b since 1.2 has a bug in it.
here is the full code from v1.1 that I am guessing is the issue:
http://pastebin.com/mee09d07 (bp-example-cssjs.php)
thanks for all your assistance and I hope this helps!
Jeff, could you get this working in v1.2 and then I can modify my component accordingly?
Nada. Has anyone gotten this to successfully work with the skeleton component on their server?
this didn’t work either. I have this in the bp-example.php:
$bp->example->image_base = WP_PLUGIN_URL . '/bp-example/images';is that what you are talking about?
that didn’t seem to work.
Andrea_r’s solution worked perfectly for me. Now that my component is converted to v1.2, everything major is working good enough for me to convert my production site. hopefully this weekend!
yeah, it was in v1.1 for sure. i used it for my first component. i found a reference in /wp-content/plugins/buddypress/bp-example/bp-example-cssjs.php in v1.1. I tried adding this back myself and it didn’t work.
/**
* bp_example_add_activity_bullets_css()
*
* This function will allow your component to dynamically add CSS to themes so that you can
* set the activity feed icon to use for your component.
*/
function bp_example_add_activity_bullets_css() {
?>
li a#my-example, li a#user-example {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 88% 50% no-repeat;
}
li.example {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 0 8% no-repeat;
}
table#bp-example-notification-settings th.icon {
background: url(<?php echo site_url( MUPLUGINDIR . \'/bp-example/images/heart_bullet.png\' ) ?>) 50% 50% no-repeat;
}
<?php
}
add_action( \'bp_custom_member_styles\', \'bp_example_add_activity_bullets_css\' );
add_action( \'bp_custom_home_styles\', \'bp_example_add_activity_bullets_css\' );
?>Jeff, did the code for the icon, heart_bullet.png, get stripped out? I can’t seem to find it.
i gave up and did it my own way
i basically looked at the URL and checked to see if it matched, if so, then use the selected class, if not, then a dummy class. use if you like:<?php
global $current_user;
$username = $current_user->user_login;
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "
/";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"]."
".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$currentURL = curPageURL();
if ( $currentURL == "http://domain.net/members/$username/mystuff/stuff-home" ) {
$dynamicClass = 'selected';
} else {
$dynamicClass = 'NOTselected';
}
?>
<li class="<?php echo $dynamicClass; ?>"><a href="<?php echo 'http://domain.net/members/'.$username.'/mystuff/stuff-home' ?>" title="<?php _e( 'My Stuff', 'buddypress' ) ?>"><?php _e( 'My Stuff', 'buddypress' ) ?></a></li>Yeah Jeff, I understand. I\’m trying to figure out why my component is showing up on the home page but not on the same exact theme, but under a users sub-domain. I guess the only thing I can do is convert it to v1.2.
Andrea_r, this works really well to start off with. Two things I have noticed off the bat. #1) my custom component doesn\’t show up under this theme for some reason. I am on skeleton component v1.1 and not v1.2. Could that be the cause? #2) The links at the top (Blog, Members, Groups, Blogs) don\’t work properly. They are all formatted as username.domain.com/members instead of domain.com/members etc…
For #2, is my beta site messed up? Is it supposed to rewrite those to the proper URL or is that behaving normally? If that is the case, I will need to redo those links, correct?