Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 576 through 600 (of 1,252 total)
  • Author
    Search Results
  • neo-tronic
    Participant

    I should have updated this thread ages ago. Yes, I have long had custom post types showing up in my activity stream and it is pretty rock solid.

    I use this snippet (which I found someplace but don’t know where) and add it to bp-custom.php, which is a file you create in your plugins folder.

    http://pastebin.com/SEc32sPf

    The snippet is currently written for MarketPress products, however, you can use it to support any custom post type. Edit the four things below to modify for your custom post type.

    – Edit the function name to whatever you want, it just needs to be unique,
    – Line 19 to be the the custom post type you want to use;
    – Line 28 to reflect the activity record text you want,
    – Line 62 to reflect the name of the function you created for your CPT

    I’m currently using about 7 different edits of it to support that many different CPTs in the activity stream and it works great. Yes, it works in BP 1.7

    I’ve added this to my bp-custom.php file and get an error on the following Sektion. Can anyone help please? ( @prometheus-fire ? )

    			bp_blogs_record_activity( array(
    				'user_id' => (int)$post->post_author,
    				'action' => apply_filters( 'bp_blogs_activity_new_post_action', $activity_action, &$post, $post_permalink ),
    				'content' => apply_filters( 'bp_blogs_activity_new_post_content', $activity_content, &$post, $post_permalink ),
    				'primary_link' => apply_filters( 'bp_blogs_activity_new_post_primary_link', $post_permalink, $post_id ),
    				'type' => 'new_blog_post',
    				'item_id' => $blog_id,
    				'secondary_item_id' => $post_id,
    				'recorded_time' => $post->post_modified_gmt

    Here the error message: Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /homepages/39/d415915588/htdocs/wp-content/plugins/bp-custom.php on line 35

    #170055
    artabria
    Participant

    just updated to BP1.8.1 (WP3.6) ando not working on chrome browser

    an <body class=”customize-support” style> line appears in <head> of my template when shows pages: activity, profile…

    it works fine on IE, Firefox and Safari (PC & Mac)… only fails in chrome browsers and only on pages with buddypress content…

    Siddharth Pereira
    Participant

    OK. So i found a partial solution.

    I tried adding the below pasted snippet to my bp-custom.php file inside my plugin folder and it worked for the activity page. I dont want to sound like a complete noob but can someone tell me how do i replicate this for the members and group page?

    I tried variations of the code to support _groups_component and _members_component but that didnt work.

    /* Prevent logged out users from accessing bp activity page */
    function nonreg_visitor_redirect() {
    global $bp;
    if ( bp_is_activity_component() ) {
    if(!is_user_logged_in()) { //just a visitor and not logged in
    wp_redirect( get_option(‘siteurl’) . ‘/wp-login.php’ );
    }
    }
    }
    add_filter(‘get_header’,’nonreg_visitor_redirect’,1);

    psound
    Participant

    I am having issues seeing Activity and Members after upgrade to 1.8.1 (from 1.6).

    When looking at http://spiritualnotreligious.net/activity/ I see, “Sorry, there was no activity found. Please try a different filter.” This is with filter set to “Everything”.

    When looking at http://spiritualnotreligious.net/members I see error “Sorry, no members were found.” (We have more than 1000 members).

    I can see all users at /wp-admin/users.php

    /wp-admin/admin.php?page=bp-groups says “No Groups Found” with filter of “All” even though it also notes on the tab that there are (5) Public groups.

    /wp-admin/admin.php?page=bp-activity says “No activities found.” even though the navigation section on same page states 5,344 items (page 1 of 268).

    Help please!

    1. Which version of WordPress are you running?- 3.6

    2. Did you install WordPress as a directory or subdomain install? directory

    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? Yes, 3.4

    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? 1.8.1

    7. Did you upgraded from a previous version of BP? If so, from which version? 1.6

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? BackUpWordPress, PHP Execution, s2Member® Framework, All in one Favicon (I have seen same issue with all disabled)

    9. Are you using the standard BuddyPress themes or customized themes? BuddyBoss, but have seen same issue with BuddyPress Default

    10. Have you modified the core files in any way? No. I even attempted removing the buddypress directory and uploading fresh.

    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? No bbPress.

    13. Please provide a list of any errors in your server’s log files.

    14. Which company provides your hosting? Dreamhost

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache (I believe) – Dreamhost VPS

    #169445
    Anonymous User 7600456
    Inactive

    1. Which version of WordPress are you running? – 3.6 (but the problem was there before upgrading from 3.5.2)

    2. Did you install WordPress as a directory or subdomain install? – N/A

    3. If a directory install, is it in root or in a subdirectory? – N/A

    4. Did you upgrade from a previous version of WordPress? If so, from which version? – 3.5.2

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. – N/A

    6. Which version of BP are you running? – 1.8.1

    7. Did you upgraded from a previous version of BP? If so, from which version? – 1.8

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? – Many but I have tried disabling them all except Buddypress and the problem is still there.

    9. Are you using the standard BuddyPress themes or customized themes? – Customised theme but problem is persistent even with Twenty Twelve theme.

    10. Have you modified the core files in any way? – No

    11. Do you have any custom functions in bp-custom.php?

    <?php
    // hacks and mods will go here
    
    function activity_publish_custom_post_types($cpts) {
       $cpts[] = 'page';
       $cpts[] = 'attachment';
       return $cpts;
    }
    
    add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_custom_post_types' );
    add_filter ( 'bp_blogs_record_comment_post_types', 'activity_publish_custom_post_types' );
    
    add_filter( ‘bp_get_total_member_count’, ‘bp_core_get_total_member_count’ );
    
    ?>

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? – 2.3.2

    13. Please provide a list of any errors in your server’s log files.

    
    
    text/x-generic error_log 
    ASCII English text, with very long lines
    [31-Jul-2013 23:00:48 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE meta_key = 'entry_id' AND meta_value = '211'' at line 1 for query SELECT site_id FROM  WHERE meta_key = 'entry_id' AND meta_value = '211' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array, call_user_func_array, GFPMoreStripe::parse_request, GFPMoreStripe::cancel_subscription, do_action('gform_subscription_canceled'), call_user_func_array, GFPMoreStripe::downgrade_stripe_user, GFUserData::get_site_by_entry_id
    [01-Aug-2013 04:22:39 UTC] wpMandrill Error: Error : 
    [01-Aug-2013 04:22:39 UTC] 2013-08-01 04:22:39 wpMandrill::sendEmail: Exception Caught => Invalid API Key
    
    [01-Aug-2013 04:22:39 UTC] blah@blah.com ([blah blah] Password Reset)
    
    [01-Aug-2013 16:08:26 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE meta_key = 'entry_id' AND meta_value = '217'' at line 1 for query SELECT site_id FROM  WHERE meta_key = 'entry_id' AND meta_value = '217' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array, call_user_func_array, GFPMoreStripe::parse_request, GFPMoreStripe::cancel_subscription, do_action('gform_subscription_canceled'), call_user_func_array, GFPMoreStripe::downgrade_stripe_user, GFUserData::get_site_by_entry_id
    [02-Aug-2013 13:43:45 UTC] wpMandrill Error: Error : 
    [02-Aug-2013 13:43:45 UTC] 2013-08-02 13:43:45 wpMandrill::sendEmail: Exception Caught => Invalid API Key
    
    [02-Aug-2013 13:43:45 UTC] 
    wpMandrill::wp_mail_native: blah@blah.net ([blah blah] First Order)
    
    [02-Aug-2013 17:07:36 UTC] wpMandrill Error: Error : 
    [02-Aug-2013 17:07:36 UTC] 2013-08-02 17:07:36 wpMandrill::sendEmail: Exception Caught => Invalid API Key
    
    [02-Aug-2013 17:07:36 UTC] 
    wpMandrill::wp_mail_native: blah@blah.net ([blah blah] First Order)
    
    [02-Aug-2013 21:57:15 UTC] wpMandrill Error: Error : 
    [02-Aug-2013 21:57:15 UTC] 2013-08-02 21:57:15 wpMandrill::sendEmail: Exception Caught => Invalid API Key
    
    [02-Aug-2013 21:57:15 UTC] 
    wpMandrill::wp_mail_native: blah@blah.com (Welcome to blahblah!)
    
    [06-Aug-2013 03:54:52 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE meta_key = 'entry_id' AND meta_value = '265'' at line 1 for query SELECT site_id FROM  WHERE meta_key = 'entry_id' AND meta_value = '265' made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array, call_user_func_array, GFPMoreStripe::parse_request, GFPMoreStripe::cancel_subscription, do_action('gform_subscription_canceled'), call_user_func_array, GFPMoreStripe::downgrade_stripe_user, GFUserData::get_site_by_entry_id
    [06-Aug-2013 13:23:34 UTC] WordPress database error Unknown column '$autopurge_interval' in 'where clause' for query DELETE ts FROM wp_slim_stats ts WHERE ts.dt < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL $autopurge_interval DAY)) made by do_action_ref_array, call_user_func_array, wp_slimstat::wp_slimstat_purge
    
    

    14. Which company provides your hosting? – OVH.com

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? – Apache

    Thank you @mercime for your reply. I have disabled all plugins and used a fresh Twenty Twelve them and the problem is still there. Thanks in advance.

    #169410
    ultimateuser
    Participant

    Hi,

    I’m using WP 3.6 and BP 1.8

    I’ve added add_filter('bp_activity_do_mentions', '__return_false');

    to my bp-custom.php file.

    However when I visit a Members Profile Page the @mention still displays below the name field.

    Any suggestions?

    Thank you

    Roger Coathup
    Participant

    You shouldn’t be using Genesis Connect with current versions of BuddyPress.

    From the Genesis Connect developer:

    As of BP 1.7 you do not need to have GenesisConnect. We are currently maintaining it for customers who had BP installs prior to BP 1.7.

    #168788
    Matzze
    Participant

    Hi there, – a weird thing: i tried out a custom page in my theme as described in

    http://codex.buddypress.org/developer/theme-development/template-hierarchy/

    So:

    buddypress/activity/index-directory.php

    works fine, but

    buddypress/members/index-directory.php

    isnt working, the file index-directory.php isnt even included, its just the standard page.php.

    Any suggestions what I’m doing wrong?

    thx a lot!

    Developer ICAN
    Participant

    Hi,

    I;ve copied all my Buddypress template files back to my theme as per the documentation at http://codex.buddypress.org/developer/theme-development/a-quick-look-at-1-7-theme-compatibility/. Thats great as i konw have full control over all these templates.

    I’ve 2 questions ..

    1) Is there some default CSS i can get anywhere just to style up my community in a default way as i’ve no styles currently set in my theme for BuddyPress?

    2) In BuddyPress settings, i see you designate pages to the following BuddyPress main pages ..

    http://mysite.com/activity/
    http://mysite.com/groups/
    http://mysite.com/members/
    http://mysite.com/register/
    http://mysite.com/activate/

    My theme is built around shortcodes and i don’t really like the way this works. My editor uses shortcodes to allow the user to have full flexibily on what appears on a page. Is there a way to override this? IF you don’t set the above pages in BuddyPress settings and just use your own logic for navigation, can i use shortcodes to achieve all of this? I see there’s a plugin i can use for generating all BuddyPress shortcodes at http://bp-tricks.com/featured/buddypress-shortcodes-plugin/ – is this a full set to mimic? What then happens to the links in the users profile?

    Thanks for your help in advance

    #168727
    javiercenteno
    Participant

    Problem solved. There was a conflict with other js libraries so I removed them and used only the ones that come with the default BuddyPress theme.

    Now I have a separate issue where the Activity feed is not filtering when I select a filter. It works well in the Groups or Members page but not in the main “activity” page (or in my case “Newsfeed”). I’m going through each page in my custom theme and comparing it to the default theme to make sure I didn’t forget to include something. Hopefully I’ll figure it out soon!

    #168681
    @mercime
    Participant

    @rayela open up your own text editor – NotePad on PC or TextMate on Mac.
    – File > New
    – Add the content per what I posted above
    – File > Save As – bp-custom.php (note select All Files in dropdown)
    – Upload bp-custom.php via FTP/cpanel to where I noted it above

    #168671
    @mercime
    Participant

    @rayela You create a file bp-custom.php and include the code there – make sure there’s no line or space above or beside opening <?

    Then you upload that file from computer into your server wp-content/plugins/ folder via FTP or cpanel

    #168670
    Rachel Biel
    Participant

    @hnla, since you have been patient with me so far, Hugo, can you help me with my initial question of the Activity streams? I found the following and made notes in my forum help area on my site:

    I want to disable replies on the Activity Streams because they do not carry through to the original post in the Group Forums.

    My notes on how to do this:

    Post on why this is confusing: http://commonsinabox.org/groups/help-support/forum/topic/your-members-might-be-confused-activity-stream-comment-vs-group-forum-reply/

    Discussion about this on GitHub: https://github.com/cuny-academic-commons/commons-in-a-box/issues/73

    Solution by boonebgorges (one of the BuddyPress authors):
    Putting this line in your functions.php or bp-custom.php file will disable all activity stream commenting:

    add_filter( ‘bp_activity_can_comment’, ‘__return_false’ );

    Note on bp-custom.php file:
    Creating your file

    bp-custom.php does not exist by default. If you don’t have a file located at /wp-content/plugins/bp-custom.php, go ahead and create a blank file with the following:

    ?
    1
    2
    3
    < ?php
    // hacks and mods will go here
    ?>
    Next, save the file as “bp-custom.php” and verify that this file is located at /wp-content/plugins/.

    Now, when you encounter a forum thread telling you to put a code snippet in bp-custom.php, you’ll know what to do!
    See: https://codex.buddypress.org/developer/customizing/bp-custom-php/

    Action:
    How is this done? Do I go to my control panel and create a file there?

    Katalo
    Participant

    I would like to include comments from pages and/or posts in the activity stream. If it is possible it would be perfect if the content of the comment is shown, but it would suffice with just a note in the activity stream (e.g. “User has commented on page 12 minutes ago”). Is there a filter I could add to the activity loop or to bp-custom.php?

    Thanks!

    Sizons
    Participant

    Hi,

    I’m using version 4 of Artisteers Theme creation software where I export a very nice customized theme for my clients’ website. My problem is that the headers (From Chrome’s inspect element function: item-list-tabs activity-type-tabs) are all overlapping to my two sidebars, my theme is a three column theme with a header and footer as well.

    I have run through the bp-Compatibility steps and on step three where I have to adjust the layout through FTP connectivity, I tried method 1 and 2 without pass. My major problem is that my page.php and index.php both have no div tags, just some php code though I was expecting a similar batch of code to the index.php file I find inside a folder like activity for example, where there is a lot of HTML along with the PHP code.

    Following is my page.php code:
    <?php get_header(); ?>
    <?php get_sidebar(‘top’); ?>
    <?php

    if (have_posts()) {
    /* Start the Loop */
    while (have_posts()) {
    the_post();
    get_template_part(‘content’, ‘page’);
    /* Display comments */
    if (theme_get_option(‘theme_allow_comments’)) {
    comments_template();
    }
    }
    } else {
    theme_404_content();
    }
    ?>
    <?php get_sidebar(‘bottom’); ?>
    <?php get_footer(); ?>

    I also tried to copy the header, footer and sidebar files and save them as sidebar-buddypress.php and so on but saw no difference, the site’s buddypress headers were still overlapping with my site’s two left and right sidebars.

    I have been struggling with this issue for so long, I even tried to create a css folder and copied the bp-default.css and called buddypress.css as I was instructed by one of your support documents on this site, when I changed any of the css I saw no change to the style on the page as I used this with the inspect element feature of the Chrome Browser.

    I really have no clue how to fix this now as it also affects some of the buttons on my site, causes them not to drop-down on my All-In-One-Event calendar plugin controls, though when I use the default buddypress plugin it works fine.

    Please help me, I wish there was a source of information about this that would just work, but the documentation I have found expects particular files which turn out to look different from what I have on the site’s files – Just a reminder, my theme was created using Artisteer 4.0 software.

    Appreciate any assistance.

    Regards [Addition: I am using the latest buddypress 1.8 (Upgraded this morning) and the latest wordpress 3.5.2]

    Prakash Halder
    Participant

    I have a WordPress site with Buddypress plugin in WildCommunity theme.
    Successfully custom taxonomy was created and the respective terms were added from admin panel.
    “get_the_term_list” function was working fine in activity loop when the user is logged in, same code is showing error
    WP_Error Object
    (
    [errors] => Array
    (
    [invalid_taxonomy] => Array
    (
    [0] => Invalid taxonomy
    )

    )

    [error_data] => Array
    (
    )

    )

    when the user is not logged in. if we write custom code to show the terms that case I am getting page not found error in taxonomy page, but all are working fine while I am logged in and showing
    Array
    (
    [0] => stdClass Object
    (
    [term_id] => 1018
    [name] => Book Store
    [slug] => book-store
    [term_group] => 0
    [term_taxonomy_id] => 1052
    [taxonomy] => books-26
    [description] =>
    [parent] => 0
    [count] => 2
    )

    )

    Please help me to solve this problem

    Thanks & regard
    Prakash

    #167613
    valuser
    Participant

    Many Thanks, Hugo.

    After rechecking I am now down to just no sidebar control over activity page and group forums page. (though will need a little css tinkering which is no big deal) .

    My resource to date is just https://codex.buddypress.org/theme-compatibility/ and this forum.

    You say

    Theme compatibility already provides for a custom bp version of page.php ‘buddypress.php’ in that you can specify named sidebars.

    bit lost with that i’m afraid. It would be great if you could elaborate on that.

    #167413
    Shmoo
    Participant

    I’m almost done customization of the entire Groups section and next in line is the Activity section the only problem I face right now is I can’t add the related group-ID’s to the activity lists.

    This probably will be because i’m not inside the Groups -Loop anymore but inside the Activity -Loop.

    Why I need those ID -numbers ?

    At the Groups pages i’ve added the <?php bp_groups_id(); ?> a couple of times to some HTML classes and by doing so I could target each list or div individually by CSS and it’s group-ID.
    Now I have giving each group it’s own coloring based on simple CSS borders like this.

    Screenshot

    Each group has it’s own 3 border-colors and I would like to show those colors again at the bottom of each Activity item. This way people can see very clearly what ‘team -stream’ the Activity is about.

    I have two options I can think of

    1 )
    This will probably be the most simple one.
    I try to add the Activity name ( group-name ) to a HTML class and by doing so could target the list by the group-name in classes. Example .detroit.red.wings.talk { border-stuff }
    – Not very pretty but it gets the jobs done.

    2 )
    I duplicate the groups-loop.php, rename it, minify it with less tags and only the <?php bp_group_id(); ?> inside it and call it or include it by <?php bp_get_template_part('duplicated-groups-loop'); ?> from the activity-loop.php ?? I don’t know if thats a very smart move and if it’s allowed to do so ?

    3 )
    Maybe somebody else has a better option ?

    #167090
    shuklaamar1509
    Participant

    I am working on WordPress Multisite.
    My WordPress version is 3.5.1
    BuddyPress version is 1.7.2 , IIS 8 , SQL Server 2012.
    I am using wordpress-database-abstraction for using SQL Server.

    BuddyPress related pages are not showing any content except page title and date.
    Links for these pages are like “http://localhost/wp-sqlsrv/index.php/activity/” ,”http://localhost/wp-sqlsrv/index.php/groups/”

    But if I change url in browser addressbar to “http://localhost/wp-sqlsrv/activity/” then all content are shown.
    For this I tried to change the permalink structure.
    When in custom structre option I set “http://localhost/wp-sqlsrv/blog/%postname%/” and click on save, It is converted as “http://localhost/wp-sqlsrv/blog/index.php/%postname%/” autometically.

    Why this is happening? How to overcome this problem.
    Please anyone help me.

    Thanks !

    joanicegreen
    Participant

    Redirects are leading to a blank page (header and sidebar’s are there but the actual activity is not displayed)

    During an email notification of an activity, the link provided in the email is:
    http://www.itsartmag.com/features/activity-2/p/1234

    When you click the link it goes to
    http://www.itsartmag.com/features/members-2/user/activity/1234/

    When it gets to this page the page is blank, it will have the header and sidebar and content space, but nothing appears in the content space.

    An example of this is as follows:

    The email gives this link:

    http://www.itsartmag.com/features/activity-2/p/816/

    The site redirects you to:
    http://www.itsartmag.com/features/members-2/cgartist/activity/816/

    And the activity entry does not show at all

    Is there a way to have the link redirect to just the activity page or how is this handled in the core

    We have tried to update the .htaccess but the redirect is actually pretty ugly.

    This is similar to the following posts (opened over a year ago, so I am just referencing them, since I am not sure if it was ever resolved)

    http://buddypress.org/support/topic/why-does-buddypress-use-redirection-links-in-activities/

    http://buddypress.org/support/topic/view-single-activity-infinite-redirect/

    http://buddypress.org/support/topic/buddypress-activity-stream-permalinks/

    1. Which version of WordPress are you running? Version 3.5.2

    2. Did you install WordPress as a directory or subdomain install?
    It is installed on the following path from the web root:
    features/itsart

    3. If a directory install, is it in root or in a subdirectory?
    It is in a subdirectory:

    httpdocs/features/itsart

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    Not recently

    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?
    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?
    Yes:

    AddThis Follow Widget
    AddThis Social Bookmarking Widget
    AdRotate Professional
    Akismet
    BP Activity Autoloader
    BP Friends Suggestions Widget
    BP Group Organizer
    BP Members With Uploaded Avatars Widget
    BP reshare
    BP Resume Page
    BuddyMenu
    BuddyPress
    BuddyPress AddThis LS
    BuddyPress Follow
    BuddyPress Live Notification
    BuddyPress login redirect
    BuddyPress Media
    Buddypress Sitewide activity widget
    BuddyPress Template Pack
    Chartbeat
    Clean up wp_head
    Clobber spam users
    Community Activity On profile
    Conditional Widgets
    Contact Form 7
    Core Control
    Disqus Comment System
    DRP WordPress User Management
    DZS Video Gallery
    Events +
    Export Users to CSV
    Facebook Friends Inviter
    Facebook Like Activity Stream For BuddyPress
    Google Analytics for WordPress
    If Menu
    iframe
    Jetpack by WordPress.com
    JW Player 6 Plugin for WordPress
    Login Logo
    Magic Members
    Manual Control for Jetpack
    Newsletters
    Prevent Password Reset
    PunchTab for WordPress
    Really Simple CAPTCHA
    Slide-In
    Social Articles
    SSH SFTP Updater Support
    TS Widget Pack
    Use Google Libraries
    Video SEO for WordPress SEO by Yoast
    Viper’s Video Quicktags
    Welcome Pack
    White Label CMS
    Widgetize pages Light
    WordPress SEO
    WP-Memory-Usage
    WP Hide Dashboard
    WPMU DEV Dashboard
    WP Status Notifier
    WPtouch Pro

    9. Are you using the standard BuddyPress themes or customized themes?

    Customized theme wpzoom’s magazinium with buddypress template pack installed

    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?
    Not Running

    13. Please provide a list of any errors in your server’s log files.
    None that I can see in relation to this, no 404’s etc

    14. Which company provides your hosting?
    Self Hosted

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    LAMP

    #166848
    bp-help
    Participant

    @bkypes
    Try adding the below code to bp-custom.php if a logged out visitor tries to go to the activity page then they are redirected to login. For more info on bp-custom.php please see:
    https://codex.buddypress.org/developer/customizing/bp-custom-php/

    
    /* Prevent logged out users from accessing bp activity page */
    function nonreg_visitor_redirect() {
    global $bp;
      if ( bp_is_activity_component() ) {
        if(!is_user_logged_in()) { //just a visitor and not logged in
            wp_redirect( get_option('siteurl') . '/wp-login.php' );
        }
      }
    }
    add_filter('get_header','nonreg_visitor_redirect',1);
    
    tsandesh23
    Participant

    I am using WordPress Version 3.2.1 . I have used BuddyPress plugin and custom community theme for my site (not live, it’s in local device). In custom community theme, there are many groups(city) and each group may contain many users. I need to display pictures in main body section of the city/group page uploaded in that group only. All the images are uploaded on C:\xampp\htdocs\staging3\wp-content\uploads\bpfb. But I need to display the pictures of respective groups in the group body section.
    For this I have tried to use image_tag_templates.php file of C:\xampp\htdocs\staging3\wp-content\plugins\buddypress-activity-plus\lib\forms location.
    How to use that??
    And my real concern is how to distinguish the images of respective group from bpfb folder?

    #166428
    dpeters
    Participant

    WP Version: 3.5.1
    BuddyPress: 1.7.2

    You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
    What should happen if that page is accessed by that member or another member?
    Redirect? Custom message page ?

    Either redirect to a listing of all active members or display an error page would be fine, (i.e. “This member is not currently an active member.”)

    If ‘paid dues’ is a boolean, then it’s easy to write a function.
    Where is that boolean stored?

    It would be stored in their profile as an Admin-editable field, per the original post.

    Does that member still appear on the Members page? In the Activity stream?

    No to both. Hidden users would be able to login and update information but their profile wouldn’t be public-facing, just them and the admins.

    This would be useful as we have staggered dues, allowing profiles to turn off/on.

    #166426
    shanebp
    Moderator

    You need to state which versions of WP & BP you use.

    You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
    What should happen if that page is accessed by that member or another member?
    Redirect? Custom message page ?

    If ‘paid dues’ is a boolean, then it’s easy to write a function.
    Where is that boolean stored?

    Does that member still appear on the Members page? In the Activity stream?

    iow. you need to be more specific about the behaviour that you want.

    Eugene
    Participant

    I’m almost done with a custom implementation of WordPress 3.5.1. It’s a closed community and I have a pretty complex profile page and member directory. I can’t use BuddyPress completely because of specific requirements. For example, some profile attributes are not editable by members, but are required. These fields are populated during member signup, which is also a custom implementation of mine.

    However, eventually I would like to use BuddyPress for most of it’s other community features, such as the activity stream, messaging, forums, etc.

    Any ideas on how I can replace/integrate my profile implementation with BuddyPress? Here are some initial ideas:

    • Override BP profile page with a child theme to use my custom php template to only display the profile not edit it. Is this possible? Then users would use my custom profile form which is in wp-admin.
    • In addition to the above I could hook my profile page to save it’s data in BP’s xprofile tables instead of my custom table.
    • Continue to use my custom implementation but only put the default name field in BP’s xprofile table to “connect” the two profiles together.

    In addition to this, I played around with BP and my implementation and I couldn’t figure out how to filter 2 essential items: links to profile page and avatars.

    1. I have a filter on get_avatar to display the member’s profile headshot, but I couldn’t get BP to display it when I filtered on bp_core_fetch_avatar or bp_core_fetch_avatar_filter.
    2. My member profile page is at /profile/member using a custom specialized page template. Can I filter BP’s profile links to link to this instead of it’s profile page?

    Thanks in advance for any input

Viewing 25 results - 576 through 600 (of 1,252 total)
Skip to toolbar