Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,701 through 25,725 (of 32,481 total)
  • Author
    Search Results
  • #71664
    chrishajer
    Participant

    Yes, probably. You can see if that’s the problem by logging in as keymaster and going to the Admin section, then Settings > General (sometimes this is the URL http://wat2.com/bb-admin/options-general.php). Once there, change “Pretty Permalink Type” to “None” and then try your forum. If your forum is usable after that, then yes, it’s because bbPress is trying to use permalinks, but you have not set up the .htaccess file with rewrite rules.

    You can create the rewrite rules by accessing this URL in your forum:

    http://wat2.com/bb-admin/rewrite-rules.php

    Now, take the output from that browser window and paste it into a .htaccess file in the forum root (/home/web/htdocs/whatever/wat2/.htaccess) on your server. Once that’s done, change the permalink setting back to one of the other two options (Numeric or Name based) and then try accessing topics and the profile page in your forum.

    https://bbpress.org/documentation/faq/#pretty-permalinks

    (I don’t recommend the Options +MultiViews line, but that does work for some people instead of creating the rewrite rules in the browser). Be sure you’re logged in as keymaster before you try to access http://wat2.com/bb-admin/rewrite-rules.php or it won’t work.

    #61939

    In reply to: Excerpts

    salemw
    Member

    Well my friend found a solution for me and in case I wasn’t the only one asking for excerpt RSS

    here it is:

    Add this function to functions.bb-template:

    // excerpt for rss
    function post_text_excerpt( $post_id = 0 ) {
    echo apply_filters( 'post_text', get_post_text_excerpt( $post_id ), get_post_id( $post_id ) );
    }

    function get_post_text_excerpt( $post_id = 0 ) {
    $bb_post = bb_get_post( get_post_id( $post_id ) );
    // Number max of characters
    $max_rss=250;
    $excerpt_rss = $bb_post->post_text;

    if (strlen($excerpt_rss)>$max_rss) {
    $excerpt_rss = substr(ltrim($excerpt_rss), 0, $max_rss);
    preg_match('<code>.+(?=[,;.])</code>s', $excerpt_rss, $out1);
    preg_match('<code>.+(?=[ ])</code>s', $excerpt_rss, $out2);
    if ( ( strlen($out2[0]) - strlen($out1[0]) ) < $tronque_maxi) {
    $excerpt_rss = $out1[0];
    } else {
    $excerpt_rss = $out2[0];
    }
    if (preg_match('<code>.+(?=(de|du|dans|le|la|a|à)$)</code>s', $excerpt_rss, $out3)) {$excerpt_rss = $out3[0];};
    return $excerpt_rss."...";
    } else {
    return $excerpt_rss;
    }
    return apply_filters( 'get_post_text', $excerpt_rss, $bb_post->post_id );
    }
    // end excerpt for rss

    And replace post_text() par post_text_excerpt() in my-templates/your_template/rss2.php

    The author website:

    http://messouvenirs.net/

    #71902

    In reply to: Why isnt…..

    Just because you’re brother and sister doesn’t mean you wear the same clothes. ;)

    You have a totally valid point, and I think once the development process is mostly *over* that making things pretty will be addressed, but right now I think the consensus is that making it all pretty is wasted effort because of how quickly each platform changes.

    #4861
    Burt Adsit
    Member

    I’ve got this plugin up to something testable and releaseable. v0.21


    Description


    Enable BuddyPress group forum features in bbPress.

    BuddyPress has three types of groups. Public, Private and Hidden. In all three cases users must be members of a group to participate in group forum conversations.

    These two plugins modify a standard bbPress forum installation to allow BuddyPress group members to carry on discussions in bbPress.

    BuddyPress public groups will be read only in bbPress. Anyone wishing to participate in a public group discussion must be a member of that group in bp.

    BuddyPress private and hidden groups will be hidden in bbPress. Only members of these groups will see the forums and be able to participate.

    BuddyPress group admins and mods have moderator privileges in bbPress. The moderator role is restricted to their group forum.

    Read more and download:

    http://code.ourcommoninterest.org/2009/02/14/buddypress-group-forums-for-bbpress/

    #71901
    chrishajer
    Participant

    Use <?php if ( !bb_is_user_logged_in() ) : ?> then if that comes back true (they’re not logged in) display your message.

    Examples of this can be found in the front-page.php template file.

    #68476
    C Bog
    Member

    i have spent some time now analyzing the code of bbpress and wordpress.

    it seems to me that an update of the old bbpress code (version 0.9.0.4) is unfeasable, because sam already managed to succesfully integrate version 1.0 with wordpress 2.7.1

    all you have to do in order to use bbpress alpha with the recent versions of wordpress is to follow the bbpress installation instructions and it will work out of the box.

    there is still some work to be done. as far as i can tell, bbpress and wordpess use multiple cookies for multiple paths. the one they share is the one for the root path. so… if you login into wordpress, you won’t be logged in into bbpress admin section. this does not happen the other way arround.

    it is not recomended though to use the alpha version in production sites. for now, it seems that a downgrade of wordpress would be the best solution.

    #68474
    C Bog
    Member

    as far as i can see, by studying the code, wordpress has introduced a salt for hashing the passwords since 2.5

    bbpress (my version is 0.9.0.4) has not updated it’s functions to include this salt.

    the alpha release of bbpress 1.0 seems to take care of this problem, but the file structure, as far as i can see is completely different from the older versions, so a simple copy & paste wouldn’t do.

    maybe the stable 1.0 release will take care of this issue, but since then (i don’t recommend using the alpha version on production web sites) i will try to modify the pluggable.php file of bbpress 0.9.0.4 in order to allow the usage of salts.

    i’ll be back these days with further details.

    #71883
    pro101
    Member

    OK — I stumbled upon the FAQ and saw the htaccess code to add. I LOVE the URLs, could never get to this in phpBB. If this thing is secure, I’m going to love bbPress. Kudos to the dev team, very cool forum software!

    And thanks Angie!

    #4849
    pro101
    Member

    Hi all: I’m a WP2.7 user and find the idea of running our forum on bbPress very interesting. Only issue is the Alpha level of 1.0 code and inability to use the 0.9 GA with WP2.7.

    – any idea when we can expect a stable enough beta?

    – if I decide to install the Alpha release on a separate DB (just to insulate our live WP site), will there be an easy path later on to consolidate for single login when bbPress 1.0 goes GA?

    #71775

    I think it’s less chicken/egg and more apples/oranges.

    Different people like blogs than like forums, and topics in blogs rarely are formatted in the way you would for a forum. Your mileage may vary, of course, but a beautifully crafted blog post, in my experience, is a tl;dr post on a forum. Not to mention the SEO implications :/

    #71866
    tfab69fr
    Member

    Unfortunately this causes an error:

    Fatal error: Cannot redeclare _http_build_query() (previously declared in E:wampwwwrs_prod_nextforumbb-includesbackpressfunctions.compat.php:21) in E:wampwwwrs_prod_nextwp-includescompat.php on line 45

    #71867
    johnhiler
    Member

    You could use create a new Role, and then restrict access to a specific forum only to people in that role or higher using Hidden Forums:

    https://bbpress.org/plugins/topic/hidden-forums/

    You’d still need a hook into Paypal, if you wanted to automate purchasing of access to your premium forum… but you could take that code from some of the existing WordPress or WordPress MU programs out there?

    #59105

    In your bb-config:

    $bb->wp_table_prefix = 'wp_econome'; // WordPress table prefix. Example: 'wp_';

    In your wp-config:

    $table_prefix = 'wp_econome_'; // Only numbers, letters, and underscores please!

    Looks like you’re missing an underscore in bb-config.

    Also try changing this on your bbconfig: $bb->sitecookiepath = '/starteconome/blog/';

    #59104
    lasthero
    Member

    I have done all the above directions but still can’t seem to get anything to work. It is not detecting the cookie and having be already logged in to bbpress after wordpress login. I have been working on this for some time.

    I have the exact same scenario that schmitt has at the beginning of this thread.

    Please help me out here, I have posted several thread but no one has helped me or taken a look at my config files.

    Here they are:

    bb-config.php

    <?php

    // ** MySQL settings ** //
    removed for security

    define('BBDB_CHARSET', ''); // If you are *upgrading*, and your old bb-config.php does
    define('BBDB_COLLATE', ''); // not have these two contstants in them, DO NOT define them
    // If you are installing for the first time, leave them here

    // Change BB_SECRET_KEY to a unique phrase. You won't have to remember it later,
    // so make it long and complicated. You can visit https://www.grc.com/passwords.htm
    // to get a phrase generated for you, or just make something up.
    // If you are integrating logins with WordPress, you will need to match the value
    // of the "SECRET_KEY" in the WordPress file wp-config.php
    define('BB_AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('BB_SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('BB_LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('BB_SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey'); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,
    // you will probably want to change this.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // Change this to localize bbPress. A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BB_LANG to 'de'
    // to enable German language support.
    define('BB_LANG', '');

    /* Stop editing */

    if ( !defined('BB_PATH') )
    define('BB_PATH', dirname(__FILE__) . '/' );
    require_once( BB_PATH . 'bb-settings.php' );

    // The rest is only useful if you are integrating bbPress with WordPress.
    // If you're not, just leave the rest as it is.

    $bb->wp_table_prefix = 'wp_econome'; // WordPress table prefix. Example: 'wp_';
    $bb->wp_home = 'http://www.fabuso.com/starteconome/blog'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = 'http://www.fabuso.com/starteconome/blog'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    $bb->usercookie = 'wordpress_logged_in_my has here';
    $bb->passcookie = 'wordpress_logged_in_my has here';
    $bb->cookiedomain = 'fabuso.com';
    $bb->cookiepath = '/';

    ?>

    wp-config.php

    <?php
    // ** MySQL settings ** //
    removed for security

    // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
    // so make them long and complicated. You can visit https://api.wordpress.org/secret-key/1.1/
    // to get keys generated for you, or just make something up. Each key should have a different phrase.
    define('AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey');
    define('COOKIE_DOMAIN', 'fabuso.com');
    define('COOKIEPATH', '/');

    $wp->cookiepath = '/';
    $wp->sitecookiepath = '/';
    define('SITECOOKIEPATH', '/');

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_econome_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

    #4843
    tfab69fr
    Member

    Hi all

    After upgrading:

    WP2.5 -> 2.7

    BBPress 0.9.4 -> 1.0 alpha 6

    WP is running badly.

    In order to get access to functions of BBPress, I have these lines at the end of wp-config.php:

    if ( !defined('BBDB_NAME') )

    require_once(ABSPATH.'forum/bb-load.php');

    Into the index.php of my WP theme, I wish to display the last topics of the forums, by doing:

    <?php

    $forums = get_forums();

    $topics = get_latest_topics();

    $super_stickies = get_sticky_topics();

    for ($i=0;$i<3;$i++){

    $topic = $topics[$i];

    ?>

    " title="See the message of <?php topic_author();?>"><?php topic_title();

    <?php } ?>

    The display of the latest messages was working well and still working well after the upgrade, BUT WORDPRESS GETS INTO TROUBLE:

    – the css style for the back admin of WP is not working

    – the hooks into the plugins are not called anymore (add_action(‘wp_head’, ‘init_js’); where init_js() is never run)

    – custom query vars are not detected into the url

    Well, when I remove the require_once into the wp-config.php (see below), the trouble disappear.

    //if ( !defined('BBDB_NAME') )

    //require_once(ABSPATH.'forum/bb-load.php');

    How to get it working with the bbpress function without trouble in WP ?

    I think this is a very important point for the BBPress integration in WordPress

    Thanks

    #71754

    Go to bb-admin/options-wordpress.php

    Scroll down to Manual bbPress config file settings

    Copy that stuff into your bb-config.php

    #4840
    rossmcd
    Member

    Ok, i have a mysql database and i added a karma section to users but no matter what i try i can’t get it to print. i do $karma = $bbdb -> get_results(then the tested normally sql select code here) then i put echo $karma->karma. but it prints nothing

    #4838
    Dwenaus
    Participant

    I have to integrate some sort of forum in a WPMU 2.6.5 website that will be going live in 20 days. I’d love to use bbPress but not sure which version I should use. the stable .9 release (which as far as I can tell does not integrate well) or the 1.0 alpha and hope for the best. any advice would be apprecated. It is essential for us to have unified login, other features are less important. thanks in advance :)

    #4810
    ginelle816
    Member

    Hi, I am new to wordpress and do not know why when I try to go to my website: http://www.lifeonholdmusic.com, all of the sudden this error message:

    Fatal error: Call to undefined function: get_header() in /home/content/l/i/f/lifeonhold/html/index.php on line 7

    appears! I don’t believe I made any changes and I suddenly got this error and don’t know what to do! any help would be greatly appreciated :)

    #63390
    mikeumus
    Member

    chrishajer, are you aware of the code in bbPress which takes the _wp table(required upon WordPress and bbPress integration) and somehow uses it in integration? If so, that might be a solution.

    I found a a program which takes two MySql tables and makes a table consisting of those two tables contents. Here it’s description:

    MySQL Join Two Tables Software 7.0 – Download

    Combine (horizontally) two MySQL tables into one based on a common column of data from each table. The original two tables are not altered but a new table is created with the results.

    Download here. Secure-order personal license for product here.

    Check out other software at http://www.sobolsoft.com

    _________________________________________________________________________________________

    I don’t think this will work however because of the multiple references to wp_users, and bb_users.

    I just thought of something, would it work if I changed apltest’s users table to be called wp_users(or bb_users)(along with changes all references to the users table in the APL code to wp_users)?

    Thanks for your input.

    8D

    #70328
    firstangel
    Member

    It all went well until…

    I can log into both as admin fine using the same username and password, so integration worked well, BUT, if I log into the forum I have to then log into the WP too, and vice versa, it doesnt do both at once.

    I try and go to the post thats there to read it and it takes me to my WP 404 page.

    The intial welcoming message that comes with BBPress is at http://1stangel.co.uk/art/friends/topic/your-first-topic

    My WP is http://1stangel.co.uk/art and the BBPress is at http://1stangel.co.uk/art/friends

    I followed the video really carefully :(

    So two problems. One pretty major lol

    #63389
    mikeumus
    Member

    Here are two links to the whole apltest database(2.jpg starts off down the table list where 1.jpg left off):

    http://i177.photobucket.com/albums/w220/mikeumus/2.jpg

    #63388
    chrishajer
    Participant

    Can you take a screenshot of the listing of tables in the two databases, or at least the database you want to integrate with?

    #63387
    mikeumus
    Member

    So I logged into phpMyAdmin and did not see anything that looked like table prefixes, but I’m new to this. I saw two databases and this is what one of their structures looked like:

    Table Action Records1 Type Collation Size Overhead

    benchmarks 6 MyISAM utf8_general_ci 2.3 KiB –

    _____________________________________________________________________________________________

    All I need to do is make it so that users don’t have to create two accounts to access the Tournaments section of the site.

    #63386
    chrishajer
    Participant

    If your _config.php does not have a table prefix specified, that means it’s hard coded in the software, or there is none. (oscommerce is like that: no table prefix.) Can you look at the database with something like phpMyAdmin and see if there are tables with no prefix, or if there are some for this software all with the same prefix?

Viewing 25 results - 25,701 through 25,725 (of 32,481 total)
Skip to toolbar