Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,126 through 32,150 (of 32,193 total)
  • Author
    Search Results
  • #728

    Has anyone got bbpress to integrate either with WP or WPMU off a second database? Yes, I read the documentation, which isn’t clear as to what I’m supposed to do. I tried many different things, resulting in different errors each time, none of which actually used the wp_users table in bbpress. The last change almost did it, but it somehow horked my WPMU install when I went to add a user to see which db it plunked it in (neither, as it turns out – it seems to be in limbo).

    To start, I had a local copy of MU working, and I got an install of bbpress working as well. It’s just getting the two of them hooked up is where I run into issues.

    Any ideas? Tips? Step by step instructions? :D

    #727
    tp84
    Member

    Hey all,

    Not really sure if this is the right area, sorry if not.

    I’m thinking of using bbPress on a new site. Theres a couple of things I’d like to figure out first:

    – Is there any way of dictating a ‘banned words’ list?

    – I want to include a tag cloud type thing but instead of using tags, using post titles.

    Any info/ideas much appreciated :)

    Cheers,

    -Mark

    #49852
    cmcraft
    Member

    Ok, now I am beginning to understand. I assume from looking around that I need to add that code (such as ‘<?php get_header(); ?>’) into the bbpress/index.php file.

    Naturally bbpress won’t know to look in the /blog/ folder (bbpress is in the /blog/bbpress/ folder) so how do I set the path?

    Would that be another require( etc code?

    Thanks for all the help, I am learning so much!

    #49982
    spencerp
    Member

    You might want to follow this thread maybe? ;)

    https://bbpress.org/forums/topic/3?replies=6

    spencerp

    #50061
    mackem2
    Member

    Thanks, I’ve done most of it now and my forum is working. The site is just going up (i.e. not ready), but the forum skin can be seen at http://www.retrographer.com/forum/

    The software is most excellent :)

    I think it’s a bug with your style sheet, but if you visit you might notice the hot tags go past the main window bottom. This is because the hot tags are a float and so have no content. It either needs a clear:both or a overflow:hidden at the end of the floated tags.

    #49851
    #50060

    In future versions of bbPress, you will be able to do this with a short plugin.

    As for the [Closed] issue, you can solve that be removing the filter and adding your own (or using custom templates).

    remove_filter('topic_title', 'closed_title', 30);

    #49926

    In reply to: En español

    xabel
    Member

    thank you ;-)

    #719
    mackem
    Member

    Hello,

    The title says it all really. Is there an option to do this? I couldn’t find one. Sometimes it’s useful to limit who can post to what.

    This is what I did, I don’t know if it’s right:

    1. added a column ‘closedforpost’ to the bb_forums column

    2. updated bb-includestemplate-functions.php:86: with the code

    function post_form( $h2 = '' ) {

    global $bb_current_user, $bb, $page, $topic, $forum;

    if($forum->closedforpost==1) return;

    3. updated bb-includestemplate-functions.php:756:

    function new_topic( $text = false ) {

    global $bb_current_user, $bb, $page, $topic, $forum;

    if($forum->closedforpost==1) return;

    While I was there, it seemed wrong to put in big writing [Closed] before every topic and forum that was flagged as closed when all I wanted to do was lock it, but there was no nice code to do this so I resorted to simply changing the closed_title() function to simply not show anything! I guess this is a suggestion rather than a plea for help.

    Thanks.

    #49748

    In reply to: Using WP template tags

    Finally I use: require_once(dirname(dirname(__FILE__)) . '/wp-blog-header.php'); because some functions don’t work properly with ´/wp-config.php´.

    Thanks anyway.

    #49908

    In reply to: changing user type

    anchel
    Member

    Found the bug …. I’ve editted the config for using a language file like define ('WPLANG', 'nl_NL'); after deleting the line I can change the user type again.

    #49846
    cmcraft
    Member

    I tried that and it threw back a serious error. I might be a noob, but is there more defining that needs to be done? Inserting the code towards the bottom didn’t work. My installation works ok, but it doesn’t load wordpress at all, and if I uncomment the wp_bb line, it errors up as well.

    Help!

    #49923

    In reply to: Plugins Loaded When?

    The plugins are loaded everytime bbPress is loaded.

    If you’re don’t want any code from your plugin to execute unless you’re in the admin, you could put something like this hack at the top of your “admin-only” plugins:

    if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )

    return;

    But just loading the plugin file shouldn’t add too much overhead. You could do something a little nicer, if you weren’t worried about loading your plugin file:

    function my_admin_only() {

    if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )

    return;

    else load_my_plugin_stuff();

    }

    add_action( 'init', 'my_admin_only' );

    #49920

    Create a directory called my-plugins/ in bbPress’ root directory.

    Into that add a new file called mod-write-topics.php with the following code.

    <?php

    function mod_write_topics() {

    global $bb_roles;

    $bb_roles->role_objects['member']->remove_cap( 'write_topics' );

    }

    add_action( 'bb_got_roles', 'mod_write_topics' );

    ?>

    I think that will work, but I haven’t tested it.

    #706

    Topic: Plugins Loaded When?

    in forum Plugins
    adergaard
    Member

    I’ve created a couple of plugins for the admin side, are those loaded with each request that hits the bb-load.php?

    I fear it is and have *ugly code ahead* hijacked the admin.php and added a require-instruction there for my adminplugins since I don’t want them to drain resources on the front-end so to speak.

    Is this at all a relevant fear or is the reading and attaching to the event-loop so minimal in resource demand that it really doesn’t matter if it’s loaded each time?

    #49903

    In reply to: err ERRR install probs

    silent1643
    Member

    err now i can’t login with the admin u/p bbpress gave me :(

    #49591

    In reply to: Emoticons For bbPress?

    bb-emotions plugin

    A friend of mine, Japanese bbPress user enjoy hacking plugin WP Grins port to bbPress.

    So, he wants to add this bb-emotion here, but he’s not good at english, then I translate he says.

    = = = =

    ziped code:

    http://prdownloads.sourceforge.jp/wppluginsj/22267/bbEmoticons-0.72.zip

    1. put bb-emotions.php to /my-plugins/ ;
    2. put smilies folder into /bb-images/;
    3. add <?php bb_do_action('bb_grins'); ?> to above the textarea in the each theme (edit-form.php, post-form.php);

    That’s all, and does work!

    I’m so happy if this will be your help :)

    = = = = =

    Thank you.

    #49842
    mozey
    Member

    GOT IT, i had to copy my .httaccess file to bb-template/ as well. worked like a charm. LOOKS NICE! :)

    #49709

    In reply to: Can’t Login!

    garymill,

    Login problem:

    wp_home and wp_siturl will only work if the url for your forums is a “subdirectory” of the url for your WordPress blog. If that is not the case, you’ll need the more fine-grained control mentioned in the Cookie integration with WordPress Documentation

    Installation problem:

    on Installation, bbPress looks to see if there are any keymasters in the User Tables already. You’ll need to go to your usermeta table and delete the entry:

    meta_key = $bb_table_prefix . ‘capabilities’ (example: ‘bb_capablities’)

    meta_value = a:1:{s:9:”keymaster”;b:1;}

    This part of the installation will have to change in the next version for several reasons. The difficulties you’re seeing is one of them.

    #49845

    No – WP_BB only tells bbPress that you will be loading WordPress so that it knows not to try to load thingsn which will conflict with WordPress.

    If bbPress is installed in a subdirectory of WordPress, put this in bbPress’ config,php

    require_once(dirname(dirname(__FILE__)) . '/wp-config.php');

    #49829

    In reply to: Comments in WordPress

    mozey
    Member

    i would guess that we need to:

    1: Add a little code snippit inside of wp-post.php that creates a new forum SOMEHOW identified by the post ID.

    2: in your wp-single.php include that forum instead of your comments.

    3: SOmehow replicate/redirect comments/forum for RSS reasons and other ones that i do not understand! :) sloppy i know!

    #49828

    In reply to: install sql script

    evelardiez,

    bbPress comes with such a script. Download the software, fill in the details of you database connection in config.php, and when you first browse to your forum’s URL, you’ll be taken through the installation procedure.

    See https://bbpress.org/documentation/installation/

    #49463

    Yea, I agree with lstelie.

    WP use subversion to manage each localized file:

    https://codex.wordpress.org/WordPress_in_Your_Language

    http://svn.automattic.com/wordpress-i18n/

    How do bbPress’ developers think about managing localized file?

    #49589

    In reply to: Emoticons For bbPress?

    ttech
    Member

    I tried the same code as above but it did not work for me. I’m not sure if htere is a get_settings in BBpress but, you can use $_SERVER;

    #49672
    bryanveloso
    Member

    Also when bbPress has a true template system, I’ll be making the default skin sort of like Andy’s Sandbox theme, so you won’t have to try to get around my CSS if you don’t want to. :)

Viewing 25 results - 32,126 through 32,150 (of 32,193 total)
Skip to toolbar