Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,051 through 21,075 (of 32,481 total)
  • Author
    Search Results
  • #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 > 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 &gt.

    I wouldn’t mind if the damn thing would write the HTML as &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 &gt.

    I wouldn’t mind if the damn thing would write the HTML as &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.

    #87815

    Yeah, If you edit with CODE in place it causes issues.

    Before hand we just used to put code in BLOCKQUOTES, but now it’s got that daft graphic it’s not helpful at all (imo).

    #89079

    Maybe Code just doesn’t like me ;-)

    Thanks for trying to fix this Chris

    #89105

    In reply to: s2member integration

    <br />
    <pre><code>// Line 358 if ($ccaps) /* Add custom capabilities. */
    foreach (preg_split ("/[rnts;,]+/", $ccaps) as $ccap)
    if (strlen ($ccap)) /* Don't add empty capabilities. */
    $user->add_cap ("access_s2member_ccap_" . trim (strtolower ($ccap)));

    It’s the ” $user->add_cap ” That adds the capabilities to wordpress.

    That said, I think the best thing to do would be to follow this:

    1) Select * from wp_capabilities where User_id = User_id

    2) for each ($row) insert into bb_capabilites blah blah blah

    that way you don’t need to know what the s2M is doing, you just need to copy the data from wp_cap to bb_cap when you’re done :)

    #89104

    In reply to: s2member integration

    wood2695
    Member

    That helps. This seems to be the code that is placing the custom user role into the wp_capabilities (from register-access.php, for ref). I suppose I could amend this to make all s2M members simply a “subscriber” which would serve my immediate needs (in theory). But I’d prefer to keep the custom roles for later down the road.

    else if (is_admin () && preg_match ("/wp-admin/user-new.php/", $_POST["_wp_http_referer"]) && preg_match ("/^(subscriber|s2member_level[1-4])$/", ($role = $user->roles[0])))<br />
    {<br />
    $processed = "yes"; /* Mark this as yes, to indicate that a routine was successfully processed. */<br />
    /**/<br />
    $level = ($role === "subscriber") ? "0" : preg_replace ("/^s2member_level/", "", $role);

    What I can’t figure out is how to add to this a bb_capabilities row/value.

    #87814
    chrishajer
    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?

    #87813
    chrishajer
    Participant

    Check how backticks and work to format a post.

    https://bbpress.org/forums/topic/internet-explorer-problem-1?replies=8#post-69386

    Was initially written with backticks, and rendered as GT and LT, so I tried to edit it to replace backtick with [code] but it’s still messed up.

    Someone mentioned that re-editing also introduced paragraphs or breaks, IIRC. When I first edited the post, every line of code and a [BR] after it.

    [code] work to format a post.

    https://bbpress.org/forums/topic/internet-explorer-problem-1?replies=8#post-69386

    Was initially written with backticks, and rendered as GT and LT, so I tried to edit it to replace backtick with but it’s still messed up.

    Someone mentioned that re-editing also introduced paragraphs or breaks, IIRC. When I first edited the post, every line of code and a [BR] after it.

    [code] but it’s still messed up.

    Someone mentioned that re-editing also introduced paragraphs or breaks, IIRC. When I first edited the post, every line of code and a
    after it.

    #89078
    chrishajer
    Participant

    Of course in my post worked fine. Argh. See it working above?

    [code] in my post worked fine. Argh. See it working above?

    #89077
    chrishajer
    Participant

    Backticks and did not work for formatting Kevin's post. I tried to fix it. Really I did.

    Basically, remove the top three lines of the file (header.php?), and the last line (footer.php?).

    #89102

    In reply to: s2member integration

    wood2695
    Member

    And you’re darn quick on the reply… I LIKE THAT!

    Lemme poke around for what you suggested. I’ve tried looking for those a bit, but they’re clearly not coded as clear as “wp_capabilities”. I’ve found the labels for the roles that I suspect might be where it’s generating the table data, but don’t see the code that specifies where to populate it. Even then, I see no mention of the table prefix (wp_) so I’m not sure that if I even found capabilities, I’d know how to add a bb_capabilities.

    My gut says that the hack to the s2M files is the way to go, so I’ll keep looking there.

    Thanks.

    #89101

    In reply to: s2member integration

    Nah that sounds good mate. It’s basically what I was suggesting here:

    2) Write some custom code for the s2Member callback API (which it supports) to add a field to the bbPress database.

    Basically, what you want to do is look for the bit of code in the s2M files that writes to the wp_capabilities table, and copy it on a new line with bb_capabilities.

    Or if you don’t want to go hacking around (totally understandable), make your “landing page” when people finishing paying/signing up via s2M have a bit of code that copies the last row from the wp_capabilities into bb_capabilities. This method means you wouldn’t have to touch the core of WP/bbP/s2M – but would still work.

    Doesn’t matter that this isn’t a core question mate, you’re helping us break a bit of new ground here, and we’re always interested in that. bbPress isn’t feature rich, so we like to know when it’s bene extended in a way we all hadn’t thought of :) And you’re polite – we like that :)

    Hi Guys, thanks for the info. It’s always good to rule things out :)

    Basically, I’d attempt the following:

    1) Log out of wordPress and clear your cookies and cache.

    2) Upload and overwrite your existing files with a newly dowloaded version of bbPress

    3) If that doesn’t work, set all permissions to 777 and see if it makes a difference.

    4) If that doesn’t work. start again with the new files.

    I know it sounds annoying, and sorry, but at this stage we’re just covering the bases.

    Oh, could you also tell us what server host you’re using?

    Thanks !

Viewing 25 results - 21,051 through 21,075 (of 32,481 total)
Skip to toolbar