Info
- 23 posts
- 6 voices
- Started 5 years ago by fokjulle
- Latest reply from peiqinglong
- This topic is not a support question
Working as a Page in my theme.
-
- Posted 5 years ago #
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.
-
- Posted 5 years ago #
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.phpSo 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"
-
- Posted 5 years ago #
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.
-
- Posted 5 years ago #
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?
-
- Posted 5 years ago #
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;
} -
- Posted 5 years ago #
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?
-
- Posted 5 years ago #
It occurs because of localization. But it is lack itself bbPress. I hope it will be corrected in the following versions.
-
- Posted 5 years ago #
However... the K2 theme breaks it. :( http://nolageek.com/forums
-
- Posted 5 years ago #
Unfortunately, your forum does not work
-
- Posted 5 years ago #
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 :)
-
- Posted 5 years ago #
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? -
- Posted 5 years ago #
Sonika,
On a site it is written - test exploitation -
- Posted 5 years ago #
Agop,
дело не в тестовой эксплуатации, а в том, что нужно заставить bbpress пользоваться таблицей wp_users самого wordpress. Для программиста это не проблема должна быть… -
- Posted 5 years ago #
Sonika,
А зачем? Я не хочу объединять пользователей.
Вы абсолютно правы - для меня это не проблема. -
- Posted 5 years ago #
Agop,
Ну да… А «редактировать свой профиль» настроить не можете… -
- Posted 5 years ago #
Sonika,
Не понимаю, что за наезды такие. Вы всегда переходите на личности?
Будет время посмотрю. Или я Вам что-то задолжал? -
- Posted 5 years ago #
Agop,
Может мне кто-нибудь из англоязычных пользователей помог бы советом, а Вы тут со своей локализацией влезли! Да не в локализации дело, блин. -
- Posted 5 years ago #
Я всего-лишь высказал свое мнение на свободном форуме. А Вы, извините, просто засоряете тему. Больше отвечать вам не буду - не хочу опускаться до Вашего уровня
-
- Posted 5 years ago #
Agop,
Вы так говорите, потому что Вам обидно, что Вы не угадали с локализацией и не знаете ответа на вопрос. А мне обидно, что никто по делу ответить не может. -
- Posted 5 years ago #
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'
-
- Posted 5 years ago #
nolageek, it was a bug on bbpress 0.73 - http://trac.bbpress.org/ticket/476
For temp solution u need to disable akismet :)
-
- Posted 5 years ago #
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 log in to post.