Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,276 through 24,300 (of 32,468 total)
  • Author
    Search Results
  • #76355
    johnhiler
    Member

    Akismet looks at a number of factors – ranging from email addresses to IPs and the texts of posts.

    _ck_ also suggested not trying to test Akismet with spammy comments:

    I don’t recommend trying to purposely cause spam to test it because akismet might flag you globally as a spammer and you’ll end up being bozo’ed across multiple forums/blogs.

    https://bbpress.org/forums/topic/what-do-your-posters-see-when-their-posts-as-flagged-by-akismet#post-31467

    I’ve marked a few posts as spam on my forum, and noticed that every subsequent comment by that user got flagged by Akismet. Your mileage may vary… but you’re welcome to take your chances. :-)

    #76354
    Rhys Wynne
    Participant

    I’m not entirely sure how Akismet works, but doesn’t it work with matching email addresses to known spammers, rather than forum names?

    I also think to trigger Akismet’s wrath, you’d also have to go on a mass commenting/spamming over a multitude of forums.

    Just activate it, and if you’re not getting spam, assume it’s working :)

    Driftless
    Member

    So… I’m thinking the secret lies somewhere here:

    bb-includes/functions.bb-users.php Lines 171+:

    if ( count( $wordpress_roles_new ) ) {
    bb_update_usermeta( $user, $wordpress_table_prefix . 'capabilities', $wordpress_roles_new );
    bb_update_usermeta( $user, $wordpress_table_prefix . 'user_level', max( $wordpress_userlevels_new ) );

    Can I just change the 3rd argument to keep it null?

    Of course, there is also the next few lines dealing with: function bb_apply_wp_role_map_to_orphans()

    In short — how can I prevent bbpress from messing with my WPMU settings ever!? And I mean – never ever! If I want to change the MU settings, I’ll do it in MU.

    Bad bbpress! No! Bad program. Go to your room. ;)

    Even when a new user registers in BBpress – let em be orphaned in MU… whats the harm?

    (Stop… think… how will the affect cookies… if a user goes to MU, and there is no setting for them, but they have a shared cookie saying they are logged in, MU will FREAK OUT!… So, something needs to change on MU’s end to say: if this happens, (cookie says logged in, but no role for you!) no biggie, stay cool, just pretend the user is not logged in…. Oooooh…. am I on to something?)

    #76280
    Wattskemov
    Member

    I find the AUTH_SALT etc. in my wp-config.php file. But I still can’t share the cookies after I have done all stuff.

    Here is my bbPress admin image:

    http://www.waterlin.org/tmp/bbPress_Cookies_integration.png

    I notice that there is on sentence in bbPress document:

    https://bbpress.org/documentation/integration-with-wordpress/

    Here is the sentence:


    This feature requires your WordPress and bbPress installations to exist in the same domain name, or at least in sub-domains of the same domain name.


    I install WPMU into the root of my virtual host; then I install bbPress into the path /forum/

    I don’t know if bbPress will work when it is in the sub-folder of WPMU?

    #76353
    johnhiler
    Member

    If you’re not getting spam, then you don’t have to worry too much if it’s working or not!

    What I usually do on a new install is set it up with Akismet and then wait a week or so… for it to catch its first piece of spam! :-)

    Definitely do not try and “test” Akismet, as you don’t want to get blacklisted from all sites that use Akismet!

    #75093
    Rhys Wynne
    Participant

    Thanks CK :)

    #75377

    In reply to: bbPress 1.0 released

    gardenfl
    Member

    “Is there any easy way to search for plugins that are compatible with the bbPress 1 branch?”

    BBcode, Add image, the video plugin all worked perfectly for me.

    #15365
    #15364
    Paul
    Member

    i’m having a problem with unescaped characters showing up in my forum entries – for instance, if there’s an apostrophe in an entry, it gets displayed as ' when people read the forum. if you later edit that entry, the next display is \' and so forth. it seems as if the engine isn’t un-escaping the characters.

    i’m using bbPress 1.0.1 and wordPress 2.8.1 at http://trashfilmorgy.com/

    #75374

    In reply to: bbPress 1.0 released

    No, especially because not all plugins that work with 1 are labeled as such :/

    #76305
    _ck_
    Participant

    The problem is the way the plugin is written, the same filter is used for the title and such.

    the post_text filter can also pass the post_id which you can use to lookup the forum the post is in but you’d have to modify more of the plugin to not use the post_id

    you can try modifying this

    add_filter('post_text', 'censor_post_text');

    to

    add_filter('post_text', 'censor_post_text',10,2);

    so it then passes the post_id

    Then change this

    function censor_post_text($post) {

    to this

    function censor_post_text($post,$post_id=0) {

    and then add this after the above

    if (!empty($post_id)) {$temp=bb_get_post($post_id); if ($temp->forum_id==20) {return $post;}}

    #76293
    _ck_
    Participant

    bb_is_user_logged_in() is right there, still in 1.0.1

    The problem is you are checking too early, right when the plugin loads which is too soon.

    A user is not determined as logged in until bb_init happens. So you have to make a mini-plugin

    add_action('bb_init','check_login');
    function check_login() {
    if(!preg_match("/bb-login.php/", $_SERVER["SCRIPT_NAME"]) && !bb_is_user_logged_in()) {
    header("Location: " . $bb->uri . "bb-login.php");
    die("Authorisation required.");
    }
    }

    #76296

    In reply to: howto find user ids?

    _ck_
    Participant

    You could temporarily turn off pretty permalinks and you’ll see their id in the url.

    You can also use this mini-plugin to show their user id in the profile

    add_filter( 'get_profile_info_keys','bb_member_id_in_profile',255);
    function bb_member_id_in_profile($keys) {
    global $self;
    if (empty($self)==true && isset($_GET['tab'])==false && bb_get_location()=="profile-page") {
    (array) $keys=array_merge(array_slice((array) $keys, 0 , 1), array('ID' => array(0, __('Member #'))), array_slice((array) $keys, 1));
    }
    return (array) $keys;
    }

    #15362
    thekmen
    Member

    I am using the C*nsor posts plugin on bbPress 1.0.1, works perfectly…

    However, I want to disable the censor on one forum.

    the function used in the plugin is:

    function censor_post_text($post) {

    if (!bb_get_option('censor_enable')) {return $post;}
    $words = bb_get_option('censor_words');
    if ($words[0]=='') return $post;
    foreach ($words as $key => $word) {
    $words[$key] = '/b('.preg_quote($word).')b/i';
    }
    $replace = array();
    $numwords = sizeof($words);
    for($i = 0; $i < $numwords; $i++) {
    array_push($replace, "****");
    }
    $clean_post = preg_replace($words, $replace, $post);
    return $clean_post;

    }

    anyone know how I would add something like – if not in form id 20 – to the above?

    #76279

    For example, where is WordPress “auth” cookie salt in WPMU? I also can’t find WordPress “secure auth” cookie salt & WordPress “logged in” cookie salt in my WordPress admin page.

    You just listed them.

    The WordPress “auth” cookie salt in WPMU is in your wp-config.php file: define('AUTH_SALT', 'bliddyblah');

    If you’ve done that correctly, you should see something like this: http://img268.yfrog.com/img268/8247/bbpresssettings.gif

    I wiped out my cookies and URL, but you should get the idea.

    #15360
    4crickj
    Member

    I want to check if the visitor is logged in, I can’t find a function that works in version 1.0.1 (such as bb_is_user_logged_in(), is_user_logged_in(), bb_is_logged_in() and is_logged_in() ). All of those functions raise the “Call to undefined function” error.

    I am trying to make my forum private, redirecting all users that are not logged in to the login page. The following code is in my functions.php theme file:

    if(!preg_match("/bb-login.php/", $_SERVER["SCRIPT_NAME"]) && !bb_is_user_logged_in()) {

    header("Location: " . $bb->uri . "bb-login.php");

    die("Authorisation required.");

    }

    Any help is appreciated.

    #75755
    ademmler
    Member

    Thanks, I have done so and it works :)

    #76208
    _ck_
    Participant

    Are you certain you have bbpress installed under your /forums/ directory?

    Because I am fairly certain you don’t.

    If you did, this would work

    http://absolute-truth.net/forums/license.txt

    (unless you deleted that file, which is unlikely)

    /forums/ should be at the same level that /blog/ is

    #76206
    _ck_
    Participant

    The cookies are a different problem, you have to set the cookies to use the root / and not a sub-folder.

    See if it allows you into

    http://absolute-truth.net/forums/bb-admin/options-general.php

    and/or

    http://absolute-truth.net/blog/wp-content/plugins/bbpress/bb-admin/options-general.php

    and change the bbPress address (URL)

    #74855
    Göran
    Member

    I opened the .mo file and changed “sullat” to “tappat” in it using a text editor and saved the change and uploaded it and ir worked. It should perhaps not have been possible but it was!

    The second part of my question now seems strange since I pasted what in my e-mail looked like Ditt anv&auml;ndarnamn &auml;r: Gran Lindgren but it displayed correctly here!

    #76270
    _ck_
    Participant

    Or just try putting this into your bb-config.php

    $bb->uri = 'http://your-domain-name.com/forums/';

    #75728
    _ck_
    Participant

    I noticed many of the old constants are not defined anymore by default.

    A few plugins, definitely not all just a few, may be fixed somewhat by adding this to bb-config.php

    define('BB_LOAD_DEPRECATED',true);

    #76204
    _ck_
    Participant

    You don’t actually have bbpress installed underneath wordpress do you?

    http://absolute-truth.net/blog/wp-content/plugins/bbpress/

    if so, that’s really not good design

    move it to http://absolute-truth.net/forums/

    bbPress is not a wordpress plugin, it’s a standalone program

    #74854
    _ck_
    Participant

    .mo files cannot be directly edited, you need to use a tool like poedit http://www.poedit.net/ to correct the .po file and then compile it to .mo

    #76202
    _ck_
    Participant

    Try putting this into your bb-config.php

    $bb->uri = 'http://your-domain-name.com/forums/';

Viewing 25 results - 24,276 through 24,300 (of 32,468 total)
Skip to toolbar