Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 7,751 through 7,775 (of 32,677 total)
  • Author
    Search Results
  • #244467
    danbp
    Participant

    @bigkahunaburger,

    i completed the snippet so it comes with pagination.

    Here a great tutorial about pagination.

    #244465
    Lars Henriksen
    Participant

    Hello,

    I’m trying to setup a full-width template for all group pages.

    According to the documentation you can put a theme file (single.php) in

    /wp-content/themes/twentyfourteen-child/buddypress/groups/

    but my group pages are not picking up the template.

    What am I doing wrong?

    Thanks

    This my index.php:

    <?php
    /**
     * Template Name: Full Width Page
     *
     * @package WordPress
     * @subpackage Twenty_Fourteen
     * @since Twenty Fourteen 1.0
     */
    
    get_header(); ?>
    
    <div id="main-content" class="main-content">
    
    <?php
    	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    		// Include the featured content template.
    		get_template_part( 'featured-content' );
    	}
    ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    			<?php
    				// Start the Loop.
    				while ( have_posts() ) : the_post();
    
    					// Include the page content template.
    					get_template_part( 'content', 'page' );
    
    					// If comments are open or we have at least one comment, load up the comment template.
    					if ( comments_open() || get_comments_number() ) {
    						comments_template();
    					}
    				endwhile;
    			?>
    		</div><!-- #content -->
    	</div><!-- #primary -->
    </div><!-- #main-content -->
    
    <?php
    get_sidebar();
    get_footer();
    
    #244441
    danbp
    Participant

    @bravenguyen,

    you don’t know how to create a page with WordPress ? Hum… really ? 😉

    dashboard > pages > add new.
    Enter a title, save and you’re done .
    Go to BP page settings and select the one you created for activate. Do the same for register.

    Marquisdefunk
    Participant

    When looking at an individual users profile, the “view” link that directs to their recent activity points to my-domain/activity/p/127 but when I click on it the link directs me to a totally non-related page on my site.

    This is happening with every “view” link throughout the site and always directs to the same non-related page.

    Also, when I am viewing an individual users profile, the “Activity” link points to my-domain/members/username/activity/. But when I click on the link it directs me to the Site Wide Activity located at my-domain/activity/

    I am running:
    Tempera Theme – I am using a child-theme
    Wordpress 4.3.1
    bbPress 2.5.8
    BuddyPress 2.3.3
    BuddyPress NoCaptcha Register Box 1.1.3
    Membership2 4.0.0.5
    Nextgen Gallery 2.1.15

    I have tested with only WordPress and Buddypress activated with same results.
    This is a clean install and I have tested with TwentyFifteen theme with same results.

    #244431
    djsteveb
    Participant

    @swissprice – There are several “chat” plugins what “work with wordpress / buddypress” – it would be easy to establish a group chat room that allows registered and non-registered users to chat with each other via the main chat room – and they can private message each other there.

    As far as “begin chat with this user” – I think you would need something that says “User A” is online now – and a setting that would allow a non-registered, non-logged in person to send a “message”. I think I saw a thread a while back where someone was trying to adapt the “single user profile page” to allow guest comments, aka activity post on that profile / user’s activity page..

    Not sure exactly what you are going for here.

    deklein
    Participant

    I am trying to add buttons to my menu that are dynamic links to buddypress items. Since logging into wordpress and updating some plugins a few days ago all of the buttons are all of a sudden missing.

    I have a screenshot to help explain what my issue is:

    http://postimg.org/image/e0f9fdb2r/

    Any suggestions are appreciated! Thanks (:

    #244416
    danbp
    Participant

    hi @bigkahunaburger,

    Give this a try (goes to bp-custom.php or child-theme functions.php)

    function bpfr_get_user_comments_on_profile() {
    
    // number of comments to show per page
    define( 'DEFAULT_COMMENTS_PER_PAGE', 3 );
    
    $page = (get_query_var('page')) ? get_query_var('page') : 1;
    
    $limit = DEFAULT_COMMENTS_PER_PAGE;
    
    $offset = ($page * $limit) - $limit;
    
    $param = array(
    	'user_id' 	=> bp_displayed_user_id(),
    	'status'	=> 'approve',
    	'offset'	=> $offset,
    	'number'	=> $limit
    );
    
    $total_comments = get_comments(array(
    	'orderby' => 'comment_date',
    	'order'   => 'ASC',
    	'status'  => 'approve',
    	'parent'  => 0
    ));
    
    $pages = ceil(count($total_comments)/DEFAULT_COMMENTS_PER_PAGE);
    $comments = get_comments( $param );
    
    $args = array(
    	'base'         => @add_query_arg('page','%#%'),
    	'format'       => '?page=%#%',
    	'total'        => $pages,
    	'current'      => $page,
    	'show_all'     => false,
    	'mid_size'     => 4,
    	'prev_next'    => true,
    	'prev_text'    => __('&laquo; backward'),
    	'next_text'    => __('onward &raquo;'),
    	'type'         => 'plain'
    );
    
    // Output pagination
     echo paginate_links( $args );
    ?>
    
    <ul>
    <?php
    
    	foreach($comments as $comment) {
    
    	// short version
    	//echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">View post</a></li>';
    	
    	// long version
    		echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">'. get_the_title( $comment->comment_post_ID ) .'</a> Comment: '. get_comment_date( '', $comment ) .'</li>';
    	}
    ?>
    </ul>
    <?php
    
    }
    add_action ( 'my_profile_comment', 'bpfr_get_user_comments_on_profile' );
    
    function bpfr_comment_profile_setup_nav() {
    global $bp;
    
    	$parent_slug = 'comments';
    	$child_slug = 'comments_sub';	
    	
    	// Add nav item
    	bp_core_new_nav_item( array(
    	'name' => __( 'My comments' ),
    	'slug' => $parent_slug,
    	'screen_function' => 'bpfr_profile_comment_screen',
    	'position' => 40,
    	'default_subnav_slug' => $child_slug 
    	) );
    	
    	//Add subnav item 	 
    	bp_core_new_subnav_item( array( 
    	'name' => __( 'My latest comments' ), // as content title
    	'slug' => $child_slug, 
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 
    	'parent_slug' => $parent_slug, 
    	'screen_function' => 'bpfr_profile_comment_screen'
    	) );
    }
    
    		function bpfr_profile_comment_screen() {	
    			add_action( 'bp_template_content', 'bpfr_profile_comment_screen_content' );
    			bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    		}
    
    		function bpfr_profile_comment_screen_content() {
    			do_action( my_profile_comment );
    		}
    
    add_action( 'bp_setup_nav', 'bpfr_comment_profile_setup_nav' );

    Reference: https://codex.wordpress.org/Function_Reference/get_comments

    To do the same for user’s post, see here:
    https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/

    #244415
    mmalaske
    Participant

    I haven’t been able to get the Activate and Register pages to work with the Genesis Executive Pro theme. I’ve done quite a bit of research and it doesn’t seem clear to me on whether BuddyPress creates its own Activate and Register pages or these are pages I need to create. We were able to verify in the BuddyPress directory there is a activate.php and register.php file but they are not in the dropdown selection when associating the WordPress page with the BuddyPress component directory.

    If I could get a simple yes/no answer to whether or not the two pages are indeed created by BuddyPress during install I would appreciate it!

    #244414
    boriskamp1991
    Participant

    Hi guys!
    Why is there no notification sent to a member when he/she is mentioned in a regular (wordpress) comment form on a blog post?

    I would really like this, how can I achieve this?
    Thanks!

    #244411
    djsteveb
    Participant

    – it’s the (or one of the) “default” wp themes ( https://wordpress.org/themes/twentyfourteen/ )
    about the only way you will get any kind of support with bp or / and rtmedia..

    it’s not the easiest thing to mod – but at least it works, and bp has some stylesheets included that massage it into something better than the average theme for some bp pages..

    I finally got deep into it to style some changes at the various media queries / screen sizes..

    btw – did you try changing your premium themes style.css to those changes to see if they work?

    if you search the bp forums for other premium themes you will see that even ones selling as “the best or the most popular buddypress theme” – seem to have issues and lack good support.. search the forums for “kleo” for example – lol

    I am sticking with twenty fourteen ’till things mature a bit (recent changes in wp and bp have made things complex in some ways) –

    #244392
    liharris
    Participant

    Hello,
    firstly this is my first ever wordpress website! http://www.liharris.com but i have ran into an issue with my premium wordpress theme “Empathy A Vcard Theme” whenever i have this theme active my profile redirects the profile pages to my home page.

    i have okay coding skills but don’t really know as much about PHP or CSS which is a pain

    Thanks In Advanced

    #244377
    Maddish
    Participant

    I’m trying to override the default /_inc/global.js file with a custom one, but after deregister the original one, every post_update is run twice, so each post is duplicated.

    I’m using

    Wordpress version 4.3
    buddypress version 2.3.3
    typal-makewp005 Chld theme

    In bp-custom.php:

    
    function deregister_bp_scripts(){
    
    wp_deregister_script( 'dtheme-ajax-js');
    wp_dequeue_script( 'dtheme-ajax-js');
    }
    add_action('wp_enqueue_scripts', 'deregister_bp_scripts');
    
    function mytheme_enqueue_scripts() {
    
    			$params = array(
    					'my_favs'           => __( 'My Favorites', 'buddypress' ),
    					'accepted'          => __( 'Accepted', 'buddypress' ),
    					'rejected'          => __( 'Rejected', 'buddypress' ),
    					'show_all_comments' => __( 'Show all comments for this thread', 'buddypress' ),
    					'show_x_comments'   => __( 'Show all %d comments', 'buddypress' ),
    					'show_all'          => __( 'Show all', 'buddypress' ),
    					'comments'          => __( 'comments', 'buddypress' ),
    					'close'             => __( 'Close', 'buddypress' ),
    					'view'              => __( 'View', 'buddypress' ),
    					'mark_as_fav'       => __( 'Favorite', 'buddypress' ),
    					'remove_fav'        => __( 'Remove Favorite', 'buddypress' ),
    					'unsaved_changes'   => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ),
    			);
    wp_enqueue_script( 'custom_dtheme-ajax-js', get_stylesheet_directory_uri() . '/js/global.js', array( 'jquery' ) );
    	wp_localize_script( 'custom_dtheme-ajax-js', 'BP_DTheme', $params );
    }
    
    add_action('wp_enqueue_scripts', 'mytheme_enqueue_scripts');
    

    I already tried to set different priority , to move this code to functions.php instead of bp-custom.php, to use the twentyfifteen theme, to make a child of the bp-default theme, but no way…
    What I need to do is to add some custom fileds to the activity form to create a facebook-like link-preview.

    I followed this post in which they say you have to add to global.js the new fields’ values, but I don’t want to change the global.js file directly (for next updates)

    https://buddypress.org/support/topic/adding-a-second-element-for-posting-with-an-activity/

    Does anybody know what am I doing wrong?

    #244366
    Prabin
    Participant

    may be it’s a permalink issue. Try editing your htaccess file.

    Navigation Links Return 404 Errors

    https://codex.wordpress.org/Using_Permalinks

    #244362
    loladam
    Participant

    Hello, I can not make a register page all I get is “404 not found”.

    I have checked in settings>Membership>Anyone can register (is checked).
    Settings>Buddypress>Pages>Register/Activate (Both of them have a page).
    I got wamp and wordpress 4.3

    When I go to the register page it says “404 not found”, what can be the problem and how can I fix this? This is a school project im working on right now.

    Some screenshots:
    https://gyazo.com/1ebae1a4b89bf5b75e83031520adda19
    https://gyazo.com/e79a4cc0d32b95ee9df41f25ed75d50b
    https://gyazo.com/05c372d466305993e18ed6337e330e98

    -Adam

    #244361
    danbp
    Participant

    No idea really, but see here if you find something
    https://wordpress.org/plugins/search.php?type=term&q=cookie+law

    #244351
    faeter
    Participant

    Hi!

    I’m new to Buddypress and have a couple of questions concerning what’s possible with plugin extensions and what I may have to code myself. I’ve been finding some useful information in the forums, but some of is quite old. I’m not sure what’s currently built-in, which plugins are still supported etc so here it goes:

    1) Different profiles for different member types? E.g business, consumer, host.
    2) Added custom activity posts for custom member types? E.g businesses can post special discounts, consumers can post reviews, hosts can publish events.
    3) Custom activity streams? E.g discount stream, reviews stream, events stream.

    If anyone have some advice and can point me in the right direction that would be very much appreciated.

    WordPress 4.3 “Billie” – theme: KLEO 3.0.8 – local installation

    #244347
    danbp
    Participant

    See this plugin, which is made for that:
    https://wordpress.org/plugins/buddypress-sitewide-activity-widget/

    WP’s comment widget is for main blog comments, not activity comments.

    3T_MJ
    Participant

    I’m a bit confused. Buddypress comments don’t shop up within Recent Comments Widgets. Only wordpress comments get displayed. I find this confusing. Is there a way to add Buddypress comments into the Recent omments widget? I would like to have all comments on my site displayed in one widget.

    #244338

    In reply to: Group Post support

    danbp
    Participant

    BuddyPress is a plugin dedicated to members, not blogs. On a multisite install, each member can get his separate blog, without limitation. These member blogs are then refrenced on a blog directory. An each membrer profile will show a blog directory with that member’s blog(s).

    Groups is a component to group members, not blogs. If you need a group blog, instead or in addition of individual member blogs, you can use BuddyPress Groupblog. Such blog will be for all group members and each group can have only one blog. But each group member can have his own blog. In this case, the network will have a main blog, group blogs and individual blogs.

    Whatever solution you use, a blog is always part of WordPress and will work exactly like the main site blog where you installed BuddyPress.
    This means that it’s the responsability of each member with a blog to admin his blog, even if the main site admin has priority and can allow/disallow plugins and themes. Usually disallowed, so members can only use what main site admin decided they can use.

    Enhancement can be asked on Trac. Read here about user participation and contribution to BuddyPress.

    Participate and Contribute

    #244332

    Topic: Group Post support

    in group forum Requests & Feedback
    Venutius
    Moderator

    Can I ask that the wordpress blogs be better integrated into the gorups please? I know there are a few plugins that perform some of these features but these either do not work of only serve as window dressing.

    The kinds of features needed should integrate the blog with the group security, so for example blogs assigned to private groups should only be seen by members of that group, similarly blogs assigned to public groups should have an option to only display to members of that group or to be publicly available.

    Similarly comments on those blogs should also fit with the security under which the the blog was created.

    There should be a blog button within the group in order to see all blogs assigned to that group, also an option for a “My group blogs” button that allows the user to view their own blogs within that group.

    An additional feature would be the ability for the group to structure their blogs into categories and have a button to browse the group blogs based on categories, possibly a group specific category widget.

    Wordpress is such a feature rich blogging platform it seems a shame that these features cannot be easily translated to Buddypress groups.

    #244331
    thenetking
    Participant

    Omg I just had a whole wall of text written up and while researching a link from earlier I found this:

    https://gist.github.com/jonasnick/6125869

    and it made my comments show up in activity, hopefully it’s what others need. Why I had to fight with buddypress and search the net for hours to make wordpress comments work is beyond me. I still don’t know if it’s supposed to out of the box or not, which I’ve tested.

    #244318

    In reply to: Fatal error

    djsteveb
    Participant

    @collinkemp – in this kind of situation I either ftp in or get to cpanel file manager.. either download a copy of your wp-content folder with http://ftp.. or make a zip / compressed folder of your wp-content folder to have a backup.

    Then go into your wp-content/plugins/
    – delete rtmedia err “buddypress-media” folder. Check if site comes back.
    – if not start deleting other plugins and checking.. and or
    – delete the non-default themes your have in you wp-content/themes folder

    This should get you back to basic wordpress and buddypress and default theme – then you should be able to get into your wp-admin section and go to appearance – themes and select one of the defaults..

    you may figure out what the hiccup was during the delete and check process.

    sometimes when my rtmedia updates I have to go into permalinks – change them, save, then change them back and save again.. don’t know why, but 50% of the time rtmedia updates causes a bunch of my static “pages” to be “404 not found” and the permalinks change then change back and save fixes it.. it’s a weird bloated plugin.. but glad it’s here.

    developer
    Participant

    want to add and validate captcha on comment and create group form in buddypress
    i am currently using the latest version of wordpress and buddypress with default theme
    as i mention i want to place a captcha on comment and create a group form of buddypress which is done but only part is pending that is validation part
    if user click on post button or replay to the comment then a custom function call and checks the captcha entered is valid or not
    same thing i want in create a group form
    all i want is hooks and how to implement them on both forms
    anyone?

    #244305
    danbp
    Participant

    Afaik there is nothing out to do this.

    As start point, this snippet which let you hide a profile by user_id. Add it to bp-custom.php

    
    function bpfr_hide_user_profile() {
    global $bp; 
    // hide user_id 35
    if(bp_is_profile && $bp->displayed_user->id == 35 && $bp->loggedin_user->id != 35) :
       wp_redirect( home_url() );
       exit;
    endif;
    }
    add_action( 'wp', 'bpfr_hide_user_profile', 1 );

    Also, from here
    https://buddypress.org/support/topic/temporarily-blocking-a-user-while-keeping-their-datanetwork/
    https://wordpress.org/plugins/buddypress-verified/

    danbp
    Participant

    I’m wondering what is a username for you.

    WP register only a user by username (aka pseudonym), email and password. BP add a Name field in which you can add anything: username, first or lastname. In the user table, there is also display_name, wich is the combination of first and last name from a WP user profile, before BuddyPress was installed or if you allow your users to enter the dashboard, and they start to play with their profile settings. IMHO, it’s better they haven’t that access when BP is activated. 👮

    When on the members directory, you (connected or not) can search a member by using his username.

    If you use WP’s site search from toolbar or the search widget (same thing), it doesn’t work, as members are not post types… 👣

    For now, i’m unsure what you want to fetch. Do you mean display_name ?

    All search forms available in BP are contextualized, as @henrywright expected.

    A BP class can be extended, a core function with a filter can be extended. You simply add your own to it.
    In other cases, like for bp_core_action_search_site function (in bp-core-classes.php)
    there is an action and a filter. Wow. 💪

    You can rewrite the whole function and use the action hook or only change a part of it by using the filter.

    remove_action( 'bp_init', 'bp_core_action_search_site', 7 );
    function my_custom_core_action_search_site() {
       bla bla bla....
    }
    add_action( 'bp_init', 'my_custom_core_action_search_site', 7 );

    or
    add_filter( 'filter_name', function_name');

    Theorie here:
    https://buddypress.org/support/topic/how-to-override-core-function/

    But before hacking to deep, read here:

    Members Loop

    Maybe you could find some interesting things about include or search_tems options. 👀

    If all this is too much for you, consider this plugin:
    https://wordpress.org/plugins/buddypress-global-search/

    @prabin04, @henrywright
    🚧 i’m really not an expert in matter of BP search, but thank you for your consideration.

Viewing 25 results - 7,751 through 7,775 (of 32,677 total)
Skip to toolbar