-
smurkas posted on the forum topic Router for root components in the group Creating & Extending: 14 years, 3 months ago
Ok I’ve continued to work on this but I’ve run into abit of a snag. It seems that the standard status code from WP for a screen function is 404 unless a template is loaded. This is fine in most cases but in some cases you might not want to return anything and when it […]
-
smurkas posted on the forum topic Router for root components in the group Creating & Extending: 14 years, 3 months ago
Ok guys I’ve put it up on SVN on Beanstalk. There’s the router here: http://smurkas.svn.beanstalkapp.com/minpt/trunk/buddypress-screen-router and there’s a minimal root component to get you going here: http://smurkas.svn.beanstalkapp.com/minpt/trunk/buddypress-minimal-root-component The router assumes that the root component is registered via the…[Read more]
-
smurkas started the forum topic Router for root components in the group Creating & Extending: 14 years, 3 months ago
Hi all, I recently needed to code some root components for a project of mine, and after figuring out how and where to hook in order to get them registered I came up with the idea of creating a router for them. For those who’ve gone digging you know that Buddypress does it’s own URL […]
-
smurkas joined the group Creating & Extending 14 years, 3 months ago
-
smurkas posted on the forum topic Creating a root component with Skeleton Component in the group How-To and Troubleshooting: 14 years, 3 months ago
Ok so I think I figured this out. I used the Skeleton component to do this and you need to change a couple of things in order for it to work. First of all, the component registers itself too late so bp_core_add_root_component() won’t work. Change line 45 of loader.php to add_action( ‘bp_include’, ‘bp_example_init’ ); This […]
-
smurkas joined the group How-To and Troubleshooting 14 years, 3 months ago
@smurkas
Not recently active