Forum Replies Created
In reply to: How return Login Page for Private Forum request?
agree to @FionaTreveil
Plug in is not that usefull for a simple case (@robin-w):
someone who is logged in shares the URL of the restricted page (forum/topic/reply) and sends this URL to someone who is not innitially logged and lands in a specific page instead of the forum-archive-page. And so, instead of showing some page ‘restricted_content’ as ur suggested plug-in would, the bbpress redirects user to 404.
I would suggest that a new page is needed in bbpress plug in for such a case and the 404 should not be edited.
Problem is the same, but design is from WordPress.. and the website now is on my local mashine.
Here is the php of created bbpress.php
Code is really simple:
<?php get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php twentyeleven_content_nav( 'nav-below' ); ?> <?php endif; ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
But the two pages look different..
Looking at html I have noticed, that newly created page has a different body class assigned and so is not recognized as bbpress forum archive page, but rather as a page..
<body class="page page-id-902 page-template page-template-bbpress page-template-bbpress-php custom-background single-author singular two-column left-sidebar">
The breadcrubs issue I have noticed just when I read this..
As that I guess will get fixed after the the page will be understood as forum archive page..
From the link it seems the problem was fixed… How?
I have the same issue while using the child theme of ‘twentyeleven’.
That 3rd point in ‘Creating a Forum Page’ clearly states what is not necessary… So what should be done instead ? Especially while my created page as here mentioned ‘Chat’ is not following the bbpress.php and so not recognized as bbpress page.
Thanks, I checked that page before, that is why I have bbpress.php file.
Just for the sake of interested I again tried, copied the code from given link instead of using get_template_part, however no difference.
Constructed page is then visualized as default template, streched in full extent, without any sidebar..
One more thing:
I see that the
body classassigned to that constructed page is like for a simple post, has tags like
page-template-bbress.. while the automatically created forum page has
Does it make sense, should I try to change body class??