This is a forum!!!!!!! Not a CMS or something else……..
Why not just make a wordpress page? People would still be logged in to see it if you have an integrated installation.
bbolman,
thanks for the idea. I would probably prefer to do this. However, I have a few bbpress functions being called in the code on the page, and though I could probably dig about and find out how to replace it with wp code, it was not the most pleasant thought. I figured I’d just throw a page up on the bbpress side, and have it resolve at a myurl.com/directory/ as is common with wordpress. I found out how to take care of this…I achieved this by adding two lines in the .htaccess file…
RewriteRule ^contest/$ /forum/contest.php [L,QSA]
RewriteRule ^contest$ /forum/contest.php [L,QSA]
I’m not trying to start a battle here, but I think your response, Null, might be a bit short-sighted and aggressive. After all, if I feel my software needs a static page, that may just be what it in fact does need.
I agree with bbolman that this would probably be more efficiently handled by wordpress. However, since bbpress is still in it’s infancy, and it’s not integrated fully yet with wordpress, (this is my way of trying to sound like I’m not a completely right-brained individual), I think it’s fair to say that these decisions aren’t so cut and dried. Anyway, I appreciate the responses all the same, and will post any further findings here…
macwise..
if you are ok hacking the code.. create a page contest.php in the root forum folder
add require_once('./bb-load.php');
on the top of the page. and write whatever code you want in the page.. that should create a static page with bbpress functions..
as far as rewrite is concerned.. im not 100% sure but i think multiviews will automatically translate /contest.php
to /contest/
. test it and see.
Ok, this is the solution that worked for me. I did have to add the rewrite rule, as multiviews isn’t working on my server??? (I think I’m running on php4, is that why?) So, for others who want a wal-mart type bb build here’s a recap of what I did:
I created a page in my bbpress root called contest.php. Inside of that page I put:
<?php
require('./bb-load.php');
bb_load_template( 'contest.php' );
?>
I then created my contest.php page with the content I needed (the template)
The last thing I did was to put these two lines in my .htaccess file IN MY FORUM ROOT FOLDER, (not my wordpress root folder):
RewriteRule ^contest/$ /forum/contest.php [L,QSA]
RewriteRule ^contest$ /forum/contest.php [L,QSA]
This basically says that myurl.com/my/forum/directory/contest (without the trailing backslash)
and myurl.com/my/forum/directory/contest (with the trailing backslash)
will both point to the contest.php page in the root forum directory.
As so1o said, this last part in .htaccess may be unnecessary if you have multiviews enabled (if your .htaccess file in your FORUM directory has this line: “Options +MultiViews”). Maybe someone else can confirm/deny this, as my configuration is different.
Hope this helps someone else who needs some custom functionality out of bbpress.
it’s possible to make uniq title for each of custom pages?
Hi there
I’m not 100% sure how it would work on a manual basis. There is a plugin called bbPages (https://bbpress.org/plugins/topic/bbpages/) that will have support for “pretty permalinks” in the near future.
Some-one may have to take over the development of this plugin. It may happen in the next couple of months.
We use the bbpages plugin and simply do some url rewrites in htaccess to make the urls prettier.
About that – I’m not sure exactly how it is done.
I have two pages set up: FAQ and Rules. What do I need to add to the htaccess file, and which file do I use?
Not to worry – I did some research and found what I was looking for. Simply integrated it into the existing htaccess file – all is working just fine.