Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,076 through 21,100 (of 32,517 total)
  • Author
    Search Results
  • #89115

    In reply to: s2member integration

    wood2695
    Member

    Aw crap. Same issue that kev was running into earlier, where the forum is turning all “greater than” characters into $gt. So all those “=&gt”s above should read…

    —/

    (equal sign + greater than sign)

    Pain in the… :)

    #89114

    In reply to: s2member integration

    wood2695
    Member

    Okay kids, here’s the solution that I’ve landed on. First, major props to kevinjohngallagher for taking the time to work this out with me. Second, the solution that I’ve come up with is not based on the previously mentioned code. I believe the code that kev had theorized was based on a flow of how s2M handled the end of the registration that wasn’t entirely correct (ie. no actual ‘thank you’ page). Perhaps this was something that could have been set up as such, but I abandoned that for another train of thought, which was… “if bbPress is reassigning bbP-specific roles based on the standard WP roles, so why can’t it do it for other non-WP-specific roles??”

    So to accomplish this, I’ve made edits to two core bbP files. As kev said to me and I agree… “Usual disclaimer about editing the core blah blah blah.” This will likely need to be re-done again if/when I ever update bbPress, but for the time being, it is working splendidly. With all that said, I may be the only one trying to do this integration, but for anyone down the road that is trying to develop a member site with s2Member + WordPress + bbPress forum, here’s my solution (oh, and also based on a ‘deep integration’ of WP/bbP)…

    in /bb-admin/options-wordpress.php, I added

    <br />
    $wpRoles = array(<br />
    'administrator' => __('WordPress Administrator'),<br />
    'editor' => __('WordPress Editor'),<br />
    'author' => __('WordPress Author'),<br />
    'contributor' => __('WordPress Contributor'),<br />
    'subscriber' => __('WordPress Subscriber')<strong>,<br />
    's2member_level4'=> __('s2Member Level 4'),<br />
    's2member_level3'=> __('s2Member Level 3'),<br />
    's2member_level2'=> __('s2Member Level 2'),<br />
    's2member_level1'=> __('s2Member Level 1')</strong><br />
    );<br />

    and then in /bb-includes/functions.bb-users.php, I added

    <br />
    static $wordpress_userlevel_map = array(<br />
    'administrator' => 10,<br />
    'editor' => 7,<br />
    'author' => 2,<br />
    'contributor' => 1,<br />
    'subscriber' => 0<strong>,<br />
    's2member_level4'=> 0,<br />
    's2member_level3'=> 0,<br />
    's2member_level2'=> 0,<br />
    's2member_level1'=> 0</strong><br />
    );<br />

    Because again, as far as the forum is concerned, I’m only really interested in differentiating whether a user is a logged-in member or not and show/hide the forums/topics/whatever using the zearl Visibility plugin based on that.

    This maps all s2M roles to that of a member in bbPress. Roles may then be changed using the dropdowns in bbPress > Settings > WordPress Integration.

    Cheers.

    1BadApple
    Member

    Hi Guys

    I’m new on the block, but have considerable experience with forum software and server enrironments. I also have a little fleet of WordPress sites, LOL. I haven’t grokked all the bbPress stuff yet, but this is a very interesting topic.

    -ck- and paulhawke both made some very good points there.

    Based on what I know of other systems, the observation about cacheing is accurate. Also a fairly competent Forum program is likely to become considerable larger than any blog because of the nature of the communications, which is many-to-many, rather than one-to-many. Tts not uncommon for forums to have fifty to a hundred thousand posts. How many blogs do you know like that? Just like WP, it all has to be iterated to do a page generation.

    Forums are also very spiky, due to their many-to-many, interactive nature. One post begets another or another five. Other than add-ins, Blogs are effectively document retrieval systems where there is a time disconnect between related events.

    For these reasons, I lean toward the idea of either hybrid or standalone development. Another concept would be that the plug-in have either less capabilities or some size limits coded in. Sure people could code around, but they would also be on notice that ‘you may be heading for trouble’.

    I’m looking forward to what’s coming.

    #88921
    mr_pelle
    Participant

    mr_pelle,

    Where in your template did you place that code?

    The first block is actually my bbPress header (you have to put it inside some php tags, of course), while I use the second in my WordPress header and footer when I have to load different content (css, icons, code).

    #89215

    Comparing anything on the bbPress website to the WordPress website is only going to lead to heartache and pain my friend.

    As for the bbPress website not syncing after 22 hours, thats nothing new either.

    IMO, give it closer to 48, and if its still not happening we’ll try and drag Michael away from WP3.0 release to help us again :)

    #88920
    snieves
    Member

    mr_pelle,

    Where in your template did you place that code?

    #89247
    johnhiler
    Member

    I’ve had this problem when downloading plugins while signed out… if I sign it, I’ve noticed it tends to work?

    The issue happens more often than it usually would for me, b/c the plugins install uses 0.8.3 and isn’t signin integrated with the main forum (which uses the latest version).

    At least, I think that signing in will fix the downloads! It could just be random chance that ever time I’ve signed in before, the downloads have started working again! :-)

    #89254
    1BadApple
    Member

    Thanks zaerl, that did the trick…

    It fixed the other issue as well, by my slightly informed guess being that the errors being pushed were killing the page build.

    anyway, all’s well that gets a fix and my necessary PHP education continues.

    Kevin, thanks but… “I don’t think so”, LOL.

    ;-)

    #83004
    kasper777ny
    Member

    Hey whats up gerikg

    Ive done everything step by step that you wrote about. I even reinstalled and started over from scratch. yet it still seems the cookies are not working. wordpress and bbpress are linked because bbpress actually lets my wordpress logins work… but no matter what i do, i still cant get keep myself logged in when going back &amp; forth from wordpress to forum.

    is this a common issue that just is not working yet?


    wordpress mu 1.9.2

    bbpress 1.0.2

    #89252
    zaerl
    Participant

    bb-load.php line 25:

    error_reporting( E_ALL ^ E_DEPRECATED ^ E_NOTICE);

    #34426
    1BadApple
    Member

    I have installed bbpress on my XAMPP Windows XP test server (which is hosting about 6 WordPress 2.92 test sites OK)

    My environment:

    Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1

    During the actual install I got a series of PHP errors.

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-adminincludesclass.bb-install.php on line 1280

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-adminincludesclass.bb-install.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesfunctions.bb-core.php on line 110

    The Installation appears to have worked as when I use phpMyAdmin, the database I set up for bbress is there, and the tables are populated – and if I check bb1_users my ‘key master’ user is there as imput (whatever a keymaster is) other than ‘admin’.

    The BBPress is ‘there’, but when I try to logon I get a cascade of PHP failures.


    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-settings.php on line 186

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressfunctions.wp-object-cache.php on line 108

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpresspomomo.php on line 171

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesfunctions.bb-l10n.php on line 484

    Deprecated: Assigning the return value of new by reference is deprecated in C:xampphtdocsbbpressbb-includesbackpressclass.wp-taxonomy.php on line 581

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesbackpressclass.wp-auth.php on line 273

    Warning: Cannot modify header information – headers already sent by (output started at C:xampphtdocsbbpressbb-settings.php:186) in C:xampphtdocsbbpressbb-includesfunctions.bb-pluggable.php on line 232

    I have tried in several browsers.

    URL: http://bravo.newnetenterprises.com/bbpress/

    It looks like the call in Line 186 is the culprit, but I am not a PHP expert.

    :-

    #34422
    1BadApple
    Member

    I had to create a new account to post this:

    DL’ed code a few days ago. Signed up earlier this week. Doh! Forgot PW

    Put OK username in PW reset field, GOT e-mail

    Tried link in 2 browsers – no va (no go)

    bbPress Support Forums » Log in

    Password Reset

    You are not allowed to change your password.

    OK, what’s up?

    #89200

    Finally, Yes this is integrated with WordPressMU

    bbPress doesn’t officially work with WordPressMU.

    I’m surprised and impressed you’ve got it working nicely :)

    Quick question, are you sure you’re using bbPress and not in any way shape or form using BuddyPress? I knwo that sounds like a daft Question, but you’d be amazed!!!

    #89197
    tcarr184
    Member

    Thank you for getting the help.

    The admin account and some other users can post but some cannot. I tried creating a test account and when I go into post there isn’t a box to type in.

    I took a screen shot.

    unfilteredmma.com/media/forumcapture.JPG

    If I log in as the admin then I do get a reply box.

    unfilteredmma.com/media/forum2.JPG

    I have tested in chrome, firefox, and IE and it is the same in them all.

    Here are the plug ins I have active on BBPress.

    Hello Louie

    Human Test for bbPress*

    Google Analitycs*

    BuddyPress Support Plugin*

    Bozo Users

    BB Wysiwyg Editor*

    BBcode Lite*

    Allow Images *

    Akismet*

    AdSense for bbPress *

    * = active

    Finally, Yes this is integrated with WordPressMU. The users can log in and authenticate but they cannot post replies or create posts? I’m sure this is really simple but I just can’t figure it out.

    Thank you

    #34425

    Hello folks,

    I’ve found a rather sporadic bug when trying to download bbPress 0.9 from teh downloads page. Specifically rather than going to the .zip file, it led me to a blank page instead.

    2 computer, 4 browsers, same issue.

    Been like this since at least this morning (GMT).

    I’m presuming it’s a hic-up, but just thought i’d point it out :)

    #89191

    Hi Roaming,

    First off, bbpress is not a WordPress plugin.

    It’s a standalone forum.

    (you’re not the first to think this, as God forbid we’d actually be able to say that anywhere on the actual website)

    bbPress has 3 advantages going for it

    1) you can share users with WordPress

    2) you can share logins with WordPress

    3) you can use your theming knowledge from WordPress to make them look alike.

    It should be noted that although (now) sharing a very similar looking/acting Admin section, bbPress has it’s own admin section totally outwith WordPress.

    As for an installation guide, the good folks at bbPress have cunningly hidden it in their Documentation &gt; INSTALLATION page. I know, who’d have guessed ;-)

    https://bbpress.org/documentation/installation/

    The next bit may sound cheeky, but I just want to be very clear. As bbPress is NOT a wordPress plugin or a wordPress Page or anything like that, it will not in any way shape or form, look like your WordPress blog unless you manually edit the bbPress theme to do so.

    I state this really bluntly because:

    1) It’s our 3 most complained about assumption – not sure why people complain that their assumptions are wrong but y’know, they do.

    2) You’re using Thesis, which 90% of the time means you like menus/WYSIWYG over actual coding. You may ofcourse be in the 10% and be more than happy, which is awesome.

    Given how your blog looks, it wouldn’t be hard at all to theme your bbPress forums to look like your WordPress blog :)

    Take care, and good luck!

    Kev

    #34421
    Ryan Hellyer
    Participant

    The theme integrator plugin which I mentioned on here a while ago as being “alpha” is now available as a stable release in the WordPress plugins repository. Hopefully some of you find it useful :)

    http://pixopoint.com/products/pixopoint-theme-integrator/

    The system DOES NOT require deep integration and does not suffer the performance hits that deep integration normally applies. This simply copies your HTML markup over after you set a bunch of things in each theme. If you don’t know how to do a 100% perfect integration of your theme already the old fashioned way (copying HTML and CSS across), this new system will not help you at all as you need to set that up already. Once it is setup however, the changes you make in your WordPress theme will be automagically applied to your bbPress site, along with changes such as plugins, widgets etc.

    The system works across a range of different softwares, not just bbPress. You can see a demo of it in my own support forum which uses SMF … http://pixopoint.com/forum/index.php?topic=1385.0

    #89111

    In reply to: s2member integration

    http://pastebin.com/SCaVcefq

    Sorry about that bro, if I’m not marked as a spammer, try the above link for the code

    #89110

    In reply to: s2member integration

    Oh for the love of @****

    Apparently bbPress, in it’s infinate wisdom, is now turning every tag opening and closing, even those in and backticks and [blockquote] into screen written &amp;gt.

    I wouldn’t mind if the damn thing would write the HTML as &amp;gt so it at least looked right on the screen, but no…

    I’ll try and cope and paste it into a paste bin thing for you wood2695

    Grrrrrr

    [code] and backticks and [blockquote] into screen written &amp;gt.

    I wouldn’t mind if the damn thing would write the HTML as &amp;gt so it at least looked right on the screen, but no…

    I’ll try and cope and paste it into a paste bin thing for you wood2695

    Grrrrrr

    #89109

    In reply to: s2member integration

    Righty ho, so while I can’t test my code (on iPhone sorry), I can help shed some more light on this.

    First Off: there is not (that I can see) a table called wp_capabilities. There is just a meta_key called “wp_capabilities” in the wp_usermata table. That actually makes some sense

    The good news here is, that it’s a 1 to 1 relationship so easy to copy over.

    // Show Database Errors

    // Comment this line out when going live :)

    $wpdb->show_errors();

    // 99 times out of 100 this is overkill

    // I’m just being on the safe side

    //

    // It checks what the current user ID is

    if ( !$user_id ) {

    $current_user = wp_get_current_user();

    $user_id = $current_user->ID;

    } else {

    $user_id = (int) $user_id;

    }

    // Connects to the database

    // Retrieves the value for this user for wp_capabilities

    $user_cap = $wpdb->get_row( “SELECT meta_value FROM wp_usermeta WHERE user_id=$user_id AND meta_key=’wp_capabilities’ LIMIT 1” );

    // Checks to see if the user already has a bb_capabilities

    // If it does we’ll overwrite it

    // If it doesn’t we’ll add a new one.

    $user_cap_in_bb_meta = $wpdb->get_row( “SELECT meta_value FROM bb_usermeta WHERE user_id=$user_id AND meta_key=’bb_capabilities’ LIMIT 1” );

    if ($user_cap_in_bb_meta)

    {

    // update bbPress database

    $wpdb->query(“UPDATE bb_usermeta SET meta_value='”. $user_cap->meta_value .”‘ WHERE user_id=”. $user_id .” AND meta_key= ‘bb_capabilities’ “);

    } else {

    // Add a new row to the bbPress database

    $wpdb->query(“INSERT INTO bb_usermeta (user_id, meta_key, meta_value) VALUES (“. $user_id .”, bb_capabilities, ‘”. $user_cap->meta_value .”‘) “);

    }

    // Print all Database errors

    // Comment this line out when going live :)

    $wpdb->print_error();

    // Hide Database Errors

    // Comment this line out when going live :)

    $wpdb->hide_errors();

    Now, the disclaimer. This rather unsurprisingly hasn’t been tested by me, and my contain (will contain) a crazy amount of typos.

    What it does is relaly simple. It copies the wp_capabilities and pastes them as bb_capabilities in the bbpress table. In terms of your initial goal, firing this code once the s2M stuff is finished will achieve that goal (basically, copy and paste it on the landing/finished/thanks/congrats page).

    A quick word of warning. If you’ve been using Zaerl’s plugin or anything else that utilises the “bb_capabilities” meta_key then this will overwrite it. Now as it’s overwriting it with whats in the WordPress database, it’s very unlikely to cause issues.

    But if you’ve set up something funny with a bbPress Plugin then you might end up overwriting it. In theory, this shouldn’t happen because the user is registered via s2M, so that’ll be it’s first time in the bbPress database – but I’m just giving you a heads up.

    I may write this, with all the failsafe functionality, into a WP/bbPress plugin if I get time in a few weeks. But I’m also a tad wary of encroaching onto ground Zaerl’s been excelling in. Good code doesn’t need my size 13s stomping all over it.

    Ok mate, try this and throw me back any errors.

    eschickel
    Member

    Full re-install after dropping tables fixed it. Thanks for the help everyone! =)

    #89108

    In reply to: s2member integration

    wood2695
    Member

    If you did that, I would be humbly in your debt. Though I won’t hold it against you if you don’t have the time to solve my problems :)

    FWIW… I’ve found at least one other individual over on the s2M forum that could probably benefit from the solution. At least I know I’m not alone!

    Your help is much appreciated.

    #87816
    mr_pelle
    Participant

    But then, the code in this post is fine:

    WordPress Header on bbpress

    Maybe the previous one was edited and that’s where the trouble started?

    My post had GT LT replacement too, I had to edit it and remove the php tags… but this is not a solution, because there are post in which you cannot remove the tags, as https://bbpress.org/forums/topic/internet-explorer-problem-1?replies=8#post-69386

    #89107

    In reply to: s2member integration

    I’m sadly on an iPhone so not in a position to knock out code.

    I’ll throw something together later today that should help.

    #89106

    In reply to: s2member integration

    wood2695
    Member

    Right. Of course! :) Seriously, I’m afraid I’m totally lost. I understand your logic, but my lack of PHP skills are shining bright. I’m an art director that had (until now) been successful hacking at standard WP PHP, but am clearly in over my head now. “Select the whozit and insert it into the whatzit now?” :D

    You’ve been very kind and I’ve never been one to straight up ask for the answer to be spelled out for me. I understand if you don’t want to give up any untested/theoretical code, especially as it pertains to a 3rd party plugin. (unless your last suggestion was to code that elsewhere??) But I do find myself against a deadline and have got to continue adding content and styling or my client is gonna kill me! Believe me, I’d rather work on solving problems all day so I can learn from them.

    So, I guess I’m going to have to launch this weekend (client has a conference) and just manually change bbPress user roles on new subscribers (lo-fi and lame, by me) until I have more time next week to dedicate to this solution.

    Cheers bud.

Viewing 25 results - 21,076 through 21,100 (of 32,517 total)
Skip to toolbar