Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,626 through 24,650 (of 32,481 total)
  • Author
    Search Results
  • #75160
    r-a-y
    Participant

    Hi guys,

    FYI, I’ve updated the code for the BuddyPress bar in bbPress:

    https://buddypress.org/forums/topic.php?id=1152#post-18510

    It uses bbPress’ header and footer hooks, instead of WordPress’.

    The BP bar now also works in the bbPress admin area as well!

    #74311
    johnhiler
    Member

    Frooyo – I think you are going to set a record for posting the same thing over and over! :-)

    #75183
    michael3185
    Member
    .threadpost {
    font-size: 11.5pt; /* Post content */
    padding: 16px 10px;
    margin-left: 140px;
    }

    #74731
    the_Wish
    Member

    Thanks for the suggestion, Ipstenu.

    I think bbcode-lite has me covered for now, I dumped Allow Images altogether.

    #75036
    r-a-y
    Participant

    @Sam

    Thanks for elaborating on this new class! Anxiously waiting for bbPress v1 :)

    @Burt

    Off-topic, but… wow! Post-grad particle physics?

    #74799

    Allow Images works if you change this:

    remove_filter( 'pre_post', 'bb_encode_bad' );
    add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    to this

    // remove_filter( 'pre_post', 'encode_bad' );
    // add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    // add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    #75170

    In reply to: bb_meta corrupted?

    citizenkeith
    Participant

    Other than make another backup right now?

    Already done. :)

    I’m really concerned with all these MySQL errors I’m getting with MediaTemple. I’d love to find a solid, reliable host in the same price range, but I suppose you get what you pay for.

    #74730

    I was about to say “I use Allow Images without any problem”, but when I went to look at my files, I found I have an allow-images.php and an allow-images.orig … Clearly I found shenanigans somewhere down the road.

    Change this:

    remove_filter( 'pre_post', 'bb_encode_bad' );
    add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    to this

    // remove_filter( 'pre_post', 'encode_bad' );
    // add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    // add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    And Allow Images should work.

    #75035
    Sam Bauers
    Participant

    @r-a-y

    There is a major incompatibility between the memcached WP_Object_Cache class that is out there and BackPress. I’m about to add a newer class to BackPress itself that will replace the currently available one.

    Once that class is added to BackPress it should fix these problems and a few others I’ve found. You’ll be able to use the new class by adding the following define to your config:

    define( 'BB_OBJECT_CACHE_TYPE', 'memcached' );

    This will be part of bbPress 1.0

    #75130
    iang
    Member

    Thanks Sam…this is exactly what I needed to get me going after being stuck for days :-)

    For completeness, here is the first working version of my code:

    <?php

    require_once(‘../bb-load.php’);

    bb_get_header();

    ?>

    <script src=”../my-js/sorttable.js”></script>

    <?php

    $tbl_header=<<<EOD

    </br>

    <h3><center><font color=”#880000″>WBS80 Registered Users</font></center></h3>

    <center><i><font size=”2″>(click on table header to sort</font>)</i></center>

    </br>

    <table class=”sortable” width=’100%’ border=’1′ cellpadding=’4′ cellspacing=’0′ align=’center’>

    <tr>

    <th>lname</th>

    <th>fname</th>

    <th>email</th>

    <th>city</th>

    <th>state/province</th>

    <th>country</th>

    </tr>

    EOD;

    $user_ids = $bbdb->get_col( “SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;”, 0 );

    foreach ($user_ids as $key => $value) {

    if ($value == 1) {

    continue;

    }

    $users = bb_get_user( $value );

    $lname = strtolower($users->last_name);

    $fname = strtolower($users->first_name);

    $email = strtolower($users->user_email);

    $city = strtolower($users->city);

    $state = strtolower($users->state);

    $country = strtolower($users->country);

    $tbl_info .=<<<EOD

    <tr>

    <td>$lname</td>

    <td>$fname</td>

    <td>$email</td>

    <td>$city</td>

    <td>$state</td>

    <td>$country</td>

    </tr>

    EOD;

    }

    $tbl_footer = “</table>”;

    $tbl =<<<TBL

    $tbl_header

    $tbl_info

    $tbl_footer

    TBL;

    print $tbl;

    ?>

    <p><h3 id=”tag”>AGE QUOD AGIS</h3></p>

    <?php bb_get_footer(); ?>

    #15119
    smfadmin
    Member

    Hi everyone…I read some posts about this problem, but wanted to find out if a different or new solution had come about. I’ve read about an issue with PHP version 5 and needing to add code to the .htaccess file. I’ve also read about adding “dummy” lines to the database file. I wondered if there are any other solutions that might be easier to understand for someone with no coding skills. I am trying to integrate WP and BBPress. My site is brand new so I can reinstall everything if I have to. I saw the really great screencast that someone did, too. That was really helpful except that it didn’t work. :-)

    The error I get says “Forum could not be created”.

    #75156
    allenweiss
    Member

    thanks..just did that and get

    Fatal error: Call to undefined function wp_head() in /home/alumnide/public_html/forum/bb-templates/kakumei/header.php on line 33

    am I still missing some code?

    #75154
    allenweiss
    Member

    Ok..thanks…well, this is what I did, but it doesn’t work. I followed the advice given in the link above:

    1. Created a function called functions.php inside my template folder (bb-templates/kakumei/functions.php) and put in it the code:

    function recreate_bb_admin_bar() {

    echo ‘<div id=”wp-admin-bar”><ul class=”main-nav”>’;

    bp_adminbar_logo();

    bp_adminbar_login_menu();

    bp_adminbar_account_menu();

    bp_adminbar_blogs_menu();

    bp_adminbar_notifications_menu();

    bp_adminbar_authors_menu();

    bp_adminbar_random_menu();

    echo ‘</div>’;

    }

    add_action( ‘wp_footer’, ‘recreate_bb_admin_bar’, 8 );

    add_action( ‘admin_footer’, ‘recreate_bb_admin_bar’ );

    add_action( ‘wp_head’, ‘bp_core_admin_bar_css’, 1 );

    2. Added to my bb-config.php file, this line

    require_once(‘../wp-blog-header.php’);

    Am I still missing something? Thanks

    #75166

    Ok, now when I’ve added all the settings it’s giving me this error message on another screen.

    Warning: fopen(D:Hosting4030532htmlForums/bb-config.php) [function.fopen]: failed to open stream: Permission denied in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1036

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fwrite(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1043

    Warning: fclose(): supplied argument is not a valid stream resource in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1050

    Warning: chmod() [function.chmod]: No such file or directory in D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php on line 1052

    Warning: Cannot modify header information – headers already sent by (output started at D:Hosting4030532htmlForumsbb-adminincludesclass.bb-install.php:1043) in D:Hosting4030532htmlForumsbb-includesfunctions.bb-core.php on line 1095

    #15123

    I’ve been inputting my

    Database name

    Database user

    Database password

    exactly how they appear in “wp-config” (copy & pasted) but it keeps telling me

    “There was a problem connecting to the database you specified.

    Please check the settings, then try again.”

    I’m guessing it has something to do with the advanced settings, which I have not changed. I’m with GoDaddy but it said in 99% of all cases you should leave it the same.

    Any help guys? :(

    #75147

    Why not load the bbPress environment and then call function to check is user is logged in? I have done the same in WP, so I think it might be possible in bbPress very easily too.

    For WP

    // load the WP environment so that I can call on the WP functions to make sure that user is logged in before accessing members area
    require( dirname(__FILE__) . '/wp-load.php' );

    if (!is_user_logged_in()) // You can't access the members area without login. Now can you?
    {
    auth_redirect();
    }

    For bbPress, it should be like

    require('./bb-load.php');
    // find the name of the function you will need

    #75040
    yeknomedoc
    Member

    *push* ;)

    #75141

    Thanks guys. I must say this forum is very friendly. I will definately give this a go. If I have any problems I won’t hesitate to come back :-)

    #75152
    allenweiss
    Member

    Hmm..it looks like they say to use the functions.php file (for the theme) to add the code, but I don’t see such a functions file…am I missing something obvious?

    #75143
    chrishajer
    Participant

    The allowable HTML tags are in an array called bb_allowed_tags. I think you could create a plugin that just empties that array.

    https://bbpress.org/forums/topic/hooks-038-filters-docu#post-6740

    I’ve only seen people requesting the opposite, allowing additional HTML markup, so I’m not sure exactly how to do this.

    #75146
    michael3185
    Member

    I use this to stop people accessing the profile page unless logged-in;

    <?php if ( !bb_is_user_logged_in() ) {
    show_error_page('log-in to access profiles');
    exit;
    } ?>

    Something along those line should work with a link to somewhere else, assuming they’re in a bbPress page to begin with.

    #15116
    Burakhan
    Member

    Hi everyone,

    I want to disable HTML codes in posts. I am using “BBcode Lite for bbPress” and I dont need html codes to edit my post. When my member want to add a HTML code that is useful to forums the code works and havent seen properly. How can I disable?

    #73609
    Detective
    Member

    Now I get an odd behavior:

    – if the user logs in inside WP, he appears logged in in both WP and BB, but he can’t post in BB. If he has admin rights, he can’t see bb-admin.

    – if the user logs in inside BB, everything works ok in both WP and BB.

    So I redirected all logins to BB.

    In mu-plugins I added the following:

    function rk_login_redirect() {
    if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false && $_GET['action'] != 'logout' ) {
    $url = 'http://foros.ryuuko.cl/bb-login.php';
    $redirect = urlencode(wp_get_referer());
    $url = add_query_arg('redirect_to', $redirect, $url);
    wp_redirect($url);
    }
    }
    add_action('init', 'rk_login_redirect');

    In a plugin in my-plugins I added:

    add_filter('wp_redirect', 'rk_redirect_location');
    function rk_redirect_location($location, $status = 302) {
    $arr = array();
    $ref = wp_get_referer();
    $url_array = parse_url($ref);
    parse_str($url_array['query'], $arr);

    if (isset($arr['redirect_to']) && !empty($arr['redirect_to'])) {
    $url = urldecode($arr['redirect_to']);
    $url_array = parse_url($url);
    if (strpos($url_array['host'], 'ryuuko.cl') !== false)
    $location = $url;
    }
    return $location;
    }

    #75140
    johnhiler
    Member

    Yes, you can integrate your user databases and then cookie integrate. :-)

    Two questions:

    * Do you want to combine your two user account systems? If so, how will you handle it when two accounts have the same name in each system?

    * What version of WordPress are you using?

Viewing 25 results - 24,626 through 24,650 (of 32,481 total)
Skip to toolbar