Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 17,201 through 17,225 (of 68,985 total)
  • Author
    Search Results
  • #179800
    modemlooper
    Moderator

    BuddyPress replaces the_content of page.php with BP html. You can get a lot of style customization with simply adding extra CSS.

    #179788
    colabsadmin
    Participant

    I found bp_notifications_get_registered_components() which will bring back an array “of component names that are currently active and have registered Notifications callbacks”.

    Updated code

    
    function qd_notifications_filter_form() {
    	// Setup local variables
    	$components   = bp_notifications_get_registered_components();
    	$selected = '';
    	
    
    	// Check for a filter
    	if ( !empty( $_REQUEST['s'] ) ) {
    		if ( in_array( $_REQUEST['s'], $components ) ) {
    			$selected = $_REQUEST['s'];
    		}
    	} ?>
    
    	<form action="" method="get" id="notifications-filter">
    		<label for="notifications-filter-list"><?php esc_html_e( 'Filter By:', 'buddypress' ); ?></label>
    
    		<select id="notifications-filter-list" name="s" onchange="this.form.submit();">
            	<option value="" <?php selected( $selected, '' ); ?>><?php _e( 'All', 'buddypress' ); ?></option>
                <?php
                foreach ($components as $component) {
                ?>
                	<option value="<?php echo $component; ?>" <?php selected( $selected, $component ); ?>><?php _e( $component, 'buddypress' ); ?></option>
                <?php
                }
    			?>
    			
    		</select>
    
    		<noscript>
    			<input id="submit" type="submit" name="form-submit" class="submit" value="<?php _e( 'Go', 'buddypress' ); ?>" />
    		</noscript>
    	</form>
    
    <?php
    }
    

    Still not perfect, but better.

    #179786

    In reply to: Permalink Structure

    mcpeanut
    Participant

    @henrywright yeah no worries i will keep you informed too, im going for the xeon straight off so will gladly let you know how it fairs in a real buddypress environment as i will also be launching my site next month as soon as ive configured my new server etc.

    #179784
    colabsadmin
    Participant

    I’ve been playing around with the filtering aspect. Turns out Buddypress has a filter built in, so all you need to do is add a form (dropdown) to use it. I haven’t fully tested this but seems to work. I need a way to determine all possible notification component names and actions so it will autopopulate the dropdown when new plugins use notifications.

    I copied /plugins/buddypress/bp-template/members/single/notifications.php to my child theme and added the following right below the bp_notifications_sort_order_form call

    <li id="members-filter-select" class="last filter">
    	<?php qd_notifications_filter_form(); ?>
    </li>

    Then in my functions.php file, I added the dropdown code (I basically stole this from the code that generates the sort by date dropdown.

    
    function qd_notifications_filter_form() {
    
    	// Setup local variables
            // Need to figure out a way to autopopulate this array
    	$searchterms   = array( 'new_at_mention', 'bbp_new_reply','new_message','friendship_accepted','friendship_request','group_invite','localgroupnotifier','ac_notifier' );
    	$selected = '';
    
    	// Check for a custom sort_order
    	if ( !empty( $_REQUEST['s'] ) ) {
    		if ( in_array( $_REQUEST['s'], $searchterms ) ) {
    			$selected = $_REQUEST['s'];
    		}
    	} ?>
    
    	<form action="" method="get" id="notifications-filter">
    		<label for="notifications-filter-list"><?php esc_html_e( 'Filter By:', 'buddypress' ); ?></label>
    
    // need to loop through this instead of hardcoding the options.
    		<select id="notifications-filter-list" name="s" onchange="this.form.submit();">
            	<option value="" <?php selected( $selected, '' ); ?>><?php _e( 'All', 'buddypress' ); ?></option>
    			<option value="new_at_mention" <?php selected( $selected, 'new_at_mention' ); ?>><?php _e( 'Mentions', 'buddypress' ); ?></option>
    			<option value="bbp_new_reply"  <?php selected( $selected, 'bbp_new_reply'  ); ?>><?php _e( 'Forums', 'buddypress' ); ?></option>
                <option value="new_message"  <?php selected( $selected, 'new_message'  ); ?>><?php _e( 'Messages', 'buddypress' ); ?></option>
                <option value="ac_notifier"  <?php selected( $selected, 'ac_notifier'  ); ?>><?php _e( 'Activity', 'buddypress' ); ?></option>
                <option value="localgroupnotifier"  <?php selected( $selected, 'localgroupnotifier'  ); ?>><?php _e( 'Groups', 'buddypress' ); ?></option>
                <option value="friendship_accepted"  <?php selected( $selected, 'friendship_accepted'  ); ?>><?php _e( 'Friend Accepts', 'buddypress' ); ?></option>
                <option value="friendship_request"  <?php selected( $selected, 'friendship_request'  ); ?>><?php _e( 'Friend Requests', 'buddypress' ); ?></option>
    		</select>
    
    		<noscript>
    			<input id="submit" type="submit" name="form-submit" class="submit" value="<?php _e( 'Go', 'buddypress' ); ?>" />
    		</noscript>
    	</form>
    
    <?php
    }
    
    matthew.hout
    Participant

    @aces @mcpeanut I don’t know what happened, but I re-installed BuddyPress and its now there in Appearance > Menus.

    Thanks!
    All is good for now-

    aces
    Participant

    @matthewhout

    At the very top of the page below the admin bar on the right you should have a ‘Screen Options’ button – next to ‘Help’.

    Have you got ‘Buddypress’ ticked in the ‘show on screen’ section?

    matthew.hout
    Participant

    I’m trying to create a menu only accessible to those who log-in to the website.

    Before (on window server) when I go to appearance > menu I had Pages, BuddyPress, Links, Categories. When I selected BuddyPress it gave me options to click on the pages I wanted my log-in folks to only see.

    how do I get the back in to Appearance > Menu?

    mcpeanut
    Participant

    lol im confused? what you mean? buddypress in Appearance > Menus?

    are you trying to create a custom menu in wordpress? all you have to do is name the menu then on the left handside tick the pages you want to appear in this menu, then under the menu you have created you will see these options.

    Menu Settings

    Auto add pages
    Automatically add new top-level pages to this menu

    Theme locations
    Primary Menu

    Tick primary menu option then save and your menu will appear how you want it

    matthew.hout
    Participant

    Think I’m trying to hard to accomplish what I want out of this website.


    @mcpeanut
    yes, the issue was resolved with the window server.

    I switch server and re-installed WP 3.8.1 and re-installed BuddyPress 1.9.2. For some odd reason: I do not have BuddyPress in Appearance > Menus

    I went through to be sure my settings are as I want them: all good there. Just need the Buddypress option in the Menu.

    M

    #179771
    mcpeanut
    Participant

    @henrywright i agree with you on that definitely, but adding some functionality that some plugins offer as built into buddypress would also help because your adding less weight from these plugins too no?

    #179770

    In reply to: Permalink Structure

    Henry Wright
    Moderator

    I’m actually about to move over to my 1&1 VPS so will try to report back what I find. I’m pretty sure I’ve used root profiles on it before without problems.

    You might have better luck with root profiles when BP adopts WP-style rewrite rules in v2.1. You’ll be able to put any component you like in the root. It was scheduled for 2.0 but there’s lots of work involved. Check out this ticket for the latest updates:

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

    #179767

    In reply to: Permalink Structure

    mcpeanut
    Participant

    @henrywright nope nothing that would effect it, because i can even install a fresh wordpress and buddypress install then create a new bp-custom.php and add the code and they still wont work, this has been the same way for 12 months and on 2 different linux servers, the first one was on shared hosting with hostgator so should of been no problem with config of server, and ive now just upgraded to a 1&1 vps, and the same thing applies, next month im upgrading to full dedicated for launch and would hope to have root profiles activated for this time, but like i said im hitting a brick wall with this code??

    oh and by the way i dont use multisite

    #179766

    In reply to: Permalink Structure

    Henry Wright
    Moderator

    @mcpeanut humm, that’s interesting. I’ve never had any problems getting root profiles to work. Are you doing anything else special inside bp-custom?

    On a slightly different note, but still related, you might find this page of some use:

    Changing Internal Configuration Settings

    #179761

    In reply to: Permalink Structure

    mcpeanut
    Participant

    @henrywright yo henry, this confuses me because this option never works for me on any of my buddypress installs?

    define ( ‘BP_ENABLE_ROOT_PROFILES’, true );

    ive put this in bp-custom plenty of times but it never actually does anything all my links remain the same, yes my bp-custom.php is in my plugins folder and all the other tweaks in there work fine?

    so why doesnt this work for me?

    doesnt even work when i add it directly to my wp-config.php either btw
    this is also the case on fresh installs of wordpress with default themes, never can seem to get users to show as root??

    #179760
    mcpeanut
    Participant

    @matthewhout Hmm, buddypress settings are located in the settings submenu in wordpress dashboard, make sure you turn on all the options you need in there, also make sure your pages are setup in there as you want them to, also dont forget to go to settings and permalinks too, and select which permalinks you prefare, hopefully everything should be fine for you then, well if i understand correctly that the issues you where having was due to having a windows server and now you have changed to a linux server? i cant see there being any problems with a fresh install.

    joerob101
    Participant

    I failed to find a solution. But as the functionality wasnt critical I left it as it was.

    Genesis Connect is maintained for new versions of buddypress so if I were you I’d file a support ticket with the studiopress team and ask for their help.

    #179748
    theatereleven
    Participant

    Thanks! The book for sale on Amazon?

    I’d love to just call in the exact BuddyPress components I want to use. Is that possible? For theming, I’m a heavy custom post types and ACF guy – I like to be very specific in where everything is placed.

    Hoping BuddyPress allows this.

    Again, thanks for the response.

    #179747
    modemlooper
    Moderator

    If you know WordPress theming the book gets you up to speed with the extra functionality BuddyPress brings to templates.

    BuddyPress Theme Development

    #179746
    modemlooper
    Moderator

    No. The default them was deprecated. BuddyPress works with any well coded WordPress theme

    #179744
    matthew.hout
    Participant

    OKAY! @buddyboss @mcpeanut @ So here is what I need. I now have a linux server! YAY ME! I’m in the process of redoing everything as I did not back it up.

    I have buddypress installed the pages work. The issue I’m having now is:

    BuddyPress is not showing in Appearance / Menus (as it did before) where I could select which pages I want only logged in folks to see.

    I appreciate everyone’s else help.
    Matthew

    #179743

    In reply to: Custom email template

    sui_page
    Participant

    I’ve found an alternative solution but I’ve hit a bump again. Is there a way to allow the textarea to use links. Or better yet can we add a formatter bar(bold, italic, link, etc) to the message area of Buddypress?

    #179739
    Henry Wright
    Moderator

    @robg48 something else you could do is use a honeypot. An example is

    http://www.pixeljar.net/2012/09/19/eliminate-buddypress-spam-registrations/

    It works by adding a hidden field to your registration form. Users can’t see the field so will never complete it (it will always be blank). Spam bots, however, don’t view the page in the same way as users. They ‘see’ the page source so will always ‘see’ the hidden field and try to complete it.

    On registration form submission, if the hidden field is blank then we know it’s a genuine user trying to sign up. If the field is completed then we know it’s a spam bot and we can halt the registration. Hence, the name honeypot.

    #179718

    In reply to: Recommended Posts

    Henry Wright
    Moderator

    Take a look at BuddyPress Like

    https://wordpress.org/plugins/buddypress-like/

    It’s close to what you want. You can change the ‘like’ wording to ‘recommend’ easily via the WP dashboard.

    shanebp
    Moderator

    >to use the normal bp loop functions to return all potential results regardless of location, and then write a PHP function to apply the radius test.

    Don’t do that.

    Use the radius, etc test first to gather matching user ids.
    Then pass them to BP_User_Query, using the bp_pre_user_query_construct hook, so that you only have BP process the relevant ids.

    BP_User_Query

    aces
    Participant

    @matthewhout

    I think you may be running on a windows IIS server as your links are of the form http://www.hout.us/Hout.US/index.php/about/ I’m not sure, but I don’t think you are meant to have index.php in a URL –

    Also I think that capital letters in a URL are also invalid as maybe also is a dot between slashes ( in this probable context ) – ie the dot in: /Hout.US/

    Are you sure you have installed wordpress correctly with mod_rewrite or substitute.

    Does the suggestions on https://buddypress.org/support/topic/404-error-when-using-toolbaradminbar/ help?

    Unfortunately I can’t be of more help as although I run windows I use an apache server, But others may have a better idea….

Viewing 25 results - 17,201 through 17,225 (of 68,985 total)
Skip to toolbar