Skip Navigation

[Resolved] Can’t create layout for bbPress user profile

This thread is resolved. Here is a description of the problem and solution.

Problem:
The issue here is that the user wanted to to use our Layouts plugin to create a custom layout for the BBpress user profile page.

Solution:
Unfortunately this isn't possible as BBpress doesn't uses a page template to do its profile pages but rather has its own internal template that is loaded when the page is visited. So we are not able to customize this page with our Toolset plugins.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 9 replies, has 2 voices.

Last updated by Shane 6 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#623676
bbp-user-profile-2.PNG
bbp-user-profile-1.PNG

I'm using Toolset (inluding layouts) together with bbpress. Unfortunately it's not possible to display the forum user profiles. There is no obvous way to assign a layout. When asked to create a layout in the frontent (see screenshot), an error message appears saying 'invalid parameters' (see screenshot 2).

User profile url: /forums/users/myuser/

After clicking 'Create a new layout for' (type name is missing here because it doesn't seem to be a type) it navigates to:

/wp-admin/admin.php?page=dd_layouts_create_auto&type&class=page&post&_wpnonce=0503960bad

where the error message 'invalid parameters' is displayed (second screenshot).

What's the proper way to get the forum user profile output like in the wp-types forum? Ideally I'd like to enhance that view to allow general profile editing actions, so the general wordpress user profile and forum specific details can be seen in one page.

Thanks,
Sebastian

#623795

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebastian,

Thank you for contacting our support forum.

I suspect that bb forums uses its own templating to do the forum pages.

However I can still take a look at this for you to see if I can find anything to give you a better response.

The private fields will be enabled for you to provide me with the credentials.

Also I need a link to the page that you want to apply the layout to.

Thanks,
Shane

#623814

Hi Shane,

the Toolset support forum seems to use some clone version of bbPress, so the exact same thing should be fixed here (as long as this site is built using Toolset layouts at all?)

https://toolset.com/de/forums/

I'm not sure if a single page is required, as every user get's his own page like here:
https://toolset.com/forums/users/shane-c/
https://toolset.com/forums/users/sebastiank-3/

But I can create one anyway.

Credentials will be provided shortly in a private message, thanks!
Sebastian

PS: Please enable private send once more...

#623816

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebastian,

Here are the private fields.

Our forum is a highly customized version of bb forums so our developers might have created even a custom bb template. I'm not too familiar with the forum plugin's templating so once I'm able to login i'll be able to say what the issue is.

Thanks,
Shane

#623821

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebastian,

So the issue here is that you're not able to set a layout for the user's profile page but rather this needs to be customized using php.

However the main issue as to the theme asking you to assign a layout is because the theme doesn't seem to have a default option if Layouts or Views can't set a template.

I'll be reporting this to our development team so that this can be improved, I'll report to you any news on this.

Thanks,
Shane

#623825

Thank you, I hope they'll come up with a solution soon 🙂

In the meantime it might help to be able to configure fallback behavior (see other ticket https://toolset.com/de/forums/topic/cant-change-option-what-to-display-if-no-layout-is-assigned-to-content/) - any news on that? Because I'm using brand new toolset starter theme (child) the theme should be okay right?

Thanks,
Sebastian

#623827

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebatian,

Yes this is because of the theme. I've also reported this to our 2nd tier supporters as well.

#624298

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebastian,

I've got some news from our 2nd tier supporters.

So the first issue is that our Toolset Starter theme is meant to work with our Layouts and Views plugin, so if you're working with this theme and the plugins then its assumed that you will be fully customizing the site.

I would recommend using a theme that doesn't force the use of Layouts or Views once its active. As expressed before the BB forums templates are hardcoded and we can't adjust them using our Views or Layouts plugin, hence why the profile page isn't showing up because its expecting a template from views or layouts.

Essentially if you want to style the profile pages it would need to be hardcoded.

Thanks,
Shane

#624319

Hi Shane,

thanks for your reply. So is there a way to override the 'enforcing the use of Layouts or Views once its active' for a specific page? A filter/hook or function override, that would help.

Thanks,
Sebastian

#624623

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Sebastian,

What you can do is to try the instructions in the link below.
https://toolset.com/forums/topic/buddypress-pages-not-using-layouts/

Please let me know if this helps.
Thanks,
Shane