BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Use Member page as template

Viewing 10 posts - 1 through 10 (of 10 total)
  • Question

    #35572
    @style960

    Is it possible to use the member page as a custom page template? I thought this would be as simple as copying buddypress>members>single>member-header.php. Maybe not?

    Thanks,
    Paul.

    Answers

    #35576

    Alyssa
    Participant
    @alyssa-buddyboss

    @style960 you can insert the member loop on any page. But copying the template just doesn’t seem to be the thing you want to do. What are you trying to do BTW?

    #35583
    @style960

    @tjchester I want pages to have the base layout as the single member page. Except I’ll add my own menu in the template to replace Profile, Notifications, Messages etc. Don’t want the user name either.

    #35608

    Alyssa
    Participant
    @alyssa-buddyboss

    @style960 I would not recommend that. The members pages are a complex compilation of several components and many more functions. You would be better off reproducing the layout via a custom page template and use custom CSS styling to make it appear similar to the members profile pages.

    #35647
    @style960

    @tjchester Yeah I’ve come to the same conclusion!

    #35677

    Alyssa
    Participant
    @alyssa-buddyboss

    🙂 I’ll leave this open in case you have more questions or need to bounce an idea.

    #38209

    @style960,

    did you manage to built a template? I want to do basically the same thing. I placed some code in the page to get the nice vertical and horizontal tabs (as on bp-member) on one of my non-bp pages but on mobile I want to get rid of the margin and padding settings that are default on page template. My conclusion was also to built a new template from scratch but if you have already done so… 🙂

    regards

    #38244
    @style960

    @haime I didn’t end up trying this no, I might revisit it at some point, I’m not sure at the moment to be honest.

    #38276

    @style960 I managed to replicate most of the member page with the following code in a normal wordpress page (inserted in text mode!), maybe something you can do also

    <div id="buddypress">
    <div id="item-nav">
    <div id="object-nav" class="item-list-tabs no-ajax">
    <ul>
    	<li id="clubinfo-algemeen-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/">Algemeen</a></li>
    	<li id="clubinfo-bestuur-li" class="curent selected"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/bestuur/">Bestuur</a></li>
    	<li id="clubinfo-lidmaatschap-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/lidmaatschap">Lid worden</a></li>
    	<li id="clubinfo-lessen-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/lessen">Lessen</a></li>
    	<li id="clubinfo-documenten-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/documenten">Documenten</a></li>
    	<li id="clubinfo-links-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/links">Links</a></li>
    	<li id="clubinfo-sponsor-li"><a id="clubinfo-activity" href="http://www.dewaaghalsjes.nl/club-informatie/sponsors">Sponsors</a></li>
    </ul>
    </div>
    </div><!-- #item-nav -->
    <div id="item-body">
    <div id="subnav" class="item-list-tabs no-ajax">
    <ul>
    	<li id="bestuur-list" class="selected"><a href="http://www.dewaaghalsjes.nl/club-informatie/bestuur/">Bestuur</a></li>
    	<li id="commisies-list"><a href="http://www.dewaaghalsjes.nl/club-informatie/bestuur/comissies">Comissies</a></li>
    </ul>
    </div>
    [bc_member name="mona" fields="rol,email,telefoon,info"]
    [bc_member name="barbara" fields="rol,email,telefoon,info"]
    [bc_member name="godelieve" fields="rol,email,telefoon,info"]
    [bc_member name="suiterwaal" fields="rol,email,telefoon,info"]
    [bc_member name="remco" fields="rol,email,telefoon,info"]
    </div><!-- #item-body -->
    
    </div><!-- #buddypress -->

    My next step is to separate this code into a template (to circumvent the article wrapper)

    #38332
    @style960

    @haime Thanks if I do revisit this, I’ll reference this thread.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The question ‘Use Member page as template’ is closed to new replies.