Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] members index-directory.php

  • @matzze

    Participant

    Hi there, – a weird thing: i tried out a custom page in my theme as described in

    http://codex.buddypress.org/developer/theme-development/template-hierarchy/

    So:

    buddypress/activity/index-directory.php

    works fine, but

    buddypress/members/index-directory.php

    isnt working, the file index-directory.php isnt even included, its just the standard page.php.

    Any suggestions what I’m doing wrong?

    thx a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @hnla

    Participant

    Confirmed!

    Minor bug or typo in the implementation of the hierarchy with directory incorrectly pointing to /single/
    If your comfortable editing files you could edit core file bp-members-screens.php and change the highlighted line at approx 333:

    	public function directory_template_hierarchy( $templates ) {
    		// Setup our templates based on priority
    		$new_templates = apply_filters( 'bp_template_hierarchy_members_directory', array(
    			'members/single/index-directory.php'
    		) );

    You’re looking at the path ‘members/index-directory.php’ and need to remove the ‘single/’ from that path.

    Only do this having made a backup copy of the file to revert to and it’s a short term fix that will be overwritten when correction comitted to core – I’ll raise a ticket for it.

    @hnla

    Participant

    Edit:

    Sigh it’s been fixed in trunk already, so it will be included in next point release of BP.

    @matzze

    Participant

    Ah, thank you, yes this works for me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] members index-directory.php’ is closed to new replies.
Skip to toolbar