Working as a Page in my theme.
-
My URL is http://www.trashmedia.co.za.
I simply want to do two things:
1. Make BBPress look like my current theme, or use the same CSS.
2. Load BBpress as a Page, so that my Sidebar and navigation remains as is.
At this point, I can find info on making BBPress look like my theme, but I undertand almost none of it. I need it typed more simply. Also, I can’t find any info on making BBpress a Page.
Your help would be greatly appreciated.
-
1. U need to load wordpress function inside bbpress.
Put this inside config.php “require_once(‘/path/to/wp-blog-header.php’);”
2. Use wp template tag inside your bbpress template.
For example. Make a clean header.php and put “<?php get_header(); ?>”. Replace it with your bbpress-template header.php.
To make sure bbpress gonna look alike your wp static page. I suggest u try refer single.php or page.php inside your wp theme folder.
Here is my example. Using Kubrick page.php
//Start Header.php
<?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<div class=”post” id=”post-forum”>
<div class=”entry”>
//End Header.php
//Example item = front-page.php
//Start Footer.php
</div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
//End Footer.php
So everytime u load bbpress index.php you will get the same page like your static wp page.
3. Add some of bbpress css style inside your wp css file.
Im sure u not gonna use all bbpress style maybe only some of it. Maybe you can start copy bbpress style from this point “/* Front Page=================================== */” untill the end.
I dont know if this gonna help you but i try my best to keep it simple hope it gonna do some help.
Side note: to load bbpress as wp static page. Create new page, and set “post slug” = “bbpress folder”
Thanks, but I don’t understand what you’re saying
Can you try say it again, simpler? I don’t understand #2 onwards…
Fatal error: Call to undefined function: bloginfo() in /usr/www/users/trashm/wp-content/themes/comicpress/header.php on line 22
What is this? I get it when I go to my forums page in the URL.
Atsutane, you are THE MAN. Mine still looks like garbage, but It’s coming along. Thanks! This really should be included in the package.
Basically, to clarify the process even more…
/// open ‘/bbpress/conf.php’ and at the top, after the opening ‘<?php’ put the following:
‘”require_once(‘/path/to/wp-blog-header.php’);”‘
Then, in your ‘my-templates’ directory, create the following files:
header.php
‘<?php get_header(); ?>
<div id=”content” class=”narrowcolumn”>
<div class=”post” id=”post-forum”>
<div class=”entry”>’
footer.php
‘</div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>’
You will still have to tweak the code, but that’s all it took for me.
You’ll need to add the styles from the non-header/footer portions of the bbpress css files to your WP style sheet.
Check my test-forum out… http://nolageek.com/forums
One thing I can’t figure out though… when you’re viewing a topic, the “reply” form is WAAAAYYYY too long. I’ve edited this in every form I can see, but this isn’t changing..
Why are there so many edit forms? Where is this one?
Thanks U can edit the size from css file. Find this inside your css file
.postform textarea {
height: 12em;
margin: 5px 0;
padding: 5px;
width: 720px; //Edit the width to fit your page.
display: block;
}
Atsutane,
I follow your instructions “integrate wp with bbpress” and I do it!
But now I have problems with editing profile when I login in.
I press “edit profile” and it does not work! So I cannot change my password and my user info.
Can u help me?
It occurs because of localization. But it is lack itself bbPress. I hope it will be corrected in the following versions.
However… the K2 theme breaks it. http://nolageek.com/forums
Unfortunately, your forum does not work
nolageek,
Disable your Ultimate tag warrior Im also using k2 and had to disable UTW.
If u really want to use UTW, u need to edit bbpress code to replace the existing is_tag function
I already told mdawaffe about this problem. Donno if they want to change is_tag function name to something else
Agop,
я переводила форум на русский сама непосредственно в файлах, поэтому — ну какая ему, bbpress, разница? А Вы, прежде чем анонсировать локализацию, сначала бы сами ее до ума довели.
I translated a forum on Russian itself directly in files. You announced russian localization but It does not work correctly.
I use my own theme for worpdress. Any body can help me about my problem?
Sonika,
On a site it is written – test exploitation
Agop,
дело не в тестовой эксплуатации, а в том, что нужно заставить bbpress пользоваться таблицей wp_users самого wordpress. Для программиста это не проблема должна быть…
Sonika,
А зачем? Я не хочу объединять пользователей.
Вы абсолютно правы – для меня это не проблема.
Agop,
Ну да… А «редактировать свой профиль» настроить не можете…
Sonika,
Не понимаю, что за наезды такие. Вы всегда переходите на личности?
Будет время посмотрю. Или я Вам что-то задолжал?
Agop,
Может мне кто-нибудь из англоязычных пользователей помог бы советом, а Вы тут со своей локализацией влезли! Да не в локализации дело, блин.
Я всего-лишь высказал свое мнение на свободном форуме. А Вы, извините, просто засоряете тему. Больше отвечать вам не буду – не хочу опускаться до Вашего уровня
Agop,
Вы так говорите, потому что Вам обидно, что Вы не угадали с локализацией и не знаете ответа на вопрос. А мне обидно, что никто по делу ответить не может.
Astutane: Now I get….
‘Fatal error: Cannot redeclare widget_akismet() (previously declared in /home/nolagay/public_html/wordpress/wp-content/plugins/akismet/akismet.php:376) in /home/nolagay/public_html/wordpress/wp-content/plugins/akismet/akismet.php on line 376’
nolageek, it was a bug on bbpress 0.73 – https://trac.bbpress.org/ticket/476
For temp solution u need to disable akismet
Here is the error I’m getting when I put
‘”require_once(‘/path/to/wp-blog-header.php’);”‘ into my bbpress config.php file:
Warning: main(http://www.dev.abunchofcars.com/wp-blog-header.php): failed to open stream: HTTP request failed! ��-@����-�”@ in /home/abunchof/public_html/dev/forum/config.php on line 3
Fatal error: main(): Failed opening required ‘http://www.dev.abunchofcars.com/wp-blog-header.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/abunchof/public_html/dev/forum/config.php on line 3
- You must be logged in to reply to this topic.