Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 651 through 675 (of 1,252 total)
  • Author
    Search Results
  • #153986
    bp-help
    Participant

    @fatche@bluelf, @modemlooper removed this plugin from the repository unfortunetly! you could try creating a bp-custom.php file in yoursite/wp-content/plugins directory and add the following between opening and closing php tags:

    define(‘BP_DEFAULT_COMPONENT’,’groups’);
    global $bp;
    $bp->bp_nav[‘profile’][‘position’] = 20;
    $bp->bp_nav[‘forum’][‘position’] = 30;
    $bp->bp_nav[‘posts’][‘position’] = 40;
    $bp->bp_nav[‘activity’][‘position’] = 50;
    $bp->bp_nav[‘blogs’][‘position’] = 60;
    $bp->bp_nav[‘friends’][‘position’] = 70;
    $bp->bp_nav[‘messages’][‘position’] = 80;
    $bp->bp_nav[‘groups’][‘position’] = 10;
    $bp->bp_nav[‘settings’][‘position’] = 90;
    }
    add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 );
    }
    add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );

    The numbers in increments of ten correspond to the order in which they will be listed in the navigation.

    #153952
    bp-help
    Participant

    Try this plugin:
    https://wordpress.org/extend/plugins/restricted-site-access/

    `
    Just place this between opening and closing php tags in the bp-custom.php file:

    `
    On the below line you can change the /register to the page you want them redirected too!
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    For example:
    wp_redirect( get_option(‘siteurl’) . ‘/activity’ );

    #153935
    mhannor
    Participant

    So I placed this in wp-content\plugins\bp-custom.php

    Then I added:

    function bp_guest_redirect() {

    global $bp;

    if ( bp_is_activity_component() || bp_is_groups_component() /*||

    bbp_is_single_forum()*/ ||bp_is_forums_component() ||

    bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {

    // enter the slug or component conditional here

    if(!is_user_logged_in()) { // not logged in user

    wp_redirect( get_option(‘siteurl’) . ‘/members-2’ );

    } // user will be redirect to any link to want

    }

    }

    add_filter(‘get_header’,’bp_guest_redirect’,1);

     

    That didnt help the pages still show

    #153925
    Kevin M. Schafer
    Participant

    @mercime I understand what you’re saying, I really do. I tried everything. When I was able to successfully activate BP 1.7 beta, I received multiple posts on the activity stream — four of them right in a row. Here’s the really weird part. When I went to the BP default theme and posted from there, the little button wouldn’t appear to post the text. My site had some severe issues. It tried to, and a hard refresh sometimes made it appear. After making a post, the button disappeared again.

    I ultimately reverted back to the Stable BP version, and everything worked fine. Then, to make sure I won’t face an upgrade issue down the road when the new release is issued, I uploaded everything from scratch. Totally wiped it all clean and created a new database with a different name.

    I know this solution sounds like turning off a computer with the button on the tower — a big no no for professionals, but I’m still learning. A week ago I could barely navigate my multisite, and today I’m really moving through it. I even created custom page names this time to assign to BP.

    Last week after I installed BP 1.7 beta, I tried several times to change me permalinks. Mostly due to appearance and robot spam (renaming register page to something else).

    A new install today has afforded me the chance to really make a good solid base for any and all WordPress and BuddyPress upgrades in the future.

    I’m really learning a lot about databases and domain add-ons (for clean URLs). This past week I’ve taught myself to use cPanel for almost everything. I use FileZilla now for mostly uploading zip files.

    I hope I don’t wear out my welcome here with my issues. I really appreciate everyone’s help. I find myself often reading posts that are two and three years old. All informative. It’s all very interesting, and I’m really learning a lot.

    Thank you for your time. I really appreciate it.

    Kevin

    #153831
    pdillon809
    Participant

    Hi,

    I have BuddyPress installed on Evolution by Elegant Themes. Everything appears to work but I am struggling to understand how users will access the Buddypress section of the site or even know it’s there. Currently the only option is via the “logged-in” bar at the top of the screen.

    I would like something that most users will find and I don’t think this is the case at present.

    I tried adding a custom link on the main WordPress Theme menu but this doesn’t work because I can’t pass the logged-in user’s name within the URL.

    Here’s a screenshot

    Am I missing something? Is this how BuddyPress typically works?

    How can I add a link from the main WP menu to (say) the activity page of the user (not sitewide). Sitewide might be ok if the user could then go to other areas or BP but they’re jailed in Sitewide for some unknown reason.

    #153746
    @mercime
    Participant

    @creativepixels There’s still hope. I overlooked the fact that you already went through the Appearance > BP Compatibility process. So here’s what you’ll do:

    – Deactivate BP template pack plugin

    – Remove the 6 BuddyPress folders transferred to your supreme theme’s folder in wp-content/themes/supreme-theme folder namely: /activity, /blogs, /forums, /groups, /members, and /registration.

    – Clear cache and check your BP pages now.

    #153609
    bp-help
    Participant

    It stripped the code again. Just place this between opening and closing php tags in the bp-custom.php file:
    `
    function bp_guest_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    // enter the slug or component conditional here
    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    } // user will be redirect to any link to want
    }
    }
    add_filter(‘get_header’,’bp_guest_redirect’,1);
    `

    #153487
    Anonymous User 7600456
    Inactive

    Hooray! I worked it out in the end.

    Here is how I did it:

    1, If you don’t already have one create a blank page in ‘/wp-content/plugins’ called bp-custom.php (see this page for more info)

    2, Paste this code into bp-custom.php: http://pastebin.com/Sk56iQQU

    For reference these are the pages that helped me work it out:

    https://buddypress.trac.wordpress.org/ticket/4784

    https://buddypress.trac.wordpress.org/ticket/4106

    https://codex.buddypress.org/developer/customizing/bp-custom-php/

    Edit: I can’t get the ‘code’ tags to work. I have put it in a pastebin. Mods feel free to edit this to work and delete this note and the link to pastebin.

    #153326
    Unsal Korkmaz
    Participant

    Well..
    I found my problem..
    Btw it seems it was a misunderstood that i was trying to show it on blogs directory as latest post.. Seems my problem is post_type = ‘post’ is hardcoded on buddypress:

     $paged_blogs[$i]->latest_post = $wpdb->get_row( "SELECT post_title, guid FROM {$blog_prefix}posts WHERE post_status = 'publish' AND post_type = 'post' AND id != 1 ORDER BY id DESC LIMIT 1" );
    

    This is just.. wrong. Why not use {$blog_prefix}bp_activity table? why trying to connect to {$blog_prefix}posts?

    #152445
    Mitesh Patel
    Participant

    Thanks @ubernaut. Yes, that’s a nice idea, but I do want to use site-wide forums.

    The page structure is like this, but with more pages

    Home
    About
    Community
    -Forums
    -Groups
    -Activity
    Contact

    Anyway, I don’t think it’s going to be possible without some devine intervention :), as I noticed in testbp.org site, the ‘discussion’ menu is highlighted only when you select it (the page is forum-index). When you go any deeper (select a forum or a topic), the highlight get’s lost, so the issue is, the custom menu is not able to acquire/implement the hierarchy info, which may or may not have been provided by bbpress itself.

    The same problem is there with the link you posted as well. On the other hand, all the buddypress menus and sub-menus and sub-sub-menus can correctly highlight the parent ‘community’ page. So, it’s a bbPress/forum specific issue.

    #152425
    Mitesh Patel
    Participant

    I know it should go to bbPress or even WordPress forum, but I am posting this here as I see more chances of being it answered here, although, if mods decide I should post it there, I would.

    I am developing with wp 3.5, bp 1.6.4, bbp 2.3 locally. I am using bp-default child theme (for just a few css changes, it’s essentially bp-default) with customized menu (not default buddypress menu, but one created from appearance > menu admin area). I have created a page called “community” and created pages called members, activity, group-forums etc. for buddypress as ‘sub-page’ of this ‘community’ page. This works perfectly.

    I am also using bbPress for site-wide and group forums. Thus, to show my forum index, I have created a page called ‘Forums’ and I display forums with bbp-forum-index shortcode on this “Forums” page. This ‘Forums’ page is NOT a subpage of ‘Community’ (or any other) page, but I have put it under ‘community’ menu item – as it’s part of community logically/semantically.

    The problem is that, if I go to the forums by clicking the forums link in communty > forums sub-menu Item, it does show the forums correctly, but the community item in the manu is not highlighted as current item, as it does for all the buddypress components. For example, even if I am on http://www.example.com/members/admin/activity/groups/, the ‘community’ menu item is highlighted. but if I am on http://www.example.com/forums/ (forum index), the community tab isn’t highlighted.

    What can I do to solve this problem?

    Clive Hetherington
    Participant

    WP 3.5 BP 1.6.3

    Since using latest BP/WP versions I’ve lost most of the comments I used to have appearing in the BP activity stream. I’m told that ‘ By default, BP only records post comments into the activity stream.’. I originally thought this was a bug!! As it certainly is to myself and opened trac ticket 4784. http://buddypress.trac.wordpress.org/ticket/4784

    So, is there a code snippet that can be used to do this? I’ve tried the suggestion someone gave on ticket 4784 (thanks r-a-y:

    function bp_ticket_4784_record_custom_comment_post_types($cpts) {
    $cpts[] = ‘page’;

    return $cpts;
    }
    add_filter( ‘bp_blogs_record_comment_post_types’, ‘bp_ticket_4784_record_custom_comment_post_types’ );

    but this didn’t work.

    #151629
    Clive Hetherington
    Participant

    I’ve found that somewhere down the line a decision was made to only allow comments from posts into the activity stream.

    My comments disappeared from activity because 99% of my comments are from pages.

    I’m presuming this change was made to accommodate custom post types. I’d suggest that as these types of decision can sink the entire reason for a BP installation (in some cases) that they should be made with some thought or perhaps even a community vote?

    Can BP make this an OPTION in the next version please?

    Perhaps there should be an option to include or exclude each of the standard wp custom types on installation?

    #151456
    danbpfr
    Participant

    hi @fitnessblogger,

    use this in wp-content/plugins/ bp-custom.php
    (If you haven’t this file you have to create it first)

    Tested on 1.6.3

    `function bpfr_excerpt($text) {
    return trim($text,'[…]’);
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 );`

    if you want to replace […] by ‘xxx’ you use this

    `function bpfr_excerpt($text) {
    return str_replace( ‘[…]’,’xxx’,$text );
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 ); `

    Take care with copy/pasting from here. Quotes must be single quotes at least.

    #151068
    @mercime
    Participant

    @ciumbargi know that those who help out in these forums are all volunteers who generously do their best to assist others even though they are not paid to do so. It is indeed unfortunate that you see an advice about how to find the correct selectors in different browsers as a negative even after some assistance was already given for what was not quite clear in the request.

    As I see it, the issue is resolved in your site viewing it using Firefox. If it is not, then I advise you to post at the Pagelines forums and include info about what browser you’re using so that they can fix it … thereby benefiting the rest of the Pagelines customers.

    Have a nice day.

    #150924
    Denis Ciumbargi
    Participant

    Hi, i am trying to align the story elements from the activity page.
    Where there is the big avatar the text saying “X posted a reply etc etc” is align at the middle of the row according to the avatar and it looks nice.
    Where there is the small avatar the text saying the same things is way under the level of the avatar. Can i customize some code somewhere to fix this?
    Here is the website: http://sansapentrusansa.org/activitate 
    and here is a screenshot to better understand what i have tried to explain.

    https://www.dropbox.com/s/7rvzpl8yjxfd0wb/Funda-ia%20-ansa%20pentru%20-ansa%20%20%20Activitate%20generala.png

    #150830
    Denis Ciumbargi
    Participant

    Hi, i am trying to align the story elements from the activity page.

    Where there is the big avatar the text saying “X posted a reply etc etc” is align at the middle of the row according to the avatar and it looks nice.

    Where there is the small avatar the text saying the same things is way under the level of the avatar. Can i customize some code somewhere to fix this?

    Here is the website: http://sansapentrusansa.org/activitate 

    and here is a screenshot to better understand what i have tried to explain.

    https://www.dropbox.com/s/7rvzpl8yjxfd0wb/Funda-ia%20-ansa%20pentru%20-ansa%20%20%20Activitate%20generala.png

    #150627
    simpsonpw
    Participant

    When attempting to edit my BP Profile fields I get a window showing the following code.
    What is it and how do I fix it?
    Thank you.

    REQUEST variables: page = bp-profile-setup mode = edit_group group_id = 1 wordpress_0575dbccba3b6906f4fb144e66d0e6f6 = admin|1358338385|a0228376c57e9d89d8ed7afe14014b2e wp-settings-1 = m5=c&m9=c&m1=c&m10=c&m3=c&m6=c&m2=c&editor=tinymce&m8=c&m7=c&m11=c&m12=c&m4=c&m14=c&m15=c&m13=c&align=center&imgsize=full&m0=c&urlbutton=custom&m16=c&m17=c&hidetb=1&m18=c&m19=c&m20=c&m21=c&tml1=1&tml0=0&wplink=1&widgets_access=off&libraryContent=browse&cats=pop wp-settings-time-1 = 1358165589 PHPSESSID = l9nf1rl419lp1a1btvucffvuu7 wordpress_test_cookie = WP Cookie check wordpress_logged_in_0575dbccba3b6906f4fb144e66d0e6f6 = admin|1358338385|32007ef4034e251f66949757a22b42b2 bp-activity-oldestpage = 1 bp-activity-scope = all bp-activity-filter = new_blog_post

    Using WordPress version 3.5
    BuddyPress version 1.6.3
    http://www.thecharlottechurch.org

    #150490
    digitman2
    Participant

    Again, its not just the body class, as I said its the avatar as well, plus in future there might be other changes introduced which I’d like to be introduced in my custom pages as well. I don’t see why there can’t be a hook added to this function, it will be a one line change and its consistent with all the other hooks that are added.

    Is it your decision to add/not add a hook?

    adamlawson
    Participant

    Hello all,

    My Name is Adam and I am very new to the WordPress/Buddypress scene. My experience with it has been outstanding. Its ease of use and many features makes this a valuable resource. I have some questions regarding WordPress and Buddypress integration. Once installed I will be running the latest version of both.

    Allow me to paint my scenario then asks my questions. Please respond to all that you can. I can also be contacted directly via email at admcalvin@yahoo.com

    Thank you in advanced!

    I am creating a website that will be generating content (mostly articles) for specific categories. For sensitive reasons I will use bogus examples here. Some examples are Fashion, Design, Hair, Modeling etc… I want to integrate these articles with the social abilities of Buddypress. Providing the end user the ability to comment, post, share, re-post etc…

    The site home page will consist of a custom page (not posts) where users will see an aesthetically pleasing overview of the categories. Once they click on the category to read further detail they will be asked to create a profile. This is where the Buddypress integration comes in.

    The end user clicks on a category, and begins to fill out the profile questionnaire. Some questions would be, Age, Gender, Categories interested in etc… Once they fill this out they would be redirected to the page that they were originally interested in. At the bottom of the article will be a button for “My Dashboard”.

    What I would like to do is to create a sort of Dashboard for the user that would provide the articles/posts per the answers that they filled out in the Profile Questionnaire. Hence if I chose Fashion and Hair, I could click “My Dashboard” and view those articles. I would like the end user to be able to change this content whenever they want. Remove/add cotegories etc…

    In the broad sense of Buddypress I still want to use the Profile and Activity Streams. The end user could see new posts or other friends or groups activity, comments etc…

    So with that my questions would be this:

    1. Create a custom profile questionnaire

    2. Setup the redirection once the questionnaire has been filled out

    3. Create a Dashboard with content generated from the questionnaire

    4. Setup notifications to notify the user that their profile is not complete. For example “Profile Setup” like add more categories or invite friends, add profile photo etc…

    Again please answer all that you can. Who knows maybe there are plugins that manage these sorts of things.

    Thanks again, I greatly appreciate the input.

    #150027
    danbpfr
    Participant

    hi,

    see at the bottom of this page how to change avatar size
    https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/

    Baconbits
    Participant

    So I have been browsing through every thread related to the subject, and have seen very little solutions and very few lucky folks who had the problem find a solution. I’ve been working very hard to root out the problem so please bear with me, I need assistance. A solution to this problem would help a LOT of BP users.

    My problem: (using WP 3.5 / BP 1.6.2) Registration is broken on random browsers, seems to come to life for some people under very random circumstances. Still 50+% of my potential users are submitting their info and the register page just simply reloads with no error.
    -Disable all plugins except buddypress: No luck
    -Use BP default theme, with fresh buddypress install: on MY computer, IE will suddenly be able to register, but not firefox, and still every other person to try to register fails.
    -htaccess is unaltered from its original state
    -“allow users to register” is checked
    -no form of captcha, or custom registration page is being used.

    On a hunch, I created a locally hosted test server and downloaded a backup of my WEBSITE files (not the SQL database). I got the website to function 100% as it currently does (without my users, I’m not sure how to export/import BP users and profiles). Lo and behold, under the exact same circumstances I can register under every browser under the sun, on multiple PCs on my local network.

    This tells me there is something wrong with my database (and obviously the other users reporting the same problem — if its not your plugins or theme, its a db issue).

    So now my question, how can I go about squeezing the junk out of my database that could be causing this (if anybody agrees that I’m right). Over the months I have used and removed well over 100 plugins that I’m sure have left their traces all over the database. Something in there must be causing the problem.

    If I can’t root out the error, would it be possible to create an entirely new database and only import ALL user data (name, email, password, avatars, activity stream posts, etc)… I don’t want to annoy my users by having them log in to see they have lost any data. If this is possible then I would have my current up to date website as it is, without a single papertrail of plugins that are long since deleted.

    What do you guys think? I realize this is a very rough issue so any help is greatly appreciated. I’ve been tinkering for days trying to figure this out, many of us are losing users because of this.

    #149120
    danbpfr
    Participant

    Hi,

    did you set the permalinks to something other than default. Should be done.

    Have you checked the yoast plugin ?

    The error is probably due to PHPSESSID cookie.

    Another cookie is comming from bp-activity-oldestpage. This is a custom setting  Check it ! The normal name is bp-activity

    #149097
    seppy
    Participant

    Hi @sbla

    On the groups pages (where the styling isn’t correct) it seems to still have in the ‘home’ class in your body tags (which has the transparent background)
    `body class=”single-item groups group-home home custom-background”
    `

    So it’s calling this CSS which you don’t want!
    `
    .home #wrapper {
    background-color: transparent;
    border: none;
    margin: 20px auto 20px auto;
    padding: 0;
    }
    `

    Where as the page that it is correctly styling hasn’t got “home” in the body classes.

    `body class=”directory activity custom-background”`

    How are you currently adding the ‘home’ class to body?

    `function add_home_class($classes) {
    if (is_front_page()) {
    $classes[] = “home”
    }
    return $classes;
    }
    add_filter(‘body_class’, ‘add_home_class’);`

    #148913
    peterjhead
    Participant

    Try this in bp-custom.php

    function bp_non_member_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {

    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option('siteurl') . '/register' );
    } // user will be redirect to any link to want
    }
    }
    add_filter('get_header','bp_non_member_redirect',1);

    NOTE: If your using sitewide forums instead of group forums you will need to remove the comment /* */ around:
    || bbp_is_single_forum()
    in the above code. Merry Christmas!

Viewing 25 results - 651 through 675 (of 1,252 total)
Skip to toolbar