Search Results for 'custom activity page'
-
AuthorSearch Results
-
February 2, 2011 at 7:01 pm #104448
Paul Wong-Gibbs
KeymasterDoes this occur on the default theme? After you’ve disabled all plugins? Or have you customised your activity loop in some way? (looks like the activity stream item permalink/single page template)
January 18, 2011 at 12:49 am #103196pcwriter
ParticipantHurray!
The code snippet works just fine in functions.php. That’s good news for a theme designer: no worries about a theme overriding a user’s custom configurations in bp-custom.php.
Now I’m off to add “Group Landing Page” as an option in my new theme. It’ll be incorporated with the theme’s “Alternate Header” option too.Then I’ve got to adapt the code to work with member profiles. My initial attempts have failed, but I’ve been known to be persistent at times

For future reference, here’s the code snippet to add to functions.php or, if you have created it, bp-custom.php.
You can see it in action here: http://rspacesandbox.org/ Click any group.`function redirect_groups_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 )
bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
}
add_action( ‘wp’, ‘redirect_groups_to_forum’ );`January 17, 2011 at 10:08 pm #103184thealchemist
MemberWell, I have created the bp-custom.php file, added the code they suggested, uploaded … and nada. So, I am likely missing something obvious. How does the page know to even ‘look’ at the bp-custom.php file? Also, the trick suggested works for groups … how would / could this be altered to work on the profile?
January 15, 2011 at 7:29 pm #102931In reply to: remove activity stream from front page
r-a-y
KeymasterCreate a new WP page with the verbiage you want to add.
You might want to create your new page with a custom page template:
https://codex.wordpress.org/Pages#Creating_Your_Own_Page_TemplatesThen set this new page as your frontpage:
https://codex.wordpress.org/Settings_Reading_SubPanelJanuary 14, 2011 at 9:00 am #102827murasaki
Participantcool, let me know how it goes. im doing something similar, instead of the basic activity page, i want a custom page to show, and i give the user the option to navigate to their activity
January 10, 2011 at 9:47 pm #102507In reply to: Converting a Theme for BP Compatibility
thealchemist
MemberSo the instructions for “automatic conversion” aren’t very thorough cuz I keep discovering pages not listed that need to be manually converted. Registration and activation pages etc.
But here’s a different ? regarding customization. I am trying to get the member profile/login section into the sidebar. http://xtreme.transmutationsciences.com/activity and I have copied some code from another theme and have gotten that section in there. However, as you can see, the subsequent widgets aren’t cooperating and acting as if the login box was right justified.
The original sidebar was:
``
The significant item in the other theme’s code is “
When I copied the new sidebar I originally kept their version of the sidebar hook. But the section did not display. When I substituted “ the section displayed but then I have the alignment problem.
Can anyone diagnose my ineptitude?
Full sidebar code from the theme I an borrowing the code from.
`<a href="”><a class="button logout" href="”>
<?php printf( __( ' You can also create an account.’, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?>
<form name="login-form" id="sidebar-login-form" class="standard-form" action="” method=”post”>
<input type="text" name="log" id="sidebar-user-login" class="input" value="” />
<input type="submit" name="wp-submit" id="sidebar-wp-submit" value="” tabindex=”100″ />
`
January 5, 2011 at 10:00 pm #102017Erlend
ParticipantYeah, also tried making new pages, same thing. But, I’m starting to think this is a caching problem. I tried to log out and see if I could see it too then, but the system actually won’t log me out when browsing the introduction page. Browsing any other child or custom page shows the login prompt, so I am indeed logged out, the website seems to forget that whenever I’m browsing a top-tier page.
We use W3 Total Cache, I’ll ask over there.
December 25, 2010 at 10:49 am #101263In reply to: “My Favorites” Plugin
gulflee
Participantcannot found bp-custom.php and there is a “favorite” when clicked it change to “remove favorite”, link show
http://xxx.com/activity/favorite/3/?_wpnonce=d6f0625717 but it did not save, when page refreshed it change back to “favorite” state.
any help, thanks in advanceDecember 17, 2010 at 5:41 pm #100804Boone Gorges
KeymasterAre you talking about the Home, About, Blog, Community, Extend, and Support tabs on buddypress.org? Those are WP Pages. In BP 1.3, there will be better support for having a setup like this that is totally customizable, but even now bp-default does something almost exactly like this.
The way that individual user navigation (profile, activity, groups, etc) is laid out on this site is just like it is in bp-default.
Or am I missing something?
November 22, 2010 at 5:45 pm #98900In reply to: Disable Activity Stream for Profiles?
Brajesh Singh
ParticipantHi,
The reason it is happening perhaps hide_sitewide is not set to 1 for private activity. Most probably a conflict with some plugin as you already mention above. Can you check the database activity table to confirm that ?Have you put the code
`
define(“BP_DEFAULT_COMPONENT”, “profile”);
`
In wp-content/plugins/bp-custom.php, It will make the profile accessible if put in bp-custom.php. yes,it simply change the default profile component(landing page on profile) from activity to xprofile.November 22, 2010 at 5:45 pm #98899In reply to: Activity Stream on Home Page under a Sticky Post
imjscn
ParticipantI’m not sure which way is better, seems lots of people have done great jobs.
Here’s a tip I took as guiding to start my bp customizing journey : http://wpmu.org/how-to-widgetize-a-page-post-header-or-any-other-template-in-wordpress/After registered the widgets and created the new page template, style the widget area. Create Pages you need to use for bp compoents (activity, groups, members, …) ,choose the new page template.
Use Custom Field Template plug in or other means to write contents and bp loops in the widget areas. Custom Field Template says its php code is experimental, but my blog doesn’t have problem with it.Another way I want to try but not tried yet– copy bp componets pages and add widget in it. Not sure if this can be done or not.
November 22, 2010 at 4:24 am #98851In reply to: Setting Activity as BP home page.
r-a-y
KeymasterCustom permalink structure shouldn’t matter, but have you tried resaving the permalink settings?
Also try disabling any plugins that might interfere with this. Including redirect and caching plugins.As a last resort, you can always create a page template copying exactly what is in /buddypress/bp-themes/bp-default/activity/index.php and setting that as the front page…
November 22, 2010 at 4:19 am #98850In reply to: Setting Activity as BP home page.
eor
Membermy BP version is 1.2.6. I’m also using a custom permalink structure…./%post_id%/%postname%/
Do you think the custom structure may be affecting it? Should I use one of the common settings instead?
Also I’m using a non BP theme that I’ve used the template pack for and converted css etc.
Thanks,
EORNovember 17, 2010 at 5:40 pm #98513Bytewoopy
MemberI tried this method with Buddypress links, I want to make them my front page.
I got the links to show up on a custom page but the formatting is all screwed up and the share button seems to be broken. I think it is not loading the css file for the links or the added javascripts. How would I go about updating it so that it works properly?
This is what my custom template page looked like. I had to copy over the bp-links-default directory over to my-buddypress theme.
`
`Here is the actual page http://www.playbookit.com/frontpage
Anyone know how to fix this? I’ve been at it for a few days.
November 12, 2010 at 7:55 pm #98135LPH2005
ParticipantThe code for the activity loop may be placed in the index.php page. Make sure you add the loop with the commenting enabled.
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
November 4, 2010 at 11:36 pm #97508In reply to: Theme designers: contribute to core
Paul Wong-Gibbs
Keymaster@modemlooper, if I create a custom link item to “example.com/activity”, and then click on that link, it loads the correct page and applies the ‘current-menu-item’ class to the li element. I’m testing this on BP trunk and WP 3.0.1.
If I put a Page into my menu, it gives it the class ‘current_page_item’ as it recognises it is part of the WordPress object hierarchy.
November 3, 2010 at 8:37 pm #97369In reply to: Feature Request : Topics of Groups I joined
r-a-y
KeymasterIt’s basically a page template using a forum topics loop.
Get acquainted with the forum topics loop!
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-forum-topics-loop/Not sure if the “forum_id” can be comma-delimited. If so, you could specify specific groups to pull forum topics from.
—
You could also possibly use the activity stream loop to gather topics of groups you’ve joined as well:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/October 28, 2010 at 4:56 pm #96821paranormalsos
MemberI have my own icons added Like on the page that list blogs it shows the right avatars http://paranormalportal.paranormalsos.com/blogs/
but in the activity stream & the activity widget it shows only the gravatars or my custom icons & not the users who made the blog post (I hope that makes since)
October 26, 2010 at 12:06 am #96497In reply to: Creating a “communitty” home page
r-a-y
KeymasterYou just need to create a new page with a custom page template and assign this new page as the front page:
https://codex.wordpress.org/Creating_a_Static_Front_Page#Creating_a_Static_Front_PageOnce you’ve done this, “Activity” should automatically be added to the nav menu (I think!).
October 24, 2010 at 9:09 pm #96352In reply to: functions.php and bp-custom.php
ovizii
Participantwell, my idea was this:
reading through the forums and the codex I found a couple of settigns that seemingly can be used from wp-config.php BUT I don’t want to clutter it too much.
Alternatively I can use bp-custom.php or make a small plugin and pop it into mu-plugins.here is my collection of lines, please let me know where I can find more (built-into BP as I know plugins also offer several of these). What is recommended for what? I try to use wp-config.php only for WP related stuff, mu-plugins only for stuff that really needs to be running on every page and functions.php for stuff specific for my theme (and in this case the main page)
`/*add user with ID as group admin, alternatively change to mod*/
define( ‘BP_RESTRICTGROUP_AUTOADD_ADMIN_USER_ID’, 1);
/* disable the admin bar*/
/*define( ‘BP_DISABLE_ADMIN_BAR’, false);*//*customize all slugs*/
/*define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );*/
/*define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );*/
/*define( ‘BP_BLOGS_SLUG’, ‘journals’ );*/
/*define( ‘BP_FORUMS_SLUG’, ‘discussions’ );*/
/*define( ‘BP_FRIENDS_SLUG’, ‘peeps’ );*/
/*define( ‘BP_GROUPS_SLUG’, ‘gatherings’ );*/
/*define( ‘BP_MEMBERS_SLUG’, ‘chefs’ );*/
/*define( ‘BP_MESSAGES_SLUG’, ‘messages’ );*/
/*define( ‘BP_REGISTER_SLUG’, ‘register’ );*/
/*define( ‘BP_SEARCH_SLUG’, ‘search’ );*/
/*define( ‘BP_SETTINGS_SLUG’, ‘settings’ );*/
/*define( ‘BP_XPROFILE_SLUG’, ‘info’ );*//*customize more stuff*/
/*Put profiles in the root � http://example.org/username/*/
/*define ( ‘BP_ENABLE_ROOT_PROFILES’, true );*/(btw. since I have decided upon the final theme to use, I guess I will be going via the functions.php route)
/*Change the default tab opened when looking at a user’srofile (default is activity):*/
/*define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );*/
`
Also if you want yo ucan give some more information about order of invocation?October 23, 2010 at 2:25 pm #96209In reply to: Links to ‘/username/’ redirect to home page
Matt Edminster
ParticipantThanks so much for the reply Roger.
I have tried all those, but realized I missed one other possibility: bp-custom. Sure enought, that seems to be the source, though I’m not sure why. Strangely enough, of the various hacks that I have there, the problem seems to be in the standard “define” functions prescribed in the bp codex pages.
`define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );
define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );
define( ‘BP_BLOGS_SLUG’, ‘blogs’ );
define( ‘BP_FORUMS_SLUG’, ‘forums’ );
define( ‘BP_FRIENDS_SLUG’, ‘friends’ );
define( ‘BP_GROUPS_SLUG’, ‘groups’ );
define( ‘BP_MEMBERS_SLUG’, ‘directory’ );
define( ‘BP_MESSAGES_SLUG’, ‘messages’ );
define( ‘BP_REGISTER_SLUG’, ‘register’ );
define( ‘BP_SEARCH_SLUG’, ‘search’ );
define( ‘BP_SETTINGS_SLUG’, ‘settings’ );
define( ‘BP_XPROFILE_SLUG’, ‘profile’ );define(‘BP_DEFAULT_COMPONENT’,’updates’);`
Any idea why one of these would be throwing the system?
October 20, 2010 at 8:11 pm #95756Hugo Ashmore
ParticipantI’m no longer on their pay plan, so they arent digging in deep for me.
I guess thats why I was hoping to get it resolved on here.
Er well while we’re willing to help there’s a limit to free support, but it’s not so much that that’s the issue it’s simply that we have exhausted what we can probably do without getting down and dirty with the actual site and files. You have an issue that shouldn’t be happening IF you have taken everything back to a clean install and default theme that is. It’s perplexing and I certainly don’t know what to suggest other to still think there’s some customisation or plugin at work causing issues – might not be a bp plugin!
As for asking whether there are files you can replace that is not a question that ought to be asked we have said and I think you have acknowledged that you must be testing with a clean install, core files should never have been modified if your child theme files were then that would be caught by using the default theme to test with – that theme as well as the core files should never be modified. If these conditions are met there is something very screwy going on and you will need to pay a developer to look the site over.
October 19, 2010 at 12:28 pm #95581Hugo Ashmore
ParticipantConsidering that bp-custom.php doesn’t exist unless the developer creates it then if it is found that is likely to be the culpret.
As Roger says though this problem has to be the result of some customisation or plugin somewhere BP 1.2.5.2 onwards doesn’t show this issue in a vanilla install.
October 19, 2010 at 7:33 am #95552Roger Coathup
Participantit’s almost certainly a problem with your setup, and nothing to do with the core BuddyPress code.
As I suggested, check your bp-custom.php file first of all – it goes in the /plugins folder – did your developer put any functions in there that modify the behaviour of your site?
p.s. are you sure you are using vanilla BuddyPress – you (or developer) haven’t modified any of the core files?
October 17, 2010 at 10:48 pm #95418Roger Coathup
ParticipantTake a look at this page for details on writing your own custom activity loop – paying particular attention to the scope and filter options: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
-
AuthorSearch Results