Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,376 through 24,400 (of 32,570 total)
  • Author
    Search Results
  • #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/';

    #15335
    lndasa
    Member

    I have installed bbpress under mysite.com/blog/wp-content/plugins/bbpress/ and its working fine along with blog (integrated). I would like to move it to mysite.com/forums. I physically copied the files to the mysite.com/forums folder and ran it gave an error saying “page not found” and then I commented out my bb-config.php to restart installation. It accepted DB values but in the Step 2 it went to the old location where it was installed mysite.com/blog/wp-content/plugins/bbpress/. So looks like the site path is hard coded in the database how do I address this.

    #76266
    _ck_
    Participant

    language files,

    in bbPress 0.9 go into bb-includes/languages/

    in bbPress 1.0 they go into my-languages/

    #76237
    _ck_
    Participant

    CyrNickName is virtually identical to the function linked above, they all take the same approach:

    function sanitize_user_cyr( $raw_username, $username, $strict = false ) {
    $raw_username = $username;

    $username = strip_tags($username);
    // Kill octets
    $username = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '', $username);
    $username = preg_replace('/&.+?;/', '', $username); // Kill entities

    // If strict, reduce to ASCII for max portability.
    // if ( $strict )
    // $username = preg_replace('|[^a-z0-9 _.-@]|i', '', $username);

    return apply_filters('sanitize_user_cyr', $username, $raw_username, $strict);
    }

    add_action('sanitize_user', 'sanitize_user_cyr', 0, 3);

    #76261
    bobbyh
    Member

    Arun, I’ve integrated bbPress before using sessions, it was very easy. :-)

    Here is the code: http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=54919#p54919

    #15347
    arun.kumar
    Member

    Hi,

    I am looking for developers to integrate bbPress sessions (authentication) with my website session. Some of the requirements to give you idea:

    1. Disable user registration and user login in bbpress, as users session from main website will be used in the forum.

    2. Install plugin to show recent posts.

    Pay rate is highly attractive. If your coding skills are impressive, you also get a chance to mod PHP website and rewrite PHP files to standards.

    If you are really strong in bbPress code, have excellent PHP, MySql, Apache and Linux skills (while Ruby is good to have), Please reach out to me at “arun.seattle@yahoo.com”.

    Thanks!

    Arun.

    #59367

    In reply to: Plugin: List Bookmarks

    bobbyh
    Member

    Haha, two people asked for this in one day after two years of no interest… :-)

    Here’s the download link: http://www.kosmosity.com/wp-content/uploads/2007/07/list_bookmarks.zip

    To be honest, I haven’t looked at this in two years. It doesn’t have any dependencies on bbPress, though, so it should still work. Let me know!

    #76158
    grassrootspa
    Member

    Hmmm…Have 2 idea to help (not sure what the issue is and am new at this)

    1) change the bar width from “width: 800px;” to maybe “width: 900px;” and see if it extends to where you want.

    2) If that does nothing (it might not) you want to try and stick the

    <?php include('andybar.php');?>

    for the bar DIRECTLY below where your “Origin Euphoria” banner” is in the WordPress theme header (assuming its not there already).

    Since that part of your WordPress CSS lets stuff go all the way to the border on each side the bar should expand and fit perfectly. (Maybe Its not the navbar css but the WordPress theme css preventing it to go all the way across.

Viewing 25 results - 24,376 through 24,400 (of 32,570 total)
Skip to toolbar