Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,101 through 21,125 (of 32,517 total)
  • Author
    Search Results
  • #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 !

    #89076

    Ok found the reason why.

    This site works best in Google Chrome.

    &lt;div id="container"&gt;

    &lt;title&gt;theCollegehunt-Best colleges,Best coaching classes,Career guidance,Examinations,Examination papers,College romance,College dating&lt;/title&gt;

    &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt;

    &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"&gt;

    &lt;head&gt;

    &lt;title&gt;theCollegehunt&lt;/title&gt;

    Basically you need to remove

    &lt;div id="container"&gt;

    &lt;title&gt;theCollegehunt-Best colleges,Best coaching classes,Career guidance,Examinations,Examination papers,College romance,College dating&lt;/title&gt;

    and the bottom DIV

    &lt;/body&gt;

    &lt;/html&gt;

    &lt;/div&gt; &lt;


    REMOVE THIS ONE

    #88917
    mr_pelle
    Participant

    I use this in my template:

    global $is_bb;
    $is_bb = true;

    get_header(); // call WP's header

    $is_bb = true; tells WP that current page is a bbPress page. If you need to load different content depending on that, just use:

    if ( $is_bb ) {
    // bbPress-related code
    } else {
    // WP-only code
    }

    #87812
    mr_pelle
    Participant

    Plugins directory not updating: Fixed.

    Seems it’s not retroactive… I mean, Zaerl’s last plugins are now listed correctly, but all other plugins did not get updated (yet): it looks like my last plugins update was a month ago! =P

    #89075
    chrishajer
    Participant

    If that’s it, it’s always good to start by making sure the code is valid. My guess is there is a closing div missing or otherwise invalid code.

    http://validator.w3.org/check?verbose=1&amp;uri=http://www.thecollegehunt.com/

    eschickel
    Member

    looks like my error logs were disabled. =( i guess i can drop my tables and reinstall, but i’m certain i didn’t do anything wrong during the install.

    rickkettner
    Member

    Thanks for the reply!

    1. WP 2.9.2

    2. Just bbPress with new install of WP… nothing else.

    3. Yes, using PHP5

    4. I just went through the steps in the BB install. Was going to do the rest in the bb admin, but can’t get there.

    5. Not sure where to look for the error log :(

    #89033

    In reply to: OneMoreThing.nl

    I doubt anyone needs to release it as a theme, it’s just a custom front page (although a good one for sure).

    It just loops through Categories / Forums and then outputs the last topic and last post for each forum with it’s gravatar next to it. The code to do it yourself is already in front-page.php

    ( I say that without taking away from the excellent work done by lukepuuk and others on the theme )

    Exit mate, If you want your bbPress to be/act different than all the others, you’ll have to change more than the CSS/Background. But realistically you don’t need much/any plugins to enable your forum to be unique while staying cool and usable :)

    #89098

    In reply to: s2member integration

    bbPress has no way of setting up roles to forums like every other forum out there has.

    So if you’re hoping to say set “contributors” to see everything and then set your s2M to move people from members to contributors on the WordPress side I’m afraid you can’t – bbPress doesn’t come with that basic forum functionality.

    In that regard, and with all due respect (you’d be amazed how very few people are as polite as you are), doing anything out-with the “plug and play” variety with bbPress unless you really know your way around PHP/WP-theming and functions is not going to happen.

    Now you may be able to take one of Zaerl’s plugins which allows the setting of show/hide/moderate certain forums and adapt it. Or you could contact Zaerl for some custom work (i’ve no idea if they do this btw – its just where I’d start).

    If you’re going on your own, keep posting back, we’ll help when and where we can :)

    #89095

    In reply to: s2member integration

    wood2695
    Member

    Thanks for the quick response. I’ve already done the deep integration, so I’m partially there on number 1, I guess. I’ll look into how to accomplish your suggestion before I ask you to hold my hand :)

    At the same time, if you’ve got a link/resource that might point me in the right direction, that would be sweet too.

    Thanks man.

    #89094

    In reply to: s2member integration

    In theory, you’d need either:

    1) Deep Integration with WordPress, so you could query the WP DB on forum load

    or

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

    Shouldn’t be horribly difficult; but so far, no-ones asked about it here so I can’t point you towards any examples.

    I’m going to do something strange here AmplifiedShock, I’m going to ask you NOT to do that.

    The “bbPress” that BuddyPress uses is not the same as this “bbPress”. It is heavily heavily modified. Basically the whole of BackPress is removed and replaced by custom functions, and then some of the middle tiering has been rewritten, and a little bit of the front end output and default theme.

    A large chunk of the support requests we deal with each day/week is people coming here because BuddyPress calls their forums “bbPress”. We need to be able to tell people honestly and without looking like we’re being difficult, that if they use BuddyPress we can’t help them.

    I’m sure it’s technically possible to do anything. I’m sure once it’s technically possible, it’s easier to write a guide for people to follow. You seem to be good enough to do that :) But with bbPress being turned into a WP plugin and Matt publicly telling people not to use this software; inviting more support queries that end in “we simply can’t help you” isn’t going to help us at all.

    Now if you felt like writing more tutorials on converting from other forums to bbPress, I’m sure there would be a good market in that for you!

    And, as always, thanks for your time

    #88977

    Mamikaze,

    What versions of bbPress and WordPress are you using?

    Did you install and use the WP/bbP integration plugin?

    Have you tried logging in from both sides?

    Have you checked to see if you’re using the same user tables?

    Have you checked roles in your database?

    Basically, give us as much information as possible, and we’ll try and help :)

    #87801
    mr_pelle
    Participant

    @zaerl: plugins section does not update since bbPress “new look”, actually… :P

    #87325
    zaerl
    Participant

    I have created a plugin that expose permalinks to posts. But I’m not very sure that it’s what you want. I have uploaded it five minutes ago. Grab it (if it’s what you need) when the SVN refresh:

    https://bbpress.org/plugins/topic/zaerl-post-permalink/

    It exports a function:

    za_post_permalink($id = 0)

    which returns a link in the form:

    http://domain.com/post/number if mod_rewrite is used

    http://domain.com/?post=number otherwise

    if you pass 0 or nothing to the function it takes the current post ID (if any).

    Have a nice day.

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