Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,251 through 26,275 (of 32,481 total)
  • Author
    Search Results
  • #70110
    the_Wish
    Member

    Alright I figured it out now for my case.

    In wp-config.php I had to add both lines

    define('COOKIE_DOMAIN', '.domain.com');
    define('COOKIEPATH', '/');

    as opposed to just

    define('COOKIEPATH', '/');

    which the WP Plugin suggests to do.

    The WP Integration Settings in the bbP Admin section got this part right but not the Plugin Settings in WP.

    Anyways it’s working now all the way. Great achievement Sam!

    #70206
    _ck_
    Participant

    Ah I didn’t think of handling  

    But I thought bbpress allowed htmlentities. Maybe only some of them.

    #70194
    johnnydoe
    Member

    hello chris,

    i’m actually not able to run the first accordion of http://jquery.bassistance.de/accordion/demo/ inside of mytheme/front-page.php

    here is my header.php part

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php bb_title() ?></title>

    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.accordion.js"></script>
    <script type="text/javascript" src="js/jqq.js"></script>

    <?php bb_feed_head(); ?>
    <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" />
    <?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?>
    <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />
    <?php endif; ?>

    <?php bb_head(); ?>

    </head>

    <body id="<?php bb_location(); ?>">

    ........ etc

    and the front-page.php part:

    <div class="basic" id="list1b">
    <a>Titel1</a>
    <div>

    You've seen it coming!
    Buy now and get nothing for free!

    </div>
    <a>Titel2</a>
    <div>

    your bear, you have to admit it!
    No, we aren't selling bears.

    </div>
    <a>Titel3</a>
    <div>

    get two for three beer.

    And now, for something completely different.
    And now, for something completely different.

    </div>
    <a>Titel4</a>
    <div>

    get two for three beer.

    And now, for something completely different.
    And now, for something completely different.

    </div>

    </div>

    jqq.js is:

    jQuery().ready(function(){
    // simple accordion
    jQuery('#list1a').accordion();
    jQuery('#list1b').accordion({
    autoheight: false
    });

    // second simple accordion with special markup
    jQuery('#navigation').accordion({
    active: false,
    header: '.head',
    navigation: true,
    event: 'mouseover',
    fillSpace: true,
    animated: 'easeslide'
    });

    // highly customized accordion
    jQuery('#list2').accordion({
    event: 'mouseover',
    active: '.selected',
    selectedClass: 'active',
    animated: "bounceslide",
    header: "dt"
    }).bind("change.ui-accordion", function(event, ui) {
    jQuery('<div>' + ui.oldHeader.text() + ' hidden, ' + ui.newHeader.text() + ' shown</div>').appendTo('#log');
    });

    // first simple accordion with special markup
    jQuery('#list3').accordion({
    header: 'div.title',
    active: false,
    alwaysOpen: false,
    animated: false,
    autoheight: false
    });

    var wizard = $("#wizard").accordion({
    header: '.title',
    event: false
    });

    var wizardButtons = $([]);
    $("div.title", wizard).each(function(index) {
    wizardButtons = wizardButtons.add($(this)
    .next()
    .children(":button")
    .filter(".next, .previous")
    .click(function() {
    wizard.accordion("activate", index + ($(this).is(".next") ? 1 : -1))
    }));
    });

    // bind to change event of select to control first and seconds accordion
    // similar to tab's plugin triggerTab(), without an extra method
    var accordions = jQuery('#list1a, #list1b, #list2, #list3, #navigation, #wizard');

    jQuery('#switch select').change(function() {
    accordions.accordion("activate", this.selectedIndex-1 );
    });
    jQuery('#close').click(function() {
    accordions.accordion("activate", -1);
    });
    jQuery('#switch2').change(function() {
    accordions.accordion("activate", this.value);
    });
    jQuery('#enable').click(function() {
    accordions.accordion("enable");
    });
    jQuery('#disable').click(function() {
    accordions.accordion("disable");
    });
    jQuery('#remove').click(function() {
    accordions.accordion("destroy");
    wizardButtons.unbind("click");
    });
    });

    info: the js-parts are in the “theme” root (kakumei/js/) , the css parts of the accordion are merged into the original kakumei stylesheet.

    thanks so far.

    #69667

    In reply to: bbPress Facebook page

    Joined. ;)

    #70205
    johnhiler
    Member

    This looks awesome! I am going to try it out tomorrow… I noticed that some nbsp’s were being “encoded” in my bbPress installs tonight, and was wondering how I was gonna strip them out. Looking forward to trying this out :-).

    Will report back with results.

    #70106
    Sam Bauers
    Participant

    @johnjamesjacoby

    In your wp-config.php file, right after you include bbPress you should probably clear out all filters and actions so that nothing in bbPress alters WordPress unexpectedly. Use this code right after the include to do that:

    // Remove filters and action that have been set by the included bbPress
    if ( defined( 'BB_PATH' ) ) {
    $wp_filter = array();
    $wp_actions = array();
    $merged_filters = array();
    $wp_current_filter = array();
    }

    #4435
    _ck_
    Participant

    On some forums you might want to remove bad html markup that’s not allowed instead of encoding it into text. Here’s a mini-plugin to do just that. It also converts <b> into <strong> and <i> into <em>

    It only runs when posts are saved instead of each time they are displayed to keep things at full speed. Posts by Moderators and Administrators are not stripped.

    (note: for now it doesn’t obey backticks and will strip inside them)

    <?php
    /*
    Plugin Name: Strip Bad Markup
    Plugin URI: http://bbpress.org/plugins/topic/
    Description: removes tags that are not allowed in posts instead of encoding them
    Author: _ck_
    Author URI: http://bbShowcase.org
    Version: 0.0.1
    */

    add_filter('pre_post', 'strip_bad_markup',9);

    function strip_bad_markup($text) {
    if (!bb_current_user_can('moderate')) {
    $tags=bb_allowed_tags(); $tags['br']=true; $tags['p']=true; $tags = implode('|',array_keys($tags));
    $text=preg_replace(array("/<(/)?b>/si","/<(/)?i>/si"),array("<$1strong>","<$1em>"),$text);
    $text=preg_replace("/</?(?!($tags)).*?>/sim","", $text);
    }
    return $text;
    }

    ?>

    #70193
    chrishajer
    Participant

    What do you mean does not work? What appears in the <head> section of the rendered pages? Post your edited header.php as well.

    And you should probably use bb_enqueue_script (or maybe it’s wp_enqueue_script depending on the version you’re running.) That prevents loading a script more than once, I believe.

    #70099

    Sam…

    Logged in as KeyMaster, using the BBP1.0alpha4 (non trunk) and using the BBP Integration plugin for WP (trunk) I can confirm that all cookies, logins, logouts, and admin panels appear to be working from every direction.

    WordPress installed in “ROOT/” directory.

    bbPress installed in “ROOT/forums/” directory.

    Pat yourself on the back soldier, we have lift-off.

    Once I am comfortable with my findings and can test this more thoroughly I’ll write a detailed how-to integrate topic ASAP.


    Side note: It also all appears to still work even with deep integration in the bb-config.php file. Still testing so stay tuned with that.

    #70082
    JesperA
    Member

    I should have though of that ;) Thanks

    #4430
    Burt Adsit
    Member

    Howdy. I’ve got a buddypress, mu and bbpress site. buddypress is trying to access some forums in bbpress thru xmlrpc. Essentially sambauer’s bbpress_live widget is being used. My problem is that the connection between buddypress and bbpress is failing for some reason unknown to me.

    Here’s the sequence of things going on.

    buddypress wants to do some stuff in the bbpress forums so a bbpress_Live_Fetch obj is instantiated and the constructor is called. The constructor, since it’s purpose is to fetch something, tries to setup a connection between buddypress and bbpress through one of it’s member functions set_endpoint().

    With me so far? We haven’t gotten to the problem yet.

    set_endpoint() makes a call to a function in /wp-content/comment.php called discover_pingback_server_uri(). That function’s purpose is to do exotic stuff finding a ‘pingback server uri’ for the passed uri.

    I don’t know what that is and don’t really care. I do care that the workhorse part of that function is actually a call to a new 2.7 function that goes out and GETs what is located at the url in question. When it GETs the goop back from that url, it parses it and returns a ping back server uri.

    However, the function that it uses to GET goop from the passed url always returns 404 when looking for my bbpress url. It does exist.

    The function wp_remote_get() when passed a valid url for bbpress such as ‘http://myfavsite.org/bbpress/&#8217; returns 404.

    Here’s the maddening part. It works on a windows development server but not on the live linux server. Same code, same .htaccess files, essentially the same httpd.conf file.

    Why would wp_remote_get() return 404 for a valid url? wp_remote_get() and it’s brethren seem to be new in mu 2.7.

    wpmu 2.7 r1574 is what I got runnin’

    #70096

    I’m not sure it fixed everything. Or at least not with root cookies.

    If I log in via bbpress I’m logged into bbPress AND WordPress Admin but NOT WordPress user. If I try, subsequently, to login as WordPress user, it acts like I’m logged in, but if I go back to a regular page, it doesn’t work. If I then logout on bbPress, I can log in to WordPress. This happens in reverse as well. I can’t be logged into BOTH at once.

    The ‘fix’ to that was to add this to wp-config.php

    // Cookies
    define('COOKIE_DOMAIN', '.domain.net');
    define('COOKIEPATH', '/' );

    Which has the even WEIRDER side effect of logging me out between apps. Log in to bbPress, fine. Log in to WordPress, logged OUT of bbPress. Ad nasuem.

    The ‘fix’ to that is to disconnect

    $bb->logged_in_cookie = 'wordpress_logged_in';

    Which is sooo wrong.

    FWIW:

    #69681

    what variables can you retrieve from the global $forum variable?

    #4431

    Okay, so here’s how the story goes…

    I downloaded bbPress 1.0-alpha3 because I’m using WordPress 2.6.3…however I’m not sure if that even matters since I don’t really want to integrate the two.

    I removed all the installation files from the bbpress folder, and placed them into my /forums directory. I did this because I wanted my forums to be in http://www.beardownarizona.com/forums, not beardownarizona.com/forums/bbpress.

    Once all the files were installed via FTP into my /forums directory, I went to the site and proceeded with the installation. The first screen said “There doesn’t seem to be a bb-config.php file. This usually means that you want to install bbPress. ” so I continued and put in my database name, username, password, along with my host.

    When I hit “save database configuration” I got a ridiculously long error message:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Warning: Cannot modify header information - headers already sent by (output started at D:Hosting3362703htmlforumsbb-adminincludesclass.bb-install.php:1025) in D:Hosting3362703htmlforumsbb-includesfunctions.bb-core.php on line 842

    So instead of hassling with that, I created my own bb-config.php file, and uploaded it to the /forums directory. This allowed me to complete the entire installation. However it had one minor error, which said “Key master email not sent!” The installation log is below:

    `Referrer is OK, beginning installation…

    Step 1 – Creating database tables

    >>> Modifying database: beardownforum (beardownforum.db.3362703.hostedresource.com)

    >>>>>> Table: bb_forums

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_meta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_posts

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_terms

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_relationships

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_term_taxonomy

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_topics

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_users

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    >>>>>> Table: bb_usermeta

    >>>>>>>>> Creating table

    >>>>>>>>>>>> Done

    Step 2 – WordPress integration (optional)

    >>> Integration not enabled

    Step 3 – Site settings

    >>> Site name: Bear Down Arizona Forums

    >>> Site address (URL): http://www.beardownarizona.com/forums/

    >>> From email address: brad@beardownarizona.com

    >>> Key master created

    >>>>>> Username: beardownarizona

    >>>>>> Email address: brad@beardownarizona.com

    >>>>>> Password: (password removed)

    >>> Description: Just another bbPress community

    >>> Forum name: Bear Down Forums

    >>>>>> Topic: Your first topic

    >>>>>>>>> Post: First Post! w00t.

    >>> Key master email not sent!

    There were some errors encountered during installation!’

    Now when I go to my forums page at http://www.beardownarizona.com/forums, I get a “page not found” error. I’ve double checked my installation files, and they are all there, so I don’t think I’m missing any files…

    I’m just at a complete loss for how to proceed. I just want to install the forums on the page, I’m not worried about integration or anything like that, since I don’t really have “users” on my main site. The forums are going to be used for that purpose.

    If it makes a difference, I’m using godaddy as my host…If you have any ideas for how I can fix this, please let me know!!

    Thanks!

    #69664

    In reply to: bbPress Facebook page

    Sam Bauers
    Participant

    @johnnydoe

    That would be hard to keep up with.

    We rely on plugin devs to look after their own code basically. Expect renewed interest when the final 1.0 is released.

    #70077

    In reply to: Arabic Translation

    Sam Bauers
    Participant

    Except unicode for usernames, that will be fixed by allowing unicode display names in bbPress 1.0

    #66200
    Sam Bauers
    Participant

    We do unicode display names in bbPress 1.0, but not usernames.

    #69988
    Sam Bauers
    Participant

    $_SERVER['REQUEST_URI'] can be dodgy, _ck_’s code cleanup is probably a little safer.

    #70028
    Sam Bauers
    Participant

    @johnjamesjacoby

    The login forms don’t pass around nonce values generally, so it should be of no concern.

    What happens as of right now is that the role map you setup in the admin area only gets applied to new registrations either when you save the changes on that role map form or when the new WordPress user who is missing the role in bbPress logins in through bbPress.

    On your site as it is right now this never occurs because you force all logins through WordPress. Just now in trunk I have changed that so that just visiting the bbPress site with a valid cookie will set your role in bbPress.

    I suspect that all the problems with loging out in your case are going to come down to having a bunch of stuff manually set in your wp-config.php and bb-config.php

    Here’s what I think you should do…

    1. Update bbPress to the latest trunk version
    2. Remove any hardcoded settings in bb-config.php and wp-config.php WRT integration
    3. Install this brand spanking new plugin (get the trunk version for the moment) http://svn.wp-plugins.org/bbpress-integration/trunk/
    4. Recheck your integration settings in bbPress – don’t hardcode anyting into bb-settings.php
    5. Configure that plugin in WordPress
    6. Copy the wp-settings.php lines specified in that plugin to wp-config.php (probably only one line for you)

    Let us know how that goes.

    #70026
    ganzua
    Member

    OK, this is fixed in trunk now. Just a stupid error on my part in a new function.

    I’ll see if it’s possible to re-release the 1.0-alpha-3 or maybe just bump up to 1.0-alpha-4.

    So, what did it happen? Is it the fix already included in the download right now? I’d like to give it a try :)

    #67833

    In reply to: Get Current Forum ID?

    I modified your code to the following and it worked:

    <li<?php if ($current_forum_id=get_forum_id()) {echo ” class=’on'”;} ?>>

    Thanks a lot CK, much appreciated.

    #69915
    watson
    Member

    Thanks both of you for answering… This is just such a great forum :)

    #69987
    Trent Adams
    Member

    I will be around more again now ;) Been a busy year! Thanks for the cleanup code _ck_ and I will test it tomorrow. Hi back to everyone ;)

    Trent

    #69986
    _ck_
    Participant

    Untested code cleanup (just for fun – untested)

    function force_login_init() {
    if (!bb_is_user_logged_in() && !preg_match("/(bb-login|bb-reset-password|register|xmlrpc).php/s",$_SERVER['REQUEST_URI'])) {
    nocache_headers();
    header("HTTP/1.1 302 Moved Temporarily");
    header("Status: 302 Moved Temporarily");
    bb_safe_redirect( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
    exit;
    }
    }

    Good to see you Trent, don’t be a stranger!

    #67832

    In reply to: Get Current Forum ID?

    _ck_
    Participant

    Why not just do it all in the li:

    <li<?php if ($current_forum_id==get_forum_id()) {echo " class='on'";} ?>>

Viewing 25 results - 26,251 through 26,275 (of 32,481 total)
Skip to toolbar