Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 64,201 through 64,225 (of 64,511 total)
  • Author
    Search Results
  • #50775

    In reply to: Img tag plugin

    https://bbpress.org/plugins/topic/5

    (The plugin browser you’ll see at that link is still in the early stages of its development. Go easy on it :) )

    #680
    Hyper123
    Member

    I’m trying to install bbpress and the config file is correct. The error I receive is,

    microsoft.com/kb/q176113/ if ( !function_exists(‘wp_redirect’) ) : // [WP4273] function wp_redirect($location, $status = 302) { global $is_IIS; $location = preg_replace(‘|[^a-z0-9-~+_.?#=&;,/:%]|i’, ”, $location); $location = wp_kses_no_null($location); $strip = array(‘%0d’, ‘%0a’); $location = str_replace($strip, ”, $location); if ( $is_IIS ) { header(“Refresh: 0;url=$location”); } else { status_header($status); // This causes problems on IIS header(“Location: $location”); } } endif; if ( !function_exists(‘bb_verify_nonce’) ) : function bb_verify_nonce($nonce, $action = -1) { $user = bb_get_current_user(); $uid = $user->ID; $i = ceil(time() / 43200); //Allow for expanding range, but only do one check if we can if( substr(wp_hash($i . $action . $uid), -12, 10) == $nonce || substr(wp_hash(($i – 1) . $action . $uid), -12, 10) == $nonce ) return true; return false; } endif; if ( !function_exists(‘bb_create_nonce’) ) : function bb_create_nonce($action = -1) { $user = bb_get_current_user(); $uid = $user->ID; $i = ceil(time() / 43200); return substr(wp_hash($i . $action . $uid), -12, 10); } endif; // Not verbatim WP, bb has no options table and constants have different names. if ( !function_exists(‘wp_salt’) ) : function wp_salt() { global $bb; $salt = $bb->secret; if ( empty($salt) ) $salt = BBDB_PASSWORD . BBDB_USER . BBDB_NAME . BBDB_HOST . BBPATH; return $salt; } endif; if ( !function_exists(‘wp_hash’) ) : function wp_hash($data) { $salt = wp_salt(); if ( function_exists(‘hash_hmac’) ) { return hash_hmac(‘md5’, $data, $salt); } else { return md5($data . $salt); } } endif; if ( !function_exists(‘bb_check_admin_referer’) ) : function bb_check_admin_referer( $action = -1 ) { if ( !bb_verify_nonce($_REQUEST, $action) ) { bb_nonce_ays($action); die(); } do_action(‘bb_check_admin_referer’, $action); } endif; if ( !function_exists(‘bb_check_ajax_referer’) ) : function bb_check_ajax_referer() { global $bb; $cookie = explode(‘; ‘, urldecode(empty($_POST) ? $_GET : $_POST)); // AJAX scripts must pass cookie=document.cookie foreach ( $cookie as $tasty ) { if ( false !== strpos($tasty, $bb->usercookie) ) $user = substr(strstr($tasty, ‘=’), 1); if ( false !== strpos($tasty, $bb->passcookie) ) $pass = substr(strstr($tasty, ‘=’), 1); } if ( !bb_check_login( $user, $pass, true ) ) die(‘-1’); do_action(‘bb_check_ajax_referer’); } endif; if ( !function_exists(‘bb_break_password’) ) : function bb_break_password( $user_id ) { global $bbdb; $user_id = (int) $user_id; if ( !$user = bb_get_user( $user_id ) ) return false; $secret = substr(wp_hash( ‘bb_break_password’ ), 0, 13); if ( false === strpos( $user->user_pass, ‘—‘ ) ) return $bbdb->query(“UPDATE $bbdb->users SET user_pass = CONCAT(user_pass, ‘—‘, ‘$secret’) WHERE ID = ‘$user_id'”); else return true; } endif; if ( !function_exists(‘bb_fix_password’) ) : function bb_fix_password( $user_id ) { global $bbdb; $user_id = (int) $user_id; if ( !$user = bb_get_user( $user_id ) ) return false; if ( false === strpos( $user->user_pass, ‘—‘ ) ) return true; else return $bbdb->query(“UPDATE $bbdb->users SET user_pass = SUBSTRING_INDEX(user_pass, ‘—‘, 1) WHERE ID = ‘$user_id'”); } endif; if ( !function_exists(‘bb_has_broken_pass’) ) : function bb_has_broken_pass( $user_id = 0 ) { global $bb_current_user; if ( !$user_id ) $user =& $bb_current_user->data; else $user = bb_get_user( $user_id ); return ( false !== strpos($user->user_pass, ‘—‘ ) ); } endif; ?>

    Fatal error: Call to undefined function: bb_current_user() in forums/bb-settings.php on line 146

    I got the exact same kind of error yesterday while I was trying to install wordpress 2.0.5 but was able to install 2.0.4 no problem then upgrade to 2.0.5. Any help would be greatly appreciated.

    #49594

    In reply to: Emoticons For bbPress?

    n22
    Member

    not working.. i m sure its my problem, cause i know only HTML but not PHP.

    anyone can tell me exactly where to put “<?php bb_do_action(‘bb_grins’); ?> ” ??

    thanks a lot

    #50666

    In reply to: Installation problems

    Some of your settings aren’t quite right.

    $bb->domain = ‘http://domain.com&#8217;;

    $bb->path = ‘/cms/forums/’;

    $bb->wp_prefix = ‘wp_’; // or whatever the prefix is. It should not be true

    Try that on, and let us know.

    Also, I’m not sure what you mean by the links being broken in the bbpress-integration WordPress plugin. Can you explain it differently?

    #50767

    I don’t know about other wiki software, but I happen to know that the blicki plugin for WP is under active development.

    http://dev.wp-plugins.org/browser/blicki/trunk/

    I couldn’t find a real webpage for it yet. Soon, I’m sure.

    #50090

    also happening is: when I click on the link “Your First Post” (or somesuch) I get this error…

    “Too many redirects occurred trying to open “http://mydomain.com/cms/bbpress/topic.php?id=1”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.”

    anyone know why this is happening?

    #50665

    In reply to: Installation problems

    got past the styleshhet issue – and all – got bbpress installed.

    when I click on the link for the first post, I get this error…

    “Too many redirects occurred trying to open “http://mydomain.com/cms/bbpress/topic.php?id=1”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.”

    anyone have any clues to help?

    #49593

    In reply to: Emoticons For bbPress?

    fuknrekd
    Member

    Great job. Dropped right in, went right to work.

    Thanks!

    #50747

    In reply to: img tags

    heh.. didn’t notice that. It is exactly the same.

    oh well, at least one can place images now. Glad we got this one figured out. If I ever implement bbpress on a wide scale, that will be the first thing users ask me. :)

    #828

    Topic: Img tag plugin

    in forum Plugins
    AphelionZ
    Participant

    Somebody should take the work done here and make it into a plugin, preferably one that will allow the use of img tags between code tags.

    You will be a hero.

    #50745

    In reply to: img tags

    in formatting-functions.php I added this under the function encode_bad:

    $text = preg_replace('|<(/?img.*?)>|', '<$1>', $text);

    under function bb_allowed_tags() I added this:

    'img' => array(

    'src' => array(),

    'alt' => array(),

    'title' => array()),

    for an example see this post I made where it succeeded.

    http://meeciteewurkor.com/bbpress/topic/7?replies=2#post-21

    I added the /bb-images/bbpress.png image in a post. yay!

    #50741

    In reply to: img tags

    AphelionZ
    Participant

    function outlet_encode_bad( $text ) {

    $text = wp_specialchars($text);

    $text = preg_replace('|<(/?strong)>|', '<$1>', $text);

    $text = preg_replace('|<(/?em)>|', '<$1>', $text);

    $text = preg_replace('|<(/?a.*?)>|', '<$1>', $text);

    $text = preg_replace('|<(/?ol)>|', '<$1>', $text);

    $text = preg_replace('|<(/?p)>|', '<$1>', $text);

    $text = preg_replace('|<(/?img.*?)>|', '<$1>', $text);

    $text = preg_replace('|
    |', '
    ', $text);

    $text = preg_replace('|<(/?ul)>|', '<$1>', $text);

    $text = preg_replace('|<(/?li)>|', '<$1>', $text);

    $text = preg_replace('|<(/?blockquote.*?)>|', '<$1>', $text);

    $text = preg_replace('|<(/?code)>|', '<$1>', $text);

    $text = preg_replace(“|(.*?)|se”, “‘' . encodeit('$1') . '‘”, $text);

    return $text;

    }

    ..should work, but doesn’t.

    Ok, how bbPress does it is that it takes every < and > and replaces them with the &lt; and &gt; characters.

    Then, it goes through the above list (the exceptions) and turns the lt’s and the gt’s back to actual <‘s and >’s. I can’t get it to recognize the img tag though, because regular expressions confuse the hell out of me. If anybody can get it to recognize the img tags, you’d be making a lot of people happy. For now I am going to take a break…

    #50740

    In reply to: img tags

    peiqinglong
    Member

    I would also like to know if there is an img plugin/rewrite for bbpress.

    #827
    xxp
    Member

    Does WordPress or WordPress MU directly integrate with any Wiki engines?

    How about bbPress?

    I see that you guys use Trac, so I’m guessing that the answer currently is “no”, but just want to go to the source to be sure.

    Thanks.

    “directly integrate” = e.g.:

    – share user database and authentication

    – share tags

    – have directly shareable presentation modules for CMS purposes (e.g., for nav blocks, ad blocks, footer blocks)

    – share a common design / performance philosophy &/or strategy.

    #49808

    In reply to: FAQ

    HOW do you make the plugins work?

    the “display-name.php” file adds a header of broken links and mod info (which I don’t understand) to the beginning of every install page but otherwise appears to not do anything.

    and the “bbpress-integration.php” plug-in for WordPress (I’m using 2) adds the same “Trac” information at the top of every loaded WP page…(!!!)

    very frustrating… =(

    help?

    #50734

    In reply to: img tags

    AphelionZ
    Participant

    I just tried plugin-izing that but it didn’t work either… what are we missing?

    <?php

    /*

    Plugin Name: Allow <img> tags in posts

    Plugin URI: https://bbpress.org/forums/topic/149

    */

    function outlet_bb_allowed_tags() {

    $tags = array(

    'a' => array(

    'href' => array(),

    'title' => array(),

    'rel' => array()),

    'img' => array(

    'src' => array(),

    'alt' => array(),

    'title' => array()),

    'blockquote' => array('cite' => array()),

    'br' => array(),

    'code' => array(),

    'em' => array(),

    'strong' => array(),

    'ul' => array(),

    'ol' => array(),

    'li' => array()

    );

    return apply_filters( 'bb_allowed_tags', $tags );

    }

    add_filter( 'bb_allowed_tags', 'outlet_bb_allowed_tags', -1, 3);

    ?>

    #50040

    In reply to: Can’t Login…

    I have the problem described by DawudM (above) – so to answer mdawaffe’s question:

    “After you try to login, does it still display the login form or does it instead show you the profile, admin, and logout links?”

    it show’s the first page of bbPress with the login info correct in the header (two fields with entered text); the correct account in the body with “first post!” etc but unable to add, delete, initiate etc – anything.

    just stuck.

    then after hitting a few of the page links (those that don’t allow you to do anything) then bbPress fails to recognize me as admin – or a user in its dbase.

    ideas?

    thanks in advance

    devils_advocate

    #50089

    Ok. found a css sheet, a new header and image files from Fernando_Graphicos <http://fernando.dubtribe.com&gt; and got the forum up and running but it won’t let me add a forum, doesn’t recognize me as admin [after initial screen] etc…

    ??

    help?

    #50039

    In reply to: Can’t Login…

    otilija
    Member

    I think I am having the same problem, when i log in to WP and then go to bbpress the user name field is populated with my wp username and the password field is blank. Any leads??

    #50703

    In reply to: freshness = -1 years

    AphelionZ
    Participant

    https://bbpress.org/forums/topic/30?replies=5

    looks like this is already being discussed – the time zone isyour server time, not yours. the two may be different. My server is in California while I like on the east coast… i had to set it to -7.

    #50712

    In reply to: bbPress 0.73 released

    AphelionZ
    Participant

    Now you guys just need to make a wiki, and a gallery!!! :-D

    #824
    peiqinglong
    Member

    Greetings all! I’m having a slight problem, for some odd reason when I create a new topic, it seems to create fine, but it doesn’t appear in any of the lists. I’ve tried readding the entire forum and what not to no avail. Here’s the link: http://dev.abunchofcars.com/forum/

    Also when I try creating a new user through WP, it doesn’t show up in BBPress even though I’m using the WP plugin. Am I doing something wrong? Thanks!

    #50465
    peiqinglong
    Member

    It was a bit fustrating in the beginning, but I’m finding it kind of fun. It’s a good back-to-basic-code refresher for me. Here is a little modding I’ve been doing: http://dev.abunchofcars.com/forum/ and I like its pretty easy to integrate into WP since its practically built off the same engine.

    #822
    fritton
    Member

    Hello,

    It looks like I’ve successfully installed BBpress, but when visitors (or admin) click on a forum post from internet explorer, the page hangs and times out. The post is never displayed. The same thing happens when trying to create a new post.

    Is there some firewall issue with my host? Any ideas would be greatly appreciated.

    Thanks!

    #50701

    In reply to: freshness = -1 years

    thanks nolageek. I’ve actually had that part correct. After messing around, now only one topic is like that. The other is fine.

    In fact the default topic that was made called “Your first topic” portrays the correct “freshness”. All new topics give the -1 year weirdness. I’ll keep tinkering.

    http://meeciteewurkor.com/bbpress/

Viewing 25 results - 64,201 through 64,225 (of 64,511 total)
Skip to toolbar