Forum Replies Created
-
In reply to: How to add reply Number in topic.php
Try:
`function my_not_first_post() {
global $topic_template;$current_page = $topic_template->pag_page – 1;
$post_position = $current_page * $topic_template->pag_num + $topic_template->current_post;
if ( 0 != $post_position ) {
// do your business here… eg.
echo ‘Re: ‘;
echo $post_position;
}}`
In reply to: How to add reply Number in topic.phpIt’s slightly different, so I’ll allow it
In reply to: How to display the Group’s recent activityUse the activity loop:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/Set parameters to:
object – groups
primary_id – $group_id (you need to grab the group id and put it in)
action – activity_update
max – 1 (or how many updates you want to return)In reply to: Possible security hole [Solved]Disable bbPress registration on your external install:
https://bbpress.org/forums/topic/howto-disable-registrationIn reply to: How to add reply Number in topic.php`global $topic_template;
echo $topic_template->current_post;`
In reply to: No filters to BP Blog Class?You can filter the blogs using “bp_blogs_get_blogs” located in bp-blogs.php.
You’d then have to write your own blog fetch routine (yeah I know a pain!).If you’re not happy with this, post an enhancement ticket on BP Trac:
https://trac.buddypress.org/newticketLogin with the same credentials you use here on bp.org.
In reply to: Buddypress.org [PLEASE FIX]If you want to show your mug on buddypress.org, upload an avatar to Gravatar.com using the same email address you used to register for buddypress.org.
In reply to: How to add reply Number in topic.phpTry the $topic_template global variable. Particularly $topic_template->current_post.
In reply to: The Forum Topic’s Second Post’s Position@bigjimmysisco – The code has been updated so the text shows on subsequent pages.
In reply to: How to add reply Number in topic.phpI’ve amended the code on the other forum thread.
Please post subsequent replies on that thread and not this one to prevent forking.
Thanks!
In reply to: How to add reply Number in topic.phpThis might give you some hints:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/the-forum-topics-second-posts-position/Various people have experienced problems with Yahoo Hosting:
https://buddypress.org/community/groups/installing-buddypress/forum/topic/404-errors-using-yahoo-to-host/#post-16797
https://buddypress.org/community/groups/installing-buddypress/forum/topic/404-error-on-buddypress-links/
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/can-not-view-or-edit-member-profile-redirected-to-the-members-page/Duplicate of the following:
https://buddypress.org/community/groups/creating-extending/forum/topic/private-messaging-profile-view-add-friend-not-working/Closing thread.
In reply to: Recent Post plugin@rogerwhitson – In response to this, you add the bp_core_fetch_avatar() function in your recent post loop.
It would look something like this:
` $user_id ) ); ?>`
I’m guessing that the recent posts loop is a widget; you’d have to add the code above into the widget’s code somewhere.
You would also have to pass the $user_id properly in the loop.
In reply to: Root Groups ProfilesPaul already mentioned this. It’s possible, but requires some workarounds.
You’d need to unhook how BuddyPress catches URI requests and route them to groups.
The comments below are for people who know their way around WordPress:
– The catch URI function in BP is the bp_core_set_uri_globals() function located in /bp-core/bp-core-catchuri.php.
– You can unhook this from the “bp_loaded” action. Then write your own function to catch URI requests. Would be good to duplicate the function and look at the BP_ENABLE_ROOT_PROFILES section of the code to modify it to read groups.Hope that gives you some pointers!
In reply to: [Resolved] How to disable activity commentingYou could also create a blank php file for /activity/post-form.php in your child theme.
In reply to: Zebra styling Profile Page@ultimateuser – You only need to install the second patch, not the first.
In reply to: Zebra styling Profile PageThis is a bug.
Check out this ticket for a proposed fix:
https://trac.buddypress.org/ticket/3074In reply to: Searching the Codex is brokenRe: bbPress roles read this:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/accounts-with-blocked-or-inactive-roles-are-still-able-to-be-accessed/I would not recommend using any of the bbPress roles at the moment.
These options are set as constants.
Check out the following defines under “Avatar specific settings can be changed:“
https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/In reply to: Globalizing everything? I think?You can also use a filtered activity loop for blog posts:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/Check out the “action” parameter.
In reply to: How can I easily post images in the activity stream?Yeah, I’m thinking about adding support for it.
In reply to: Buddpyress not finding users posts/commentsBuddyPress doesn’t look for previous blog post data, only when you activate BuddyPress and on.
Boone Gorges has a plugin that does import older blog post data:
https://buddypress.org/community/groups/bp-import-blog-activity/Check it out.
Child themes usually don’t include page.php; they usually inherit it from the parent theme, which in this case is the bp-default theme (/buddypress/bp-themes/bp-default/).
However, you can easily make such a template yourself.
Just create a page.php in your child theme and customize!
You can only use bp_get_activity_id() / bp_activity_id() during the activity loop.
Glad you figured out how to grab the activity ID with the $bp global!