Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,601 through 27,625 (of 32,481 total)
  • Author
    Search Results
  • #3402
    Detective
    Member

    Hi,

    For my own purposes i modified the plugin Private Messagging. The changes i made are:

    – The message’s content is filtered through the same filters as a regular post content.

    – The plugin is localized.

    – Added security fixes.

    – Added limits (the plugin now checks message lengths and inbox size).

    – Added improved error handling (i still have to use Wp_Error).

    – Improved usability :)

    Maybe it could be useful, so if anyone wants to check it out (or even use it) it can be downloaded here (remember to change the extension to .tar.gz).

    #64668
    seryi
    Member

    The same happened to me after upgrading my wordpress to V.2.5.1

    The problem is that auth mechanism in wordpress (based on cookies) has changed and no more compatible with the bbPress’ one. I believe that the next bbPress release will fix it. However now there is only one way to solve the problem – to edit some piece of code(only few lines). This is the instruction:

    1) open your bbpress_dir/bb-includes/pluggable.php

    2) find function wp_validate_auth_cookie

    3) inside this function change next 2 lines of code

    $key = wp_hash($username . $expiration);

    $hash = hash_hmac(‘md5’, $username . $expiration, $key);

    to

    $key = wp_hash($username . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $username . ‘|’ . $expiration, $key);

    4) find function wp_generate_auth_cookie

    5) inside this function change next 2 lines of code

    $key = wp_hash($user->user_login . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . $expiration, $key);

    to

    $key = wp_hash($user->user_login . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . ‘|’ . $expiration, $key);

    That’s all!

    NOTE! It’s only actual for wordpress 2.5.1 with bbpress 0.9.0.1

    #64960
    seryi
    Member

    The same happened to me after upgrading my wordpress to V.2.5.1

    The problem is that auth mechanism in wordpress (based on cookies) has changed and no more compatible with the bbPress’ one. I believe that the next bbPress release will fix it. However now there is only one way to solve the problem – to edit some piece of code(only few lines). This is the instruction:

    1) open your bbpress_dir/bb-includes/pluggable.php

    2) find function wp_validate_auth_cookie

    3) inside this function change next 2 lines of code

    $key = wp_hash($username . $expiration);

    $hash = hash_hmac(‘md5’, $username . $expiration, $key);

    to

    $key = wp_hash($username . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $username . ‘|’ . $expiration, $key);

    4) find function wp_generate_auth_cookie

    5) inside this function change next 2 lines of code

    $key = wp_hash($user->user_login . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . $expiration, $key);

    to

    $key = wp_hash($user->user_login . ‘|’ . $expiration);

    $hash = hash_hmac(‘md5’, $user->user_login . ‘|’ . $expiration, $key);

    That’s all!

    NOTE! It’s only actual for wordpress 2.5.1 with bbpress 0.9.0.1

    #65055

    In reply to: Only admin can login?

    jldean
    Member

    I think I’ve fixed it – fully ‘integrated’ bbpress and wp for cookie sharing AND user database. Now it’s using the wp tables for user data, and is giving out the correct cookie… and all users can login :)

    #64287
    marians
    Member

    On Multiviews: Never heard of it until I first installed bbPress. If mof_rewrite would work out of the box (i.e.: if bbPress would create the file or dump the necessary content) I wouldn’t need MultiViews.

    Here is one aspect I’d like to through in: URL Customization/Localization.

    When localizing URLs, it’s very easy to do this via editing of mod_rewrite rules. All my bbPress installations are in german language, thus I want german URLs.

    When changing the wording in URLs, e.g. from “forum” to “board” or “topic” to “idea” etc., same thing – just edit the rewrite rules.

    How easy would it be to customize URLs with MultiViews in effect? Without having looked into the implementation, I would guess that it requires code changes.

    If URL customization is easier in mod_rewrite, please drop MultiViews. Otherwise, please document how URL customization can be done using MultiViews.

    #65056
    Mufasa
    Member

    Ya know what…

    What would solve all these problems would be shortcodes.

    If I could just create a page and add a shortcode:

    [bbPress] then all our problems would just go away.

    Then if you wanted to get the bbPress “search” and “hot tags” to show in your sidebar you can just add the bbPress widgets and they would in theory just work.

    I guess that means my request is:

    1) Add a bbPress [forum] shortcode for wordpress

    2) Release some bbPress widgets for the wordpress sidebar

    #58255

    In reply to: bbSync

    pomeid
    Member

    Could anybody give me more detailed instructions for getting thread replies in the comments, please?

    Replies in the thread can be shown where the comments are (quite automagically). Use <?php bbrepliestext(); ?> to just link to the thread; it accepts the link text as an argument and %no% and %replies% will be replaced with the numebr of posts and the right pluralicised form of the word reply.

    Where to put exactly the php code? Does it must to replace some other code? Do I have to put something between ( ) ?

    Sorry but I’m not an advanced user on coding. Thanks!

    #65081

    In reply to: bbPress.com

    guymed
    Member

    Wait, its called:

    phpBB: OMGPonyBBQs!:

    OMGOMGOMGOMGOMGOMG!!!!!1

    xD, again. When they gonna make actuall talkpress?.. :(

    Rhys Wynne
    Participant

    Hiya :)

    I’m basically thinking out loud, and felt this was the best forum to post in.

    I was browsing through _ck_’s top 100 bbpress forum (well, the first one at least http://www.greedyorneedy.com/), and had a look at the site’s forum and member profiles such as this:-

    http://www.greedyorneedy.com/users/view/id/7412

    They look brilliant – facebook esque, and would love to implement something similar to my site (well one of my ideas anyway)

    What I suspect is that it is a WordPress/Wordpress MU plugin, but still if anybody has any ideas to how they achived this, I would love to hear them :)

    #63530

    In reply to: require_once problems

    John Smith
    Member

    Hi, sambauers

    The code work fine for me , thanks.

    #3391

    I would like my bbpress forum to show up on my wordpress blog page called “forum”. I also would like the forum to have the same look as my blog (at least the top of it). I have bbpress loaded in a subdirectory of WP called “forum”. I’m new to html coding and would love step by step instructions from anyone who is patient with new students :) Thanks

    #65040

    In reply to: bbpress API?

    Bloggsbe
    Member

    https://bbpress.org/forums/topic/lets-collaborate-on-bbpulporg#post-12781

    Nice, bbPress comes with a search function :-)

    R

    #65047

    Great :)

    #65070

    In reply to: bbPress.com

    Matt’s had already the idea.. it will be called freshpress… ;)

    #65045

    I know.. the same that i did… but on WP SVN tags are update and all is correctly structured, it’s true that there is Nicolay that care for I18N etc quite all the time, here peopel are.. “multitasking” ;)

    Arturo would you like to collaborate to the upcoming bbpress.it site that is going to start in the next months or so? If so, mail me.

    #3385

    Topic: bbpress API?

    in forum Troubleshooting
    kienphong
    Member

    i’m looking for function reference page and lists of filters/actions for bbpress and couldn’t find it. For wordpress we have something like this:

    http://codex.wordpress.org/Main_Page

    Is there anything like that for bbpress?

    Thanks

    yazerty
    Member

    That would be a great great thing :-) !! Reaalyy :).

    ps : with bbpress post answers -> blog post comments

    #65033

    In reply to: Dummies Guide

    chrishajer
    Participant

    To get rid of the whitespace where the tags were, open up style.css and find this around line 215:

    #front-page #discussions {

    It looks like this now:

    #front-page #discussions {
    margin-left: 170px;
    width: 590px;
    }

     

    Change it to this:

    #front-page #discussions {
    width: 760px;
    }

     

    That moves it over the the left, and makes it the full width (590+170 = 760.)

    Not sure what other pages you want to do this on, but the procedure is the same.

    #49652

    In reply to: Emoticons For bbPress?

    citizenkeith
    Participant

    You can just download WordPress and upload the smilies to a new directory. Then just change the plugin to point to the new directory at this line:

    #
    $wp_smiliesreplace[] = " <img src='/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
    #
    }

    #3381

    Topic: Dummies Guide

    in forum Themes
    willyhoops
    Member

    I have just installed this and I am an amateur if not total dummy at htlm, php and css. Is this a Pro Product or do you expect home users to use it as well? To use this I need to: (a) remove the “hot tags” section on the left. (b) Remove the Forums section. (c) Remove the Views Section. Sitting here staring the the php and the css is crazy. Where is the dummies guide that says how to do these simple things? Also this thing has no search on it which makes no sense. I can handle that with a google site search box on there but where is the code/theme for this please? Many Thanks…

    Oh man forget it it’s crashing now at: http://willyhoops.com/bbpress/. Click on anything and it says topic not found. I am totally lost

    #49650

    In reply to: Emoticons For bbPress?

    sasapuksic
    Member

    Is this actualy working by now or is there no way emotions could be impelmented in to bbpress? Thats a big shame I gues …

    :(

    #64987
    will-tomsett
    Member

    Sorted it all out. You just need to delete all the tables starting with “bb” and re-install as usual. :D

    Thanks, everyone.

    #64986
    will-tomsett
    Member

    The site’s run by an aquaintance of mine – I get free hosting from him. I’ll take a looksie as to what value I put for the user prefix.

    Watch this space. :D

    #3312
    migpilot
    Member

    I am well stumped, I really am :(

    I have read as much as I can find on issues with integration but still no love.

    The setup:

    Server IIS.

    Latest WP.

    Latest BB.

    ALL secret codes match.

    Config files have the suggested added lines of code.

    Priv mappings are all set correctly.

    So far though, I can get only one account to auto login into wp from bb, and that’s only if I log in through BB only, ie. if I login through WP, it does not carry over to BB but does from BB to WP. This user incidentally has an account setup both in BB and WP.

    Any other BB account can not log into WP, regardless of being logged into BB first.

    Any ideas out there? I’m loving both new versions, but I have close to 2000 users that I would like to allow contribution privs to WP with their existing BB accounts – it seems WP does not see any of the BB users.

    Cheers!

    #64985
    bobbyh
    Member

    Will, if you don’t remember what your table prefix is for WordPress, you can look it up in /wp-config.php. Most likely, you didn’t change it and it’s: wp_.

Viewing 25 results - 27,601 through 27,625 (of 32,481 total)
Skip to toolbar