Search Results for 'custom activity page'
-
Search Results
-
1. Which version of WordPress are you running?
WordPress 3.5.1
2. Did you install WordPress as a directory or subdomain install?
Subdirectory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgrade from a previous version of WordPress? If so, from which version?
No. Clean install.
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes.
6. Which version of BP are you running?
Version 1.7.2
7. Did you upgraded from a previous version of BP? If so, from which version?
No.
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
bbPress 2.3.2
BP Disable Activation .4
BuddyPress Activity Privacy 1.0.4.3
BuddyPress Media 12.15.39. Are you using the standard BuddyPress themes or customized themes?
Default WordPress Twenty Twelve.
10. Have you modified the core files in any way?
No.
11. Do you have any custom functions in bp-custom.php?
No.
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
bbPress 2.3.2
13. Please provide a list of any errors in your serverโs log files.
No errors present.
14. Which company provides your hosting?
HostGator
15. Is your server running Windows, or if Linux; Apache, nginx or something else?
Apache.
PROBLEM:
http://website.com/wp-signup.php automatically redirects to main page and does not open a form to create a new site.
Hi
There is a number next to the friend tab that shows number of friends and other tabs .
I’d like to add some custom styles to them . I use inspect feature in firefox but I couldn’t find the solution.
Topic: Custom Activity Page
Hello! First, what i’m using:
- WP: 3.6 beta3
- BP: 1.7.2
- BBPress: 2.3.2
- Theme: default theme (child)
What i’m trying to do is create a custom template to load activities filtered by terms. So, i taked code from activity-loop.php to create a new “custom.php” file, put it on template root and create a new page using this template.
This is the content of my custom template for pages. Sorry if it’s too long, it’s the same content of activity-loop.php, except on “activity” div:
<?php /** * Template Name: Games */ get_header( 'buddypress' ); ?> <?php do_action( 'bp_before_directory_activity_page' ); ?> <div id="content"> <div class="padder"> <?php do_action( 'bp_before_directory_activity' ); ?> <?php if ( !is_user_logged_in() ) : ?> <h3><?php _e( 'Site Activity', 'buddypress' ); ?></h3> <?php endif; ?> <?php do_action( 'bp_before_directory_activity_content' ); ?> <?php if ( is_user_logged_in() ) : ?> <?php locate_template( array( 'activity/post-form.php'), true ); ?> <?php endif; ?> <?php do_action( 'template_notices' ); ?> <div class="item-list-tabs activity-type-tabs" role="navigation"> <ul> <?php do_action( 'bp_before_activity_type_tab_all' ); ?> <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>" title="<?php _e( 'The public activity for everyone on this site.', 'buddypress' ); ?>"><?php printf( __( 'All Members <span>%s</span>', 'buddypress' ), bp_get_total_member_count() ); ?></a></li> <?php if ( is_user_logged_in() ) : ?> <?php do_action( 'bp_before_activity_type_tab_friends' ); ?> <?php if ( bp_is_active( 'friends' ) ) : ?> <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>" title="<?php _e( 'The activity of my friends only.', 'buddypress' ); ?>"><?php printf( __( 'My Friends <span>%s</span>', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ); ?></a></li> <?php endif; ?> <?php endif; ?> <?php do_action( 'bp_before_activity_type_tab_groups' ); ?> <?php if ( bp_is_active( 'groups' ) ) : ?> <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>" title="<?php _e( 'The activity of groups I am a member of.', 'buddypress' ); ?>"><?php printf( __( 'My Groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> <?php endif; ?> <?php endif; ?> <?php do_action( 'bp_before_activity_type_tab_favorites' ); ?> <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?> <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>" title="<?php _e( "The activity I've marked as a favorite.", 'buddypress' ); ?>"><?php printf( __( 'My Favorites <span>%s</span>', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> <?php endif; ?> <?php do_action( 'bp_before_activity_type_tab_mentions' ); ?> <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>" title="<?php _e( 'Activity that I have been mentioned in.', 'buddypress' ); ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><?php printf( __( '<span>%s new</span>', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></strong><?php endif; ?></a></li> <?php endif; ?> <?php do_action( 'bp_activity_type_tabs' ); ?> </ul> </div><!-- .item-list-tabs --> <div class="item-list-tabs no-ajax" id="subnav" role="navigation"> <ul> <li class="feed"><a href="<?php bp_sitewide_activity_feed_link(); ?>" title="<?php _e( 'RSS Feed', 'buddypress' ); ?>"><?php _e( 'RSS', 'buddypress' ); ?></a></li> <?php do_action( 'bp_activity_syndication_options' ); ?> <li id="activity-filter-select" class="last"> <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label> <select id="activity-filter-by"> <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option> <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option> <?php if ( bp_is_active( 'blogs' ) ) : ?> <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option> <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option> <?php endif; ?> <?php if ( bp_is_active( 'forums' ) ) : ?> <option value="new_forum_topic"><?php _e( 'Forum Topics', 'buddypress' ); ?></option> <option value="new_forum_post"><?php _e( 'Forum Replies', 'buddypress' ); ?></option> <?php endif; ?> <?php if ( bp_is_active( 'groups' ) ) : ?> <option value="created_group"><?php _e( 'New Groups', 'buddypress' ); ?></option> <option value="joined_group"><?php _e( 'Group Memberships', 'buddypress' ); ?></option> <?php endif; ?> <?php if ( bp_is_active( 'friends' ) ) : ?> <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option> <?php endif; ?> <option value="new_member"><?php _e( 'New Members', 'buddypress' ); ?></option> <?php do_action( 'bp_activity_filter_options' ); ?> </select> </li> </ul> </div><!-- .item-list-tabs --> <?php do_action( 'bp_before_directory_activity_list' ); ?> <div class="activity" role="main"> <?php $myslug = the_slug(); if ( bp_has_activities('search_terms='.$myslug.'') ) : do_action( 'bp_before_activity_loop' ); /*if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : */ /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?> <noscript> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> </noscript> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; while ( bp_activities() ) : bp_the_activity(); locate_template( array( 'activity/entry.php' ), true, false ); endwhile; if ( bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; if ( empty( $_POST['page'] ) ) : ?> </ul> <?php endif; else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; do_action( 'bp_after_activity_loop' ); ?> <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?> </form> </div><!-- .activity --> <?php do_action( 'bp_after_directory_activity_list' ); ?> <?php do_action( 'bp_directory_activity_content' ); ?> <?php do_action( 'bp_after_directory_activity_content' ); ?> <?php do_action( 'bp_after_directory_activity' ); ?> </div><!-- .padder --> </div><!-- #content --> <?php do_action( 'bp_after_directory_activity_page' ); ?> <?php get_sidebar( 'buddypress' ); ?> <?php get_footer( 'buddypress' ); ?>My idea is to load different stream for each game, so the page “Chrono Trigger (SNES)” would load activities containing terms like “Chrono Trigger”. I don’t know the best way to do this, so tried to get page slug and use as filter:
$myslug = the_slug(); // using a function to get slug if ( bp_has_activities('search_terms='.$myslug.'') ) : do_action( 'bp_before_activity_loop' ); /*if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : */ /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?> <noscript> <div class="pagination"> <div class="pag-count"><?php bp_activity_pagination_count(); ?></div> <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div> </div> </noscript> <?php if ( empty( $_POST['page'] ) ) : ?> <ul id="activity-stream" class="activity-list item-list"> <?php endif; while ( bp_activities() ) : bp_the_activity(); locate_template( array( 'activity/entry.php' ), true, false ); endwhile; if ( bp_activity_has_more_items() ) : ?> <li class="load-more"> <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a> </li> <?php endif; if ( empty( $_POST['page'] ) ) : ?> </ul> <?php endif; else : ?> <div id="message" class="info"> <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p> </div> <?php endif; do_action( 'bp_after_activity_loop' ); ?> <form action="" name="activity-loop-form" id="activity-loop-form" method="post"> <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?> </form> </div><!-- .activity -->This is the function to get slug:
function the_slug() { $post_data = get_post($post->ID, ARRAY_A); $slug = $post_data['post_name']; return $slug; }It works, but only with pages containing the very same slug (for example, if the slug is “Chrono”, it gets all activities with Chrono, but “chrono-trigger” don’t work). There is a better approach to filter this activity stream, i suppose my method is a mess.
I’m begginer with Buddypress so any help is appreciated.I want to modify the Buddypress core files to add a feature which I need to submit to the trac to be used in future Buddypress releases. This feature lets the user set the the throttling time (in seconds) under Buddypress Settings (wp-admin/admin.php?page=bp-settings), a number which would then be used for preventing flooding on the activity page.
I added the new throttling setting field next to the other fields but when I enter a number, it just doesn’t save it. However, it does save an option under the wp_options table with my option key but with a value of 0.
Here’s what I added so far:
in bp-core-admin.php:
add_settings_field( 'bp-enable-activity-throttling', __( 'Set Activity Throttling Time', 'buddypress' ), 'bp_admin_setting_callback_activity_throttle', 'buddypress', 'bp_activity' ); register_setting( 'buddypress', 'bp-enable-activity-throttling', 'bp_sanitize_activity_throttling' );in bp-core-options.php:
function bp_sanitize_activity_throttling( $default = 0 ) { return (int) apply_filters( 'bp_sanitize_activity_throttling', (int) bp_get_option( 'bp-enable-activity-throttling', $default ) ); }in bp-core-settings.php:
function bp_admin_setting_callback_activity_throttle() { ?> <input id="bp-enable-activity-throttling" name="bp-enable-activity-throttling" type="text" value="<?php bp_form_option( 'bp-enable-activity-throttling', '' ); ?>" /> <?php }At the bottom of the bp-core-settings.php file, there’s a function called bp_core_admin_settings_save which gets all fields from the Settings page and saves them. In this function I debugged what the $_POST array was receiving from the Settings page and my setting was there with its value! So the code should have saved my new setting with its value in the wp_options table.
I got frustrated and tried to debug some more, to no avail.
Does anyone know how to add my setting to the Buddypress core files?
Topic: Individual template pages
hi there,
here’s my question about 1.7.:
is it possible – like in 1.6 was – to use custom individual full-page-templates for activity, a different for members, a different for groups etc.
If im remebering right in 1.6. the index.php files in folders activity, grups, memebrs, etc. were full pages. Now index.php is just content in pages content.
Ok, i can make a page-buddypress.php im templates root, but thts for all lind of template pages i guess.
How can i change that individually like in 1.6?
THX
Matze
This is my first child theme, so have mercy ๐
I don’t know what I am doing wrong but when I copy some files over from bp-default to my child theme folder, the theme stops loading buddypress.css and the template it otherwise uses for buddypress pages.Page that works right:
http://oia.innovationskontorett.se/members/maija-vilkina/activity/Page that does not work right:
http://oia.innovationskontorett.se/members/maija-vilkina/ideas/
or
http://oia.innovationskontorett.se/members/I have copied only the template files I have changed from bp-default to my theme folder and nothing else, and created bp-custom.php for some altered functions.
How do I get the ‘right’ look to work on all pages? It must be something obvious but I can’t figure out what I am doing wrong.
—
WP 3.5.1. BP 1.7.1. Theme built with Roots Boilerplate / Twitter Bootstrap.Topic: Installation problems
Hello, I’ve had a good look in this forum but I don’t see the exact problem I’m having.
I have an existing wordpress site with a customised theme. I have installed Buddypress as a plugin but the installation wizard does not show up on the top of the page and the set-up tabs are limited. Screen shot here http://tinypic.com/r/4iehkw/5
The permalink setting is custom
I thought I’d plough on ahead anyway so I installed Buddypress Template Pack to make it more compatible with the existing theme. It sort of worked. The pages – members, groups, activity – show within the existing template but no buddypress navigation shows so its impossible to use.
http://tinypic.com/r/ajxnpd/5I’ve tried uninstalling everything and reinstalling but the installation wizard doesn’t show leaving the set-up incomplete.
I cant change the template prior to instal because this will mess with the entire existing site. Any help would be appreciated….
Hello All,
I’m having an issue on a custom Buddypress theme. On my activity feed, whenever a tab is clicked it pops open the comment form for every entry on the feed. If I refresh the page it hides them again.
I am using the BP Template Pack plugin with the JS/Ajax left on. If I turn that off they are always there on every entry.
If anyone has any insight I’d appreciate it.
Versions:
WP v3.5.1
BP v1.7
BBP v 2.3.2
Thanks,
Charles