Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 63,401 through 63,425 (of 64,411 total)
  • Author
    Search Results
  • #52462
    ardentfrost
    Member

    It sounds like what you need is to overload the bb_get_location function. This is easy to do in bbpress. You need to make a set of functions like this:

    is_home() {

    if( 'home-page' == get_bb_location() )

    return true;

    else

    return false;

    }

    get_home_location() {

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'home.php' )

    return 'home-page';

    }

    apply_filter( 'get_bb_location', 'get_home_location' );

    That’s untested, but I think that should work. Basically what you want to do is add in your locational test when bb_location is called. Then you can just call is_home() and it’ll do what you want. Of course, if you don’t want any other part of the forum to care if it’s on the home or not, you can take out all that stuff at the end that integrates it with get_bb_location, and just do this:

    is_home() {

    if( 'home-page' == get_home_location() )

    return true;

    else

    return false;

    }

    get_home_location() {

    if ( bb_find_filename($_SERVER['PHP_SELF']) == 'home.php' )

    return 'home-page';

    }

    Whichever you want to do. The second is easier, the first is more versatile.

    #52461
    Null
    Member

    Quote:

    What does it matter that what bbpress sees at “front-page” isn’t the actual front page of your site? It’s just a moniker used throughout the program, it doesn’t have to mean anything to you.

    Well wrong, I am working on a menu for the forum and it defeniatily is important that the call back is accurate.

    Some excample code menu:

    <li<?php

    if ( is_front())

    {

    echo " id="current">";

    ?>

    <a href="<?php option('uri'); ?>">Forums</a>

    <?php

    }

    ?></li>

    Here you can see is_front and we also have is_forum so I need to add is_home aswell in order to make the menu work :)

    Well I understand your explaination of how things work. I started home.php from index.php and edited/deleted things i didn’t need to make my own startpage. I also wanted to keep the normal index file, thats why I renamed them. Unfortunally the addons i did in the template functions don’t work unless i keep it like this:

    case 'home.php' :

    return 'front-page';

    break;

    And then the id won’t work too, cause is_front() is called (and not is_home) so it gets the front-page id.

    Well going to release my project very soon (as soon as I found a solution for my DIV problem), perhaps you can help me better then.

    Really appreciate the time helping me out!!

    Null

    #52460
    ardentfrost
    Member

    What does it matter that what bbpress sees at “front-page” isn’t the actual front page of your site? It’s just a moniker used throughout the program, it doesn’t have to mean anything to you.

    Not a lot needs to change when adding a new page. Make a file in your forums root directory call it whatever, like null.php. set it up like this:

    <?php

    require_once('./bb-load.php');

    ***[if you need any code, put it here]***

    if ( file_exists(BBPATH . 'my-templates/nullsfile.php') ) {

    require( BBPATH . 'my-templates/nullsfile.php' );

    } else {

    echo "File does not exist in my-templates folder";

    }

    ?>

    Then make a file in your my-templates folder called nullsfile.php and make it look like an html file, but be sure to set it up like this:

    <?php bb_get_header(); ?>

    ***[put all your html code here with calls to php functions]***

    <?php bb_get_footer(); ?>

    At that point, you have a page integrated into bbpress. What you do in those two files is up to you. To access the file, you just go to forumsroot/null.php (if you have pretty links turned on, you don’t need the .php part). If you need called functions, standard is to put them into a file in the my-plugins folder.

    In some of the plugins I’ve made, my main file does stuff like detects if something is set in the address line by checking the $_GET[] variable, or it pulls information needed by the required my-templates file by running a database query…

    That all make sense?

    #52474

    In reply to: Download Templates

    Null
    Member

    Don’t expect this as long as BBpress has no template thingy like WP has. At least I think…

    #1095

    Topic: Download Templates

    in forum Themes
    Platzhirsch
    Member

    Where can I find any kind of templates for bbpress for download?

    Whether they are individual files or whole packages…

    Thanks in advcance.

    #1094
    Matt Brett
    Member

    I’ve got a new installation of bbPress which is integrated into a mammoth WordPress site and I’m quite pleased with the outcome. The only real roadblock I’ve hit cropped up while testing.

    If a user doesn’t close an HTML tag in their post, the formatting is carried through to the rest of the site (yikes!). As you can imagine, things can get ugly real quick when this happens. And it will happen, without a doubt.

    Anyone aware of a fix for this? Did some searching and browsing but didn’t find any mention of this.

    #52027
    pilkster
    Member

    Hey Trent ~ here’s me thinking that all my users being marked as bozos might be causeing the problems I am having with the integration. Even the keymaster is marked as a bozo. Guess that isn’t the problem though.

    #49547
    pilkster
    Member

    Hi again Trent

    I’ve had another go. Here are the steps I have taken:

    Created a new account on my server (taxdeduct.net)

    Installed WP 2.0.5 via fantastico

    Downloaded BB from this site

    Created database and user through cpanel. Added user to database with all privileges >> sidenote: https://bbpress.org/documentation/installation/ does not mention setting up the database. A bit confusing.

    Copied config-sample.php to config.php, edited with my info

    Uploaded to host

    Ran bb-admin/install.php

    Downloaded https://trac.bbpress.org/attachment/ticket/438/bbpress-integration.php – uploaded to WP plugins dir, activated and configured with tables prefix.

    Created new user on bbpress… couldn’t log in to WP.

    Created new user on WP… couldn’t log in to bbpress.

    My head hurts from pulling at my hair :(

    Another question: do you have to allow new user registrations on your blog for the plugin to work?

    #1092
    lzooml
    Member

    I wanna emplace the my forum to my blog on a new page.

    is a plug-in exist for this procedure

    #52466
    hanbit
    Member
    #1091
    aquaibm
    Member

    If it does, that would be suffice for me.

    #52326
    Anonymous User 133554
    Inactive

    Hi,

    Have you checked if FILENAME (line 85) is writeable by the server? If it is, try switching EXPORT_TO_FILE to false and AUTO_IMPORT_EXPORTED_DATA to true. As usual, please do always a database backup before.

    Hope it helps :-)

    #52400
    so1o
    Participant

    in function post_form –

    $page == get_page_number( $topic->topic_posts + $add )

    this is probably being evaluated as false.

    i say this because this your paging is messed up..

    http://booksinbed.com/wordpress/bbpress/topic.php?id=3&page=2

    if you go to the above link the number 1 should have link in the page navigation. in your case page 2 has..

    debug the get_page_number function whats getting loose..

    #52325
    jaxxx
    Member

    hmm. i tried this, but get this error after step 8:

    Fatal error: Call to undefined function: file_put_contents() in phpbb2bbpress.php on line 383

    any suggestions?

    #1081
    Justin Tadlock
    Participant

    I just started a new site at http://booksinbed.com/wordpress/bbpress (the forum pat of the site) using bbpress.

    The problem I’m having can be found on this page:

    http://booksinbed.com/wordpress/bbpress/topic.php?id=3

    What is happening is when I exceed “The number of topics that show on each page,” which was set at 15 in my config.php file, the posting form disappears.

    I am at a loss as of what to do to fix this.

    #52449

    In reply to: 404 errors

    Trent Adams
    Member

    Personally, I have had issues with this as well. I would suggest creating a .htaccess file and place it in your bbpress root directory and only adding the following to it:

    Options +MultiViews

    That seems to work for most people. Try that first maybe? If not, maybe check what format you have in your WP .htaccess and try a combination of either the previous code or what rewrite-rules.php spits out for you.

    Thanks,

    Trent

    #52448

    In reply to: 404 errors

    klueders
    Member

    Trent … thanks for the quick response …

    i just found this post: https://bbpress.org/forums/topic/378?replies=16

    and that seems to have fixed it.

    should I replace the contents of my .htaccess file with “Options +MultiViews”?

    or leave as is?

    thanks again.

    #52447

    In reply to: 404 errors

    Trent Adams
    Member

    You have permalinks set to true in the config.php, yet your .htaccess doesn’t know what to do with it, hense the errors.

    Take a look at:

    https://bbpress.org/documentation/faq/#pretty-permalinks

    Trent

    #1089

    Topic: 404 errors

    in forum Installation
    klueders
    Member

    hi,

    i was able for the most part to get bbpress installed and integrated with an existing wp site. here’s a link:

    http://www.sleeptalkin.com/blog/bbpress/

    i’m just having an issues with some of the pages not being found. for example … i can create an issue but can view any of them:

    http://www.sleeptalkin.com/blog/bbpress/topic/4?replies=1

    any thought on this?

    thank for any help you can provide.

    #50211
    Trent Adams
    Member

    This is completed by So10! Yeah!

    https://bbpress.org/forums/topic/403?replies=4

    Trent

    #49929

    In reply to: En español

    Anonymous User 133554
    Inactive

    There is a (very young) bbPress Spanish community at http://www.bbpress.es/

    Regards.

    #49928

    In reply to: En español

    pompilos
    Participant

    The standard Spanish localization can be downloaded from https://bbpress.org/forums/topic/6/page/2?replies=43#post-2213

    #49478
    pompilos
    Participant

    A friend of mine translated the .po and .mo into standard Spanish (es_ES), to use them in our forum. You can donwload the files from here: http://blog.pompilos.org/files/bbpress-es_ES.rar

    #52250
    spencerp
    Member

    YES! Thank you so much fixing this. ;) :) Everything seems to be fixed, however, I’m still getting this database error message above the forum header..

    When in a thread, and clicking the “PM This User” link, it spits out this database error message:

    bbPress database error: [Table ‘mydatabase_name.bb_users’ doesn’t exist] SELECT * FROM bb_users WHERE ID = 2

    I’ve tried both versions of the plugin, redownloaded the original one, and then tried the .73a one.. same error message.. :(

    spencerp

    #52074

    In reply to: Simply doesn’t work

    This is the same on one of my servers. It doesn’t work either way, but Rewrite works with WP….strange.

    I thought I was going crazy but thank you, it works for WP but not bbPress what is going on haha. Good Luck!

Viewing 25 results - 63,401 through 63,425 (of 64,411 total)
Skip to toolbar