Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 6,676 through 6,700 (of 32,561 total)
  • Author
    Search Results
  • #246596

    In reply to: No Profile Tabs

    r-a-y
    Keymaster

    Is that tagdiv? There is two different Newsmag themes. I am using tagdiv.

    NewsMag by TagDiv is a premium theme, which we do not have access to. Please list details when you are posting a support thread next time.

    The version I tested of “NewsMag” is available from the wordpress.org theme repository:

    NewsMag

    #246595
    Henry Wright
    Moderator

    I’ve reported it to the theme developer

    Good idea. Hopefully they’ll be able to provide a fix!

    #246588

    In reply to: No Profile Tabs

    Michael Bryner
    Participant

    Sounds to me that you don’t care if the theme works for it or not. Accounting for pretty much all themes is part of the reason to have the plugin in first place. If I can’t use it with all features then I will just not use it. Pointless to bother with something that is broken.

    #246587

    In reply to: No Profile Tabs

    Michael Bryner
    Participant

    Is that tagdiv? There is two different Newsmag themes. I am using tagdiv.

    #246586

    In reply to: No Profile Tabs

    Michael Bryner
    Participant

    It only shows avatar and cover photo space with no tabs and activity on profile page only. Groups is just about the same. No original tabs just home, forum, members. send invites, manage tabs. As long as this plugin has been out since 2008 its still does not work with all themes? I am so tempted to just give up on it. It looks outdated still and the only thing you add is cover photos and it does not even work right.

    The rest of the other plugins that compare and look a heck of a lot better but to get the features of this plugin you have to pay their outrageous prices for extensions. I might just be better off with no community software for social network and just use bbPress only.

    #246585

    In reply to: No Profile Tabs

    r-a-y
    Keymaster

    I just installed NewsMag and the profile tabs and cover image feature look fine on an unmodified install:

    Screenshot of NewsMag on BuddyPress 2.4.0

    Again, we cannot account for every single variant of every available theme out there. If you have some CSS knowledge, you’ll have to adjust it yourself.

    #246584

    In reply to: No Profile Tabs

    Michael Bryner
    Participant

    Newsmag one of the most popular themes and it never did that before v2.4. Of course v2.3.5 did not have cover photos either. Even lost tabs on Groups too. I am keeping it disabled.

    #246583

    In reply to: No Profile Tabs

    r-a-y
    Keymaster

    What theme are you using? We try to be compatible with every theme, but it is hard to account for every single theme that is available out there.

    Does the profile tabs and cover image feature show up when you switch to a WordPress theme like Twenty Sixteen?

    #246563
    danbp
    Participant

    Hi @antipole,

    from non-epert to non-expert, i’ll try to explain what i understood from your previous request…

    You want to show a profile filed value on the member directory and this value should be searcheable in the same way as on a profile. Right ?

    On members directory, we need a field name, a field value, a user ID and a search link.

    This line of code will fetch the correct field, associated to the user ID:
    $value = xprofile_get_field_data('Ovni model', bp_get_member_user_id() ) )

    This line will build the url for that value
    $search_url = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );

    And this line will build the output. I use a div with a class name. I recommand you keep it as is and add your custom style from within your child-theme style.css. Inline style is not necessary here.
    $clickable = '<div class="click_dir"><a href="' . esc_url( $search_url ) . '" rel="nofollow">' . $value . '</a></div>';

    And this generate the output: echo $clickable;

    And finally, we add our custom filter to the existing by using add_fliter( $filter_name, $my_filter):
    add_filter ( 'bp_directory_members_item', 'make_directory_profile_field_searchable' );

    That’s it.

    My snippet let you add such a clickable field. The field name is “ovni model”.
    The code is first calling that field, and before the final output on members directory, we add a clickable search url. This is a strictly BP way to add an url to a (field)value. This snippet doesn’t need another function to work.

    The field, from a profile perspective, will be Name Ovni model: value flying saucer. The link structure will be your-site/members/username/?s=flying_saucer.

    The snippet use the same structure on members directory and you’ll get the same result.
    Guess you don’t need the additionnal function add_info_to_members_loop.

    Try first and struggle after, it’s better for your karma ! 😉

    #246521
    LeeBinder
    Participant

    Thank you, Shane. We can not switch the theme in the life site w/o a lot of reformatting.. Could try in the backup site, just for testing to figure out if the culprit might indeed be the theme..

    A different approach would make us happier, though .. hmm..

    #246517

    In reply to: Disqus Integration

    shanebp
    Moderator

    Is there a better looking bp comments plugin with some better styling?

    I’m not aware of any. You could adjust or add css to change the styling.

    …the bp activity stream will not pick up these comments.

    You’ll need to use bp_actvity_add() to do that.
    Your theme may have a hook you can use – ask them.

    #246516

    In reply to: Disqus Integration

    jrunfitpro
    Participant

    Thank you @shanebp . Is there a better looking bp comments plugin with some better styling? Also, my theme Optimize Press 2 has custom page layouts for lessons. The only problem, the bp activity stream will not pick up these comments.

    Any thoughts on a solution there?

    #246507
    danbp
    Participant

    @gurusurfer,

    this need a template overload.

    Make first a child-theme.
    Copy notifications-loop.php from bp-templates/bp-legacy/buddypress/members/single/notifications/ to
    /child-theme/buddypress/members/single/notifications/notifications-loop.php

    At the begin of the file (line 1) copy/paste <?php bp_get_template_part( 'activity/post-form' ); ?>. Don’t remove php tags.

    Save. You’re done.

    #246500
    danbp
    Participant

    Hi @ma3ry,

    unable to visit the indicated page due to redirection… BP’s xProfile text box contains are autolinked by default for the 5 first words.
    This is handy when you use a field called city for example. The city name is autolinked and let each user click on it to find other who may entered the same name.

    Of course, an about me box with a long description, which several autolinked words has less interrest. Fortunately, you can deactivate xprofile autolinking.
    Two options for this: all or selected.

    Here 3 snippets. The first can be used if you want to completely remove autolink from all field values.
    The second is a new filter to let you choose the field(s) you want to deactivate. This need two snippet. The first to rewrite a filter and the second to remove / replace the existing BP filter.

    Add the snippet to bp-custom.php.

    // remove any autolink from profile
    function remove_xprofile_links() {
    remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' ); 
    
    // custom filter to selectively remove autolink
    function my_xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox' ) {
    
        // Access the field you are going to display value.
        global $field;
    
        // In this array you write the ids (separated by comma) of the fields you want to hide the link.
        $excluded_field_ids = array(2);
    
        // If the id of this $field is in the array, we return the value only and not the link.
        if (in_array($field->id, $excluded_field_ids))
    	return $field_value;
    	
    	if ( 'datebox' == $field_type )
    	return $field_value;
    	
    	if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) )
    	return $field_value;
    	
    	$values = explode( ',', $field_value );
    	
    	if ( !empty( $values ) ) {
    		foreach ( (array) $values as $value ) {
    			$value = trim( $value );
    			
    			// If the value is a URL, skip it and just make it clickable.
    			if ( preg_match( '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', $value ) ) {
    				$new_values[] = make_clickable( $value );
    				
    				// Is not clickable
    			} else {
    				
    				// More than 5 spaces
    				if ( count( explode( ' ', $value ) ) > 5 ) {
    					$new_values[] = $value;
    					
    					// Less than 5 spaces
    				} else {
    					$search_url   = add_query_arg( array( 's' => urlencode( $value ) ), bp_get_members_directory_permalink() );
    					$new_values[] = '<a href="' . $search_url . '" rel="nofollow">' . $value . '</a>';
    				}
    			}
    		}
    		
    		$values = implode( ', ', $new_values );
    	}
    	
    	return $values;
    }
    
    /**
     * We remove the buddypress filter and add our custom filter.
     */
    function remove_xprofile_links() {
        // Remove the old filter.
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
        // Add your custom filter.
        add_filter( 'bp_get_the_profile_field_value', 'my_xprofile_filter_link_profile_data', 9, 2);
    }
    add_action('bp_setup_globals', 'remove_xprofile_links');
    #246487
    Henry Wright
    Moderator

    There’s 2 ways of doing this.

    1. You could modify the members-loop template (see the BuddyPress Template Hierarchy for details on how that’s done). See here. You would just add bp_member_profile_data( 'field=the field name here' ); to the template.

    2. Add this to your theme’s functions.php file:

    function add_info_to_members_loop() {
        echo bp_get_member_profile_data( 'field=the field name here' );
    }
    add_action( 'bp_directory_members_item', 'add_info_to_members_loop' );
    #246481
    jtorral
    Participant

    So I partially fixed it but I think I need buddypress input for the following.

    Here is what I did

    I created a custom template from a copy of the page.php in the themes directory. Inside of that template was a call to comments_template(); which I removed from the custom template.

    I then changed the “Members” page to use the new template with a name of “No Comments”

    Now when I load http://jorgetorralba.com/members/ I get the desired affect without the comments and ping backs.

    However, if I go one level deeper and click on a user name such as

    http://jorgetorralba.com/members/cjtorralba/

    The comments reappear. Same on Activity page even after changing activity to use the new custom templates.

    Any idea ???

    #246478
    r-a-y
    Keymaster

    As shanebp suggests, the problem has something to do with your theme.

    Your theme appears to be a premium theme, so we cannot debug this.

    Also, try switching to another theme temporarily to see if the problem is specific to just that theme.

    #246476
    shanebp
    Moderator

    Something in your theme is adding a call to the comments template.
    Look in the code for something like: comments_template( '', true );

    #246472
    shanebp
    Moderator

    The issue is being caused by something in your theme or some other plugin.

    Do you have debug turned on in wp-config.php ?
    define('WP_DEBUG', true);

    If so, change it to:
    define('WP_DEBUG', false);

    #246460

    In reply to: Move Activity Stream

    erich199
    Participant

    Ok, I had to hunt for the code in the default buddypress themes but I found it.

    Two things I need to do now:

    1.) Make it so the post form will work on another user’s profile

    2.) Add pagination so the user stream on the profile page doesn’t make someone scroll down a mile to see post.

    #246451
    erich199
    Participant

    @sundev

    It should be located in
    /wp-content/plugins/bbpress/templates/default/bbpress/

    After you copy this file, create a new folder inside of your current theme folder and call it “bbpress”

    Place that forum-loop.php file inside of that folder.

    Make your changes to that file.

    #246432
    ikanaspencer
    Participant

    Twenty Fifteen Theme and only BuddyPress activated and I still get that message.

    … Disable BuddyPress the error is gone. Custom Taxonomy and Post types were made via the functions.php, as of my testing with the Twenty Fifteen these customizations were not enabled at all. Now I think I did forget to mention this is a multisite setup with only 1 site currently.

    Can you give me some clues of what hooks might have been used? I can do some investigating.

    #246416

    In reply to: Custom Hook Help

    Henry Wright
    Moderator

    Can someone confirm if this code will ever be overwritten by an update to WordPress or BuddyPress?

    Updating WordPress or BuddyPress won’t overwrite anything you have added to your theme, but updating your theme will do. The way around this is to create a Child Theme.

    #246414

    In reply to: Custom Hook Help

    happymunkee
    Participant

    Thanks for your responses. Plugging in the same code into functions.php inside the theme itself seems to resolve the problem. I put the snippet in wp-content/themes/klein/functions.php. Can someone confirm if this code will ever be overwritten by an update to WordPress or BuddyPress? I know updating BP will overwrite the register.php page.

    #246410
    shanebp
    Moderator

    It may be a theme issue.
    To confirm – try switching to a standard WP theme like 2015 and then test message sending.

Viewing 25 results - 6,676 through 6,700 (of 32,561 total)
Skip to toolbar