Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,801 through 28,825 (of 32,458 total)
  • Author
    Search Results
  • #61270
    fel64
    Member

    Include bb in wp-config.php like so:

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

    #61268
    livibetter
    Member

    I checked 0.8 in svn. You can simply comment out or remove those capabilities in capabilities.php.

    #61267
    jazbek
    Member

    thanks, yeah, i am not using bbpress + wordpress on the installation i’m trying to disable posts and registration on.. that’s the old one that’s getting moved to the new site that has wordpress.

    0.8 doesn’t have plugin activation, i guess everything’s just enabled by default (someone correct me if i’m wrong). i’ll have to check out capabilities.php tomorrow (i’m off to a halloween party!). thanks for the help. :)

    #61266
    livibetter
    Member

    Did you activate it? and did you use a normal user to try posting? (keymaster remains all permissions)

    I noticed you probably use WP and bbPress together (by your recent posts), I have no idea if this code can work under that condition.

    * Sorry! I just realized that you meant 0.8. Well, I started to use bbPress from 0.8.3, so I don’t know is this compatible to 0.8. You need to check capabilities.php if available in 0.8.

    #2549
    mrwonderr
    Member

    I want to have one universal sidebar in my website for both WP and BB, but I can’t because I need a few BB Functions for it, particularly login_forms(). Is there a way to use login_forms() in WP?

    #61265
    jazbek
    Member

    Do you know if the Changes Roles Stuff plugin is compatible with bbpress 0.8? i installed it, but it doesn’t seem to be getting called. I have, in my-plugins/custom-roles.php:

    <?php
    /*
    Plugin Name: Changes Roles Stuff
    Plugin URI: http://www.livibetter.com/it/
    Description: Changes Roles Stuff
    */

    function ChangesRolesStuff($roles) {
    // Changes Key Master Role's display name to 'The Boss'
    $roles['keymaster']['name'] = 'The Boss';

    $roles['member']['capabilities'] = array('read' => true);
    $roles['moderator']['capabilities'] = array('read' => true);
    $roles['administrator']['capabilities'] = array('read' => true);
    return $roles;
    }

    add_filter('get_roles', 'ChangesRolesStuff');
    ?>

    but people can still post.

    #56763

    In reply to: Plugin: Avatar Upload

    mrwonderr
    Member

    To fix any odd problems regarding permissions, you can CHMOD it using PHP.

    Add the code above line 128 where it says "$success_message = "Your avatar has been uploaded.";

    chmod("/PATH/TO/FORUMS/".$config->avatar_dir . $user_filename, 0666);

    #61257

    In reply to: Show login name

    livibetter
    Member

    Replace line 194 in bb-avatar-upload.php

    $felidenticon = $identicon->identicon_build( $user->user_login, '', false, '', false );

    with

    $felidenticon = $identicon->identicon_build( (($user->display_name) ? $user->display_name : $user->user_login), '', false, '', false );

    PS. Just a quick guessing solution and I haven’t used this plugin.

    #61236
    livibetter
    Member

    Have you tried to search one in Extend?

    If you find no plugin and you can do code, I think you can check line 18 in /bb-post.php, line 479 in /bb-includes/capabilities.php.

    You need to check current user’s is allowed to start a new topic in specific forum or not in your filter hook.

    Just thoughts, but should work.

    PS. I think it’s better not to do too much that bbPress can’t by default, or you could suffer more after upgrading unless you completely know what you do.

    #61263
    livibetter
    Member

    1. remove /register.php or redirect it to somewhere, or replace it with your page (tell visitors your forum temporarily doesn’t accept new registrations) then you can skip step 2.

    2. remove register link from your login-form.php in you template folder.

    3. Use this. You may need these

    $roles['member']['capabilities'] = array('read' => true);
    $roles['moderator']['capabilities'] = array('read' => true);
    $roles['administrator']['capabilities'] = array('read' => true);

    #2548
    jazbek
    Member

    Hi,

    I am about to migrate my current bbpress site over to a new server and would like to freeze posting and registration so that the databases don’t get out of sync. I don’t really want to take the whole forum offline, though.. I’d like visitors to still be able to read through the existing posts. Does anyone know of a quick way to do this?

    TIA :)

    #2547
    honewatson
    Member

    I set up an integrated BBPress and MU WordPress on Nginx. There may be a better way of doing the rewrites but these work well for me.

    Here are the BBPress Nginx rewrites:

    location /forums/ {

    root /home/YOURDIRECTORY/public_html/forums;

    index index.php;

    if (!-e $request_filename) {

    rewrite ^/forums/topic/(.*)$ /forums/topic.php?q=$1 last;

    rewrite ^/forums/forum/(.*)$ /forums/forum.php?q=$1 last;

    rewrite ^/forums/profile/(.*)$ /forums/profile.php?q=$1 last;

    rewrite ^/forums/view/(.*)$ /forums/view.php?q=$1 last;

    rewrite ^/forums/tags/(.*)$ /forums/tags.php?q=$1 last;

    rewrite ^/forums/rss/(.*)$ /forums/rss.php?q=$1 last;

    rewrite ^/forums/bb-admin/ /forums/bb-admin/index.php last;

    rewrite ^/forums/ /forums/index.php last;

    break;

    }

    }

    Here’s a full write up here:

    http://dev.honewatson.com/bbpress-wordress-mu-integration-nginx-pretty-urls-rewrites/

    #61255
    bssfi
    Member

    Hi again

    I am just trying to post the banners in a thread.

    The plugin is already enabled, so that’s not the problem. Most of the banner codes seem to have the closing backslash missing in the closing img tag. It seems that bbpress is particularly fussy when it comes to this type of code.

    #2545
    bssfi
    Member

    This is a regular problem on my forum. bbpress seems to remove the image part of the banner as there is missing code. Usually I can work out where the missing tag goes. In the case of the following TradeDoubler code, I can’t! Any suggestions much appreciated.

    <script type=”text/javascript”>

    var uri = ‘http://impgb.tradedoubler.com/imp?type(img)g(16463372)a(1422608)&#8217; + new String (Math.random()).substring (2, 11);

    document.write(‘<img src=”‘+uri+'” border=0>‘);

    </script>

    #61192

    In reply to: Plugin: Gravatar

    suzkaw
    Member

    Here is a link to mine: http://www.68kb.com/2007/10/25/bbpress-plugin-68-gravatars/

    From browsing your code mine is way way basic. :) Just one function and one call. Also mine only uses the posters registered email as well.

    #61243
    livibetter
    Member

    echo make_clickable($content);

    If you pull posts from database, then trying to make it possible to use template functions may be a better solution.

    #61190

    In reply to: Plugin: Gravatar

    suzkaw
    Member

    I wish I would have seen this earlier. :) I just hacked in gravatar support by using the wordpress plugin. Since I didn’t see any listed in the extensions section I went ahead and applied to have mine added. I will go ahead and delete mine since their is really no point in having two.

    If you have any use for the code I used let me know I can send it on.

    #2541
    Null
    Member

    Hi,

    I’m trying to add a new custom page to my forum. It’s very simple, this is what I have so far:

    – 1 custom page called test.php

    – the page includes the forum header and footer

    – The content (middle) part is pulled from the db aswell

    All works fine except hyperlinks! Links like http://www.test.com will NOT appear as a hyperlink, but just as plain text. How to fix this? I want this to behave just like this textfield I am typing in right now (auto hyperlink converting).

    bbcodes like bold do work.

    _Null

    livibetter
    Member

    This plugin can validate more deeper. Not only the HTML tag’s attributes, but also the contents of attributes. You can set your own regular expression for attributes. For example, you want limit users to post Flash videos only from YouTube or Google, then you can restrain the src attribute.

    Sample posts: This post shows you an embedded YouTube video and this has a image floating at right side.

    Visit Plugin page or directly download HTMLTagAttributesValidator.php.

    Any comments on this plugin are very welcome.

    #61239
    livibetter
    Member

    I only tested one case, the dollar sign ‘$’ on my testing forum with commenting out the entire function bb_user_sanitize except last line. I can register with ‘$’ in username, post with that account and the username is showed correctly.

    #61237
    livibetter
    Member

    add a filter for bb_user_sanitize to allow those characters you need (choose carefully!). Check line 114 in formatting-functions.php for the parameters which you can use in your filter.

    I personally don’t agree to allow users having fancy or funny usernames. You may encounter more problems that you have never thought.

    #61232
    livibetter
    Member
    <?php
    /*
    Plugin Name: NoNewsPostsForMembers
    Plugin URI: https://bbpress.org/forums/topic/no-new-posts-for-members
    Description: No New posts for members
    */

    function NoNewsPostsForMembers($roles) {
    $roles['member']['capabilities']['write_posts'] = false;
    return $roles;
    }

    add_filter('get_roles', 'NoNewsPostsForMembers');
    ?>

    Put it in my-plugins with any filename.php you like. Activate it. Then this should work.

    #2537
    bluegeek
    Member

    Hello!

    I want to restrict new posts in bbpress only to moderators and admins. What is the best way to do it?

    I’ve found a very simple way editing capabilities.php but I would like to avoid editing the source code.

    'member' => array(
    'name' => __('Member'),
    'capabilities' => array(
    (...)
    'write_posts' => false,

    Thanks.

    #58177

    In reply to: bbSync

    zenonx
    Member

    So there should be special user that would “post” all such comments.

    Anyway, I can’t use this plugin because as soon as first comment appears, I’m not an admin anymore :(

Viewing 25 results - 28,801 through 28,825 (of 32,458 total)
Skip to toolbar