Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 22 replies - 51 through 72 (of 72 total)
  • @macpresss

    Participant

    I guess loading-times will always be a problem because i’ve never seen a BuddyPress website that loaded regular speed..

    @macpresss

    Participant

    What do you mean by change this to a different page ?

    You can change the layout of the profile-page and change it to what ever you want it to look like.
    If you wanna change this page you can look in the template files..

    Theme Compatibility – Customizing

    Or redirect it to a complete different page ? – but why would you do that, if somebody clicks on a name it expects to go to the profile-page and not to a blog-index for example..

    @macpresss

    Participant

    Update 2

    This topic is resolved!

    Found the second conditional statement aswel,

    
    <?php if ( is_user_logged_in() && bp_current_user_can( 'bp_moderate' ) ) : ?>
    <li><a class="button" href="<?php bp_group_permalink(); ?>admin/edit-details/"><i class="fi fi-wrench"></i></a></li>
    <?php endif; ?>
    

    Hope this can help somebody else in the future.

    @macpresss

    Participant

    Update:

    One conditional I got done by looking at some other template files..
    Inside the Group Activity template ( groups/single/activity.php ) I found this PHP tag and from reading the lines of code I could tell this was what I’m looking for.

    IF user_is_logged_in AND = group_member do that 🙂

    
    <?php if ( is_user_logged_in() && bp_group_is_member() ) : ?>
    <li><a class="button" href="<?php bp_group_permalink(); ?>send-invites/"><i class="fi fi-megaphone"></i></a></li>
    <?php endif; ?>
    

    One more to go..

    @macpresss

    Participant

    In the Plugins section I’ve seen two plugins that work with BuddyPress.

    Catalog + Pets the last one can also be used for everything else you just have to change the idea of Pets to some other subject.

    @macpresss

    Participant

    True, but I was thinking of using the FitText.js plugin to prevent usernames from going to a second line when they become longer at this index page.
    While working with min-heights on each element I try to control each member ‘widget’ having the same overall height.

    I would like to use BuddyPress as an upgrade (redesign) of an exciting bbPress site that has been broken from upgrading from bbPress 1.0 -> 2.0.
    This site offers news articles, video + audio Post Formats and support trough bbPress but has grown into some very active ‘online-public-bar’ where people like to post a lot of Off Topic stuff mainly on the forum-side of the of the website while the homepage (news) is often overlooked.

    Using the Groups section for all Off Topic forum discussions and use the bbPress forums module only for real On Topic support would make this website more social and getting more people involved though the Activity-stream.
    Plus I could make a custom audio-postformat (Podcasts) query on the BP Groups page to list all latest Podcasts.

    Redesign of the Groups section. Replacing the Avatar for an icon that will be the same through the entire site and people will recognize it as Off Topic stuff.
    Maybe the font-size, spacing and coloring is still a bit off but I’ll look at this at the end, right now it using the Global styles.

    groups - change

    @macpresss

    Participant

    The buddypress.css file is inside the plugins folder.

    wp-content / plugins / buddypress / bp-templates / bp-legacy / css / buddypress.css (copy)

    If you wanna change or add to this file this file you can copy-/paste it inside your WP theme folder inside a css folder and this new file will be used instead of the old one.

    wp-content / themes / [ your theme name ] / css / buddypress.css (paste)

    @macpresss

    Participant

    We can’t help without Live example to view the source..

    @macpresss

    Participant

    Thank you for that.

    @macpresss

    Participant

    None,

    I never use Cache plugins for Forums or Community driven websites. The content on those kinda websites changes so frequently that it’s very difficult to Cache.

    Just optimize your website , minify your JS and CSS files and try to make less browser requests.

    @macpresss

    Participant

    What you’re trying to do doesn’t work I believe.

    BuddyPress only creates those pre-named Pages in WordPress to create Permalink -structures.

    I believe the BuddyPress script takes over from that point , those pages have no further meaning from the back-end of your WordPress website. You can add content to them as much as you want but that content will not show up on the front-end of the page because BuddyPress has taken over those pages and instead loads it’s own ‘groups’ – ‘activity’ – ‘members’ templates.

    If you want to add some content to those pages you have to look into the template files.

    wp-content / plugins / buddypress / bp-templates/ bp-legacy / buddypress / groups / index.php

    Thats the files that will be shown when you view the Groups page.
    If you would like to add some content to it or edit it in any form you should copy-/paste that file inside your WP Theme folder – just like this.

    wp-content / themes / [your-theme-name] / buddypress / groups / index.php <– make sure that’s a COPY of the default version.

    @macpresss

    Participant

    Found the answer by reading this topic.
    https://buddypress.org/support/topic/how-to-get-group-id-while-in-activity-loop-php/

    The word item_id got me thinking-/searching in the Core files before I found this tag.

    
    <?php bp_activity_item_id(); ?>
    

    – It will Echo just a plain ID number of the related Group the activity is posted in. Just what I needed, I maybe was too focused on the word ‘group’ and searching to much about group_id’s.

    @macpresss

    Participant

    @shanebpdev

    Thats great yes!

    @macpresss

    Participant

    Thank you for the help.

    I’ve added my span tag to the array ‘link_text’ of the button.

    Not judging anybody but I believe this should be done with a more Ease of Use and less code.

    Example:
    Array’s like ‘before’ => ‘<span>’, and ‘after’ => ‘</span>’ those features are far more easy to understand for people with less skills and are very very powerful to add custom stuff to some tags-/functions.

    Thanks again.

    @macpresss

    Participant

    Well i’m trying to add an icon to the Join + Leave group button – just before the text ‘Join Group’ and ‘Leave Group’ inside the A tag, that way the icon is still part of the link when you Hover over it.

    Now i’m a bit further and I’ve found the $button + bp_get_button tag which creates the HTML + button.
    The only problem is I can’t ADD to that HTML but only replace it.

    Here is what I did:

    First I’ve found this line of code:

    
    // Filter and return the HTML button
    return bp_get_button( apply_filters( 'bp_get_group_join_button', $button ) );
    

    The bp_get_button tells me thats the action or Tag that creates the button and the apply_filter -> bp_get_group_join_button will add the ‘ Group text or content to it.

    So I was thinking I need to add my Filter to that bp_get_button tag to get inside the HTML A tag.

    Searching for bp_get_button + bp_button got me looking inside the bp_core_template file and thats where i’ve found this.

    By looking at this code I assume I have to add my custom code to that $args but the only problem is how do I add to it and not replace it.

    
    function bp_button( $args = '' ) {
    	echo bp_get_button( $args );
    }
    // wall of text 
    	function bp_get_button( $args = '' ) {
    		$button = new BP_Button( $args );
    		return apply_filters( 'bp_get_button', $button->contents, $args, $button );
    	}
    

    I’ve added this to my functions:
    I use return instead of echo for filters (video says so)

    
    add_filter( 'bp_get_button', 'my_stuff' );
    
    function my_stuff($args) {
    	$args = '<span>icon</span>';
    	return $args;
    }
    

    This line of code doesn’t crash my website but it only replace to code i’m working on.

    I’ve made some screenshots for better understanding.

    This is before what it should look like – only I want my span (icon) tag inside the html A tag.

    View post on imgur.com

    This is what I get – it replaced the button instead of adding towards it.

    View post on imgur.com

    Sorry I’ve never been a very smart person and slow learning. 🙁

    @macpresss

    Participant

    I found this video the best I’ve seen this far, because it keeps it very easy to understand.

    It starts with a very basic understanding of what Actions and what Filters do because they maybe sound very overwhelming? when you bump onto them for the first time.
    You don’t wanna know how many bbPress or BuddyPress projects I have deleted because I couldn’t understand what actions are, I knew they where spot that you can Hook into but making it happen and writing some code that finally gets Hooked into an action is a different story.

    Actions DO stuff.
    Filters CHANGE stuff.

    I’ve tried to make my own custom add_action for the first time just to see if I was able to Hook into that ‘ bp_group_header_actions ‘ and it worked.
    Something as simple as this added an empty span tag above the ‘ bp_group_header_actions ‘ code but the only question that still remains how to I get inside the HTML of this action.

    
    add_action ( 'bp_group_header_actions', 'my_stuff', 1 );
    
    function my_stuff() {
    	echo '<span></span>';
    }
    
    

    This empty span tag has to go inside that div before the a href tag.
    actions and filters

    @macpresss

    Participant

    I found a solution with CSS.

    tbody tr .unread p.unread -> pulse dot
    tbody tr .read p.unread -> display none

    inbox pulse

    @macpresss

    Participant

    Search for: Facebook WP lookalikes themes. BuddyPress will integrate with almost every WP Theme.

    @macpresss

    Participant

    Thanks for searching around,

    Bummer, I was so excited about BuddyPress 1.7 but it’s a little disappointed that such a WP DNA features aren’t included.
    I’ve made some bbPress themes before and I love how simple the page templates can be moved around and extended by just calling them different names like you would do by a regular WP Theme.

    Hope that will ever be the feature for BuddyPress.

    For now, I have to accept losing the page.php template to BuddyPress only and add a Custom Page Template for every other created page inside the WP Dashboard.
    By doing so i can clean-up all HTML inside the page.php and move it two templates higher -> members/index.php just before all the BuddyPress stuff starts to roll.

    It’s not the best en most beautiful solution but it works for now.

    @macpresss

    Participant

    Better to contact Joost.

    SEO for everyone

    @macpresss

    Participant

    Thanks for the ticket.

    @macpresss

    Participant

    Hooking into this question because i was searching for something,

    I see that BP 1.7 (beta) calls the page.php template from your WP Theme directory, is it possible to force BP to use a different page template ?

    Last time when i used BP we had bp-templates that where built-up like get_header(); and stuff like that, right now i can’t find it anymore and i feel like i’m forced to use a single page template.

Viewing 22 replies - 51 through 72 (of 72 total)
Skip to toolbar