Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 62,751 through 62,775 (of 64,466 total)
  • Author
    Search Results
  • #54015
    chrishajer
    Participant

    Just FYI, I got another 408 error when trying to reply on a topic today.

    Oops, should have posted this on my other thread:

    https://bbpress.org/forums/topic/641?replies=15#post-3823

    #54098

    In reply to: Issue with tagging

    chrishajer
    Participant

    Hi Mike. This has been discussed a few times here. Words are separated by spaces into tags when the post is created, but later, when adding tags, the whole line of input becomes a tag.

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

    https://bbpress.org/forums/topic/472?replies=7

    #1350
    drmike
    Member

    Greets:

    I think I’ve noticed with bbpress is how it handles tags made after a post is created. We have someone over at the wp.com forums who goes back through and adds tags into the threads which is cool. The only issue is that she (I have a feeling I know who it is) puts everything into the line at once. For example she’ll add in:

    blogdesk offline blogging tool

    into the line of a thread that’s already in existance and then hit enter. All that goes in as one tag.

    Does the software do that on purpose or is that just an oversight?

    Thanks,

    -drmike

    #1348
    brampamp
    Member

    I’m very new to bbPress and am trying to list all members but I want to display specific information. I have installed the memberlist plugin which works brilliantly. However it displays User, Homepage and join date. I would much prefer to see user, location, occupation and interests.

    I assume this would be the SQL created by the memberlist plugin but I’m a bit of a noob when it comes to SQL so any help would be great.

    I would also like to rename (just for display purposes) ‘interests’ to ‘skills’ on the profile pages and wherever else it might be displayed.

    #53761
    Trent Adams
    Member

    That goes in the config.php in the bbPress install.

    Tren

    #51344
    Null
    Member

    Hmm I was working on such a plugin too. Also looked at FCKeditor, but it is kinda big and doesn’t work with Opera. I haven’t had good experience with TinyMCE, so I’ve decided to use an opensource WYSIWYG.

    It aint finished and if these other editors work good, there is no need for another one.

    #51389
    tominated
    Member

    I am quite proficient at CSS, but i am no good with php. BTW: I didn’t really understand that article, it wasn’t very good english. I do understand everything up from the cookies stuff, but not below it. Could you please dumb it down a bit? if you want to see what i am trying to do, visit http://blog.tominatedsoftware.com/ and you can see that i have integrated wordpress with the rest of my site at http://tominatedsoftware.com/

    #51388
    Trent Adams
    Member

    It is a bit of a complete thing if you don’t know CSS really well and the functions for bbPress. You can look at how the default theme is produced, or just take a look at this from So10

    wordpress and bbpress theme integration

    Trent

    #954
    tominated
    Member

    Is it possible to integrate a bbpress forum into an existing site (so i don’t have to mess around with making a theme for bbpres) by using php functions? I am not very good (that is an overstatement) at php. I followed a tutorial that let me integrate a wordpress blog into my site, and this is the code it gave me

    <?php define('WP_USE_THEMES', false);

    require('wordpress/wp-blog-header.php'); ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head></head>

    <body>

    <div id="stage">

    <div id="sidebar">

    <?php if ( !function_exists('dynamic_sidebar')

    || !dynamic_sidebar() ) : ?>

    <h3>Categories</h3>

    <div id="blog-categories">

    <ul>

    <?php

    list_cats(FALSE, '', 'ID', 'asc', '', TRUE, FALSE, TRUE,

    TRUE, TRUE, FALSE, FALSE, '', FALSE, '', '', '', TRUE);

    ?>

    </ul>

    </div>

    <br />

    <div id="blog-archives">

    <h3>Archives</h3>

    <ul>

    <?php get_archives('monthly', '', 'html', '', '','TRUE'); ?>

    </ul>

    </div>

    <hr />

    <br />

    <div id="rss-links">

    <h3><a href="<?php bloginfo('url'); ?>?feed=rss2">RSS feed</a></h3>

    </div>

    <?php endif; ?>

    </div>

    <div id="content">

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div id="unique-entry-id-<?php the_ID(); ?>" class="blog-entry">

    <div class="blog-entry-title"><?php the_title(); ?></div>

    <div class="blog-entry-date"><?php the_time('Y-m-d G:i'); ?>&nbsp;|

    <span class="blog-entry-category"><?php the_category(', '); ?></span>&nbsp;|

    <span class="blog-entry-permalink"><a href="<?php the_permalink(); ?>">Permalink</a></span>&nbsp;|

    <span class="blog-entry-language">

    <?php if(function_exists('lp_other_langs')) {

    //display existing language versions of the post

    lp_other_langs(' ','', '', '', '');

    }?></span>

    </div>

    <div class="blog-entry-body"><?php the_content(); ?></div>

    <div class="blog-entry-comments">

    <?php edit_post_link(__('Edit This')); ?> |&nbsp;

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)'), "",

    __('Sorry, comments are closed for this item.')); ?>

    </div>

    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <h2><?php _e('Not Found'); ?></h2>

    <p><?php _e('Sorry, but no posts matched your criteria.'); ?></p>

    <form method="get" class="searchform" action="<?php bloginfo('home'); ?>/">

    <div>

    <input type="text" size="20" value="<?php echo wp_specialchars($s, 1); ?>" name="s" class="s" />

    <input type="submit" class="submit" value="<?php _e('Search'); ?>" />

    </div>

    </form>

    <?php endif; ?>

    <div style="text-align:center;">

    <?php posts_nav_link(' — ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?>

    </div>

    </body>

    what would i have to do to get bbpress integrated into my site? I heard somewhere that the function names are very similar to wordpress, so what code would i put in to get the forum categories then the recent posts, etc.?

    #51342
    sbpmedia
    Member

    I’ll try to add TinyMCE in the morning.

    I hope i can figure it out :-)

    #53612
    ateale
    Member

    Hi Trent thanks for your help!

    i made those changes but still seem to get this error:

    Warning: main(www/blog/wp-blog-header.php) [function.main]: failed to open stream: No such file or directory in /home/lumanati/www/blog/bbpress/config.php on line 3

    Fatal error: main() [function.require]: Failed opening required 'www/blog/wp-blog-header.php' (include_path='.:/usr/local/lib/php') in /home/lumanati/www/blog/bbpress/config.php on line 3

    i have no idea!

    thanks for your help so far!

    Adam

    #1346
    sbpmedia
    Member

    I would like is a plugin that could automatically add user topics to favorites.

    You can easily monitor your topics via RSS Feed

    &

    I want to use this plugin with Post Notification Plugin http://bbpress.org/plugins/topic/23?replies=1

    #54070

    In bbpress it is called ‘bb_init’ … do you mean this?

    #54069
    baptiste
    Member

    I brain locked. bb_head is probably too late for this. Is there an equivalent of the ‘init’ hook for bbPress? In WordPress, that filter hook gets run after the environment initializes. That’s when the code I included would need to be run. I can’t seem to find an applicable filter hook called that early.

    #54068
    baptiste
    Member

    Would the solution be to execute a stripslashes_deep on GET, POST, etc if WP_BB is true? Seems kinda dangerous – but bbpress doesn’t expect this in a non-integrated environment, so undoing what wp-settings.php does (which gets run when you include wp-config to get the WordPress API) seems harmless enough.

    Maybe something along the lines of:

    function bb_undo_wp_slashes() {

    $_GET = stripslashes_deep($_GET );

    $_POST = stripslashes_deep($_POST );

    $_COOKIE = stripslashes_deep($_COOKIE);

    $_SERVER = stripslashes_deep($_SERVER);

    }

    and call that as a filter for bb_head?

    if (defined('WP_BB') && WP_BB) add_action('bb_head', 'bb_undo_wp_slashes');

    I think bb_head is called after the environment is setup.

    I may give this a try. Thoughts from developers who know more about bbPress than I?

    #54067
    baptiste
    Member

    Weird. I have magic quotes off. However, I notice that wp-settings adds slashes to EVERY request in wp-settings:

    // If already slashed, strip.

    if ( get_magic_quotes_gpc() ) {

    $_GET = stripslashes_deep($_GET );

    $_POST = stripslashes_deep($_POST );

    $_COOKIE = stripslashes_deep($_COOKIE);

    }

    // Escape with wpdb.

    $_GET = add_magic_quotes($_GET );

    $_POST = add_magic_quotes($_POST );

    $_COOKIE = add_magic_quotes($_COOKIE);

    $_SERVER = add_magic_quotes($_SERVER);

    Is bbpress not expecting this? This might explain the double slashing even if magic quotes is off (I checked my php.ini – it is off)

    #1345
    baptiste
    Member

    So I’ve been digging further into the strange behavior I’ve had with slashes in posts AND with HTML tag attributes being yanked out.

    It’s all related. Apparently, there is some type of problem where slashes get added TWICE when the WP intergation is on. This is why slashes start showing up everywhere and why kses fails.

    I finally discovered that even though the stripslashes filter is called before bb_filter_kses, there are still slashes in front of the quotes of the attributes. So they get tossed.

    So I took out all the stripslashes hacks I had put into the title and post routines and called stripslashes TWICE as a pre_post filter. Voila – attributes are preserved.

    add_filter('pre_post', 'stripslashes', 40);

    add_filter('pre_post', 'stripslashes', 45); // 2nd Time

    I also added this little section in default-filters.php:

    // Slash problems when integrated with WordPress

    if (defined('WP_BB') && WP_BB) {

    add_filter('post_text', 'stripslashes');

    add_filter('get_topic_title', 'stripslashes');

    add_filter('get_bb_title', 'stripslashes');

    add_filter('edit_text', 'stripslashes');

    }

    And it stripped out the slashes in titles, browser bars, posts, edit screens, etc. (Note there is a missing semi-colon after the sort_tag_heat_map line – you need to add on if you put this at the end)

    This is still a hack. I don’t have magic quotes on. I still need to dig and find out why there seems to be alternate behavior when wordpress is integrated or not. Maybe WordPress is turning on magic quotes and bbPress doesn’t expect it to be on?

    Still digging.

    #53991
    ear1grey
    Member

    Can you confirm what I asked earlier about the content of $rw[“location”]?

    If that is what you’re doing then modify this example:

    <?php

    function exampleOne() {

    return "bb";

    }

    function exampleTwo() {

    return "press";

    }

    $rw["one"] = "exampleOne";

    $rw["two"] = "exampleTwo";

    $switchOne = call_user_func($rw["one"]);

    $switchTwo = call_user_func($rw["two"]);

    echo($switchOne);

    echo($switchTwo);

    ?>

    Obviously you don’t need the example methods, but just use call_user_func on the name of the method you’re pulling from the DB.

    #51969
    ccmve
    Member

    Thanks guys! I copied the BBP tables over to my WP db, and everything worked out fine — with the added bonus that this plugin now works perfectly. Maybe I missed it, but I think the BBP install instructions should make a point of recommending that BBP be installed in the WP database.

    #53758
    flaerpen
    Member

    I think the problem is that my bbpress forum isn’t in a subdirectory in WordPress. My blog is in a subdirectory in bbpress, like this: /forum/ <- my forum and then /forum/blog/ <- where my blog is.

    I’ve read the documentation about it and how do I with the cookies? What should I change so it works, because I really think that’s the problem!?

    (EDIT: I’m using WP 2.0.4 with the bbpress 0.75)

    #51968
    Trent Adams
    Member

    It is pretty simple to just copy the bbPress tables into the WordPress database. If you use a mySQL export script, it will actually create the tables syntax and install it perferctly! It is way easier on many integration plugins (not just this one) when they are in the same database!

    Trent

    #51967
    baptiste
    Member

    ccmve,

    It is – and it will make your life a lot easier. Makes your config simpler too.

    #53990
    Null
    Member

    Well the switch gives this error:

    Parse error: parse error, unexpected $ in /xxx/bbpress/my-plugins/bbmenu.php(123) : eval()’d code on line 1

    Isn’t there a simpler way? Like always underline Forum unless $rw == get_bb_location()

    So if current isn’t present in the li list, uinderline Forums. If this is possible, it would solve all problems :)

    #53610
    ateale
    Member

    Hey Ardentfrost,

    Sorry for taking so long to get back to your reply – i really appreciate it!

    Cheers!

    Here’s the config file:

    <?php

    require_once('../wp-blog-header.php');

    define('WP_BB', true);

    // ** MySQL settings ** //

    define('BBDB_NAME', '*******'); // The name of the database

    define('BBDB_USER', '*******'); // Your MySQL username

    define('BBDB_PASSWORD', '*********'); // ...and password

    define('BBDB_HOST', '**********'); // 99% chance you won't need to change this value

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = 'http://blog.lumanation.com'; // Example: 'http://bbpress.example.com'

    // There should be both a leading and trailing slash here. '/' is fine if the site is in root.

    $bb->path = '/bbpress/'; // Example: '/forums/'

    // What are you going to call me?

    $bb->name = 'Lumanation bbPress';

    // This must be set before running the install script.

    $bb->admin_email = '********com';

    // Set to true if you want pretty permalinks.

    $bb->mod_rewrite = false;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 8;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to 'de'

    // to enable German language support.

    define('BBLANG', '');

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ''; // Example: '0123456789ab'

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you're not, just leave the rest as it is.

    $bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';

    $bb->wp_home = 'http://blog.lumanation.com'; // WordPress - Options->General: Blog address (URL) // No trailing slash. Example: 'http://example.com'

    $bb->wp_siteurl = 'http://blog.lumanation.com'; // WordPress - Options->General: WordPress address (URL) // No trailing slash. Example: 'http://example.com'

    /* Stop editing */

    define('BBPATH', dirname(__FILE__) . '/' );

    require_once( BBPATH . 'bb-settings.php' );

    ?>

    #54023
    ateale
    Member

    Hey guys!

    sorry i didn’t get back to your replies sooner. Thanks for the effort!

    Yeah i am trying to work out whether to use bbpress or wordpress or both. But most importantly want to get away from phpBB2

    I see both *press being powerful. I am not sure whether to offer both tools on our site, or just go with wordpress.

    BBpress has allowed me to keep all our previous years content from phpBB2. But i am just not sure whether to use it or not.

    Our members might get confused where to post entries and how to reply/comment.

    I’d just go with bbpress but at the moment wordpress seems to have a lot of goodies like themes/pplugins that i am using.

    Sorry i realised I am crapping on!

    Any ideas/recommendations?

Viewing 25 results - 62,751 through 62,775 (of 64,466 total)
Skip to toolbar