Info
- 7 posts
- 4 voices
- Started 2 years ago by moshe100
- Latest reply from yaysloths
- This topic is not resolved
only one forum - please help
-
- Posted 2 years ago #
Hi Everyone
bbPress is great. I love it and I appreciate every bit of effort put into it.
I am setting a new site which has only one, single forum in it.
My goal is to have the main/home page show the same view as if I would select a specific forum from a multiple-forums website (stickies on top, marked in color....)
My first idea was to replace front-page.php with forum.php (copy & rename), and add the following code:
<?php $forum_id="1"; ?> right after <?php bb_get_header(); ?>.This does create the appearance of a single forum, but in a different presentation. for example, sticky topics are sorted with all other topics by date, and are not forced to the first lines in the topics table.
I would really really really appreciate any help or directions I can get.
Thanks a lot !
Moshe.
-
- Posted 2 years ago #
it took me a while to achieve this but it wasn't too tough. see here:
http://www.copsandrobbers.net/messageboard/
i stripped most of the content out of front-page.php and put in an immediate redirect to forum.php
try it - it works fine for me, no complaints from users either.
-
- Posted 2 years ago #
Hi Circuit
Thank you so much for your reply.
May I ask for some coding directions?
What does your front-page.php look like now?
Will you be willing to email it to me (moshe100s at gmail dot com) or to post it in reply?
Thanks again !
Moshe
-
- Posted 2 years ago #
Hi Again
Can someone kindly provide an example how to immediately redirect to a specific forum from the front page?
I would really appreciate any help here !!!
Thanks,
Moshe
-
- Posted 2 years ago #
I, too, would find an example of that page code phenomenally helpful...
-
- Posted 2 years ago #
You could just replace the contents of your template's front-page.php with this code to redirect the visitor:
<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com/forums/forum-slug"); exit; ?>Just change
http://www.example.com/forums/forum-slugto the URL where you want people to end up. -
- Posted 2 years ago #
Holy crap! It's like magic! That is fantastic. Thanks!
-
You must log in to post.