bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Working as a Page in my theme.

(23 posts)
  • Started 1 year ago by fokjulle
  • Latest reply from peiqinglong
  • This topic is not a support question

Tags:

  1. fokjulle
    Member

    My URL is 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 1 year ago #
  2. 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"

    Posted 1 year ago #
  3. fokjulle
    Member

    Thanks, but I don't understand what you're saying :-(

    Can you try say it again, simpler? I don't understand #2 onwards...

    Posted 1 year ago #
  4. fokjulle
    Member

    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 1 year ago #
  5. nolageek
    Member

    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 1 year ago #
  6. 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 1 year ago #
  7. 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 1 year ago #
  8. Agop
    Member

    It occurs because of localization. But it is lack itself bbPress. I hope it will be corrected in the following versions.

    Posted 1 year ago #
  9. nolageek
    Member

    However... the K2 theme breaks it. :( http://nolageek.com/forums

    Posted 1 year ago #
  10. Agop
    Member

    Unfortunately, your forum does not work

    Posted 1 year ago #
  11. 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 1 year ago #
  12. 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 1 year ago #
  13. Agop
    Member

    Sonika,
    On a site it is written - test exploitation

    Posted 1 year ago #
  14. Agop,
    дело не в тестовой эксплуатации, а в том, что нужно заставить bbpress пользоваться таблицей wp_users самого wordpress. Для программиста это не проблема должна быть…

    Posted 1 year ago #
  15. Agop
    Member

    Sonika,
    А зачем? Я не хочу объединять пользователей.
    Вы абсолютно правы - для меня это не проблема.

    Posted 1 year ago #
  16. Agop,
    Ну да… А «редактировать свой профиль» настроить не можете…

    Posted 1 year ago #
  17. Agop
    Member

    Sonika,
    Не понимаю, что за наезды такие. Вы всегда переходите на личности?
    Будет время посмотрю. Или я Вам что-то задолжал?

    Posted 1 year ago #
  18. Agop,
    Может мне кто-нибудь из англоязычных пользователей помог бы советом, а Вы тут со своей локализацией влезли! Да не в локализации дело, блин.

    Posted 1 year ago #
  19. Agop
    Member

    Я всего-лишь высказал свое мнение на свободном форуме. А Вы, извините, просто засоряете тему. Больше отвечать вам не буду - не хочу опускаться до Вашего уровня

    Posted 1 year ago #
  20. Agop,
    Вы так говорите, потому что Вам обидно, что Вы не угадали с локализацией и не знаете ответа на вопрос. А мне обидно, что никто по делу ответить не может.

    Posted 1 year ago #
  21. nolageek
    Member

    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 1 year ago #
  22. nolageek, it was a bug on bbpress 0.73 - http://trac.bbpress.org/ticket/476

    For temp solution u need to disable akismet :)

    Posted 1 year ago #
  23. 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

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.