Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,376 through 24,400 (of 32,432 total)
  • Author
    Search Results
  • #70364
    crios
    Member

    I integrated 2.8 & 1.0.1 and it seems to be working beautifully.

    I created a walk through for myself (based off of the screencast), you can see it here. I thought I would post it here for anybody else that might want a set of typed instructions. Maybe this topic should be sticky or put a similar set of instructions on the documentation page?

    1. Install WP 2.8 on domain, in this case http://example.com (I’m going to skip the WP install. I know how to do this.)

    * database: exampledb

    2. Open wp-config.php in a text editor.

    3. Go to https://api.wordpress.org/secret-key/1.1/ and copy the provided keys (the entire text).

    4. Paste the copied keys into wp-config.php above the text “/* Stop editing */.”

    5. Save wp-config.php to web host.

    6. Install bbPress files into a subdirectory. In this case http://example.com/forum. (I’m going to skip the bbPress install. I know how to do this.)

    7. Fill in step 1 of bbPress setup.

    * database: exampledb (use same database as WP install.)

    8. Step 2 of the bbPress install.

    9. Check “Add integration settings.”

    10. Check “Add cookie integration settings.”

    11. Open wp-config.php again and copy and paste “AUTH_KEY” , “SECURE_AUTH_KEY” and “LOGGED_IN_KEY” (just the long string of letter, numbers and symbols in between the quotes) into the appropriate fields in the bbPress Step 2 page.

    12. Go to http://example.com/wp-admin/options.php (there should be a link in the ? section of the salt fields)

    13. Find the appropriate salts and copy and paste them into the appropriate fields in the bbPress Step 2 page.

    * If there is no secure_auth_salt leave it blank.

    14. Check “Add user database integration settings.”

    15. Look in wp-config.php again and copy the “table_prefix” into the appropriate field on the integration page. (in my case it was not just wp_ , it was wp_xxxxxx_ (the x being other numbers and letters.).)

    16. Click the save button and you should see “Your WordPress integration cookie and database settings have been successfully validated. etc…”

    17. Click the Step 3 button.

    18. Fill in the Site name: Example Forum.

    19. Check the URL (should be http://example.com/forum/).

    20. Select a Key Master (if integration was successful the WP admin should show up here and can be selected).

    21. Fill “First forum name” (First Forum).

    22. Click “Save.”

    23. Click “Complete Installation.”

    24. Go to the brand new forum.

    25. I was already logged in to WP so when I went to bbPress, again I was already logged in.

    26. Click on “Admin”

    * It shouldn’t work.

    27. Click “Log Out.”

    28. Log back in to bbPress as the admin.

    29. Click on “Admin.”

    30. You should be able to enter the Admin page of bbPress now.

    31. Go to “Settings” / “WordPress Integration.”

    32. Setup the “User Role Map”.

    * WP Admin: Keymaster

    * WP Editor: Moderator

    * Everybody else is a member.

    33. Click Save.

    34. Go to the WP install (http://example.com)

    35. Install bbPress Integration (WP Plugin): 1.0

    36. Activate the integration plugin.

    37. Go to “Settings” / “bbPress Integration.”

    38. Check the “bbPress URL.”

    39. Leave “plugins URL” alone.

    40. Check WordPress type.

    41. Click Save.

    42. Scroll down to “Manual Cookie Settings” and copy the code in the grey box.

    43. Open wp-config.php and paste the copied code above the text “/* Stop editing */.”

    44. Save wp-config.php to the web host.

    45. Voila everything should be set up!

    46. log in and log out of WP and bbPress and move back and forth between the two to make sure that the integration is working.

    #15259

    I’m trying to protect page on another subdomain… but unfortunately bbPress is not authenticating the cookie. (they are set for .domainabc.net)

    for test.domainabc.net:
    Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc

    for forums.domainabc.net
    Cookie: bbpress_logged_in_00aa30280fe74d40ca269b5b2efffba3=rich%7C1247421898%7Cfbd785e0974af74814b56550af9c49dc

    on test.domainabc.net i have something like this:

    require_once ('../forums.domainabc.net/bb-load.php');

    function add_allowed_redirect_hosts() {
    $allowed_redirects = array('test.domainabc.net');
    return $allowed_redirects;
    }
    add_filter('allowed_redirect_hosts', 'add_allowed_redirect_hosts');

    bb_auth( 'auth' );

    It will properly redirect to the login page, enter info, redirect back to test.domainabc.net – but then it will issue another 302 redirect back to forums.domainabc.net.

    and if i place a die statement within this bb_auth else on test.domainabc.net it will echo

    if ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
    //redirects fine to login page the first time...
    } else {
    //echo - this happens when returning a 2nd time
    }

    BUT… if i return to forums.domainabc.net i’m logged in… and everything works.

    #75831
    citizenkeith
    Participant

    I have switched off all plugins except the following:

    Allow Images 0.7.1

    BBCode Buttons Toolbar 0.0.9

    BBCode Lite 1.0.3

    bbPress Smilies 0.0.8

    Human Test 0.9.2

    I haven’t had a problem for 24 hours. Will slowly switch on plugins until I do.

    #15256
    sms1962
    Member

    Hi,

    I did not see information on how to upgrade from 1.0-alpha-x to 1.01. Are there any problems? Someone already did this?

    I’ve bbPress 1.0-alpha-2 with WP integration (v. 2.8)

    SMS

    #75742
    Ohna
    Member

    Curiously if I write the code in “functions.php” that break my login/logout/edit profile page and display a blank page. I have moved the code in “my-plugins” and no issue now.

    Thank you for your information and your patience _ck_, I will try to solve my last problem by my self.

    Edit: solved with :

    foreach ($results as $result){$list.=" ".bb_get_avatar($result->ID, 20, $default)."<a href='".bb_get_option('uri')."profile/".$result->user_login."'>".$result->user_login." </a>";}

    #75868

    Which version of bbPress are you using?

    If you have phpMyAdmin access, then open the usermeta table (should be bb_capabilities if you are not using shared user tables and should be wp_capabilities if you are using shared tables) and change the value of bb_capabilities to a:1:{s:9:"keymaster";b:1;} for your user.

    Hope that helps.

    P.S. – Change the default table prefixes as your case may be.

    @toosalty & @navjotjsingh

    WordPress 2.8 integrates easily with bbPress 1.0

    I just wrote a post today : http://blog.ashfame.com/2009/07/integrate-bbpress-10-with-wordpress-28/

    I will also be writing a post on how to upgrade existing integrated installations (most probably tomorrow morning). Let me know if you are facing any issue, I will try to help.

    P.S. – No plugin is now needed for integration. ;)

    #15253

    Fistly excuse my english ….

    Hi, i have integrated bbpress inside my wordpress installing on the same database.

    The problem is that i have made all the integration except the user relation, so now i can logon like admin user on bbpress but i can’t change nothing :-( it seems to be a normal user

    Can i do manually (changing the database) to assign admin user as administrator ????

    #75697
    Ohna
    Member

    Hi, bb-gian

    If you want this in “front-page” latest topic you can try this:

    <a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id); ?></a>

    or if you just want show all categories:

    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>

    #75372

    In reply to: bbPress 1.0 released

    grassrootspa
    Member

    Loving the addition of Voices into the core. Just figured out how to display them :)

    #75859
    deadlyhifi
    Participant

    I may have to start doing it manually, then either adapt an existing plugin, or get my head around it myself at a later stage. They’re really banging on about it at work right now :( as a must have ASAP feature. It’s all about the monies!

    #75786
    deadlyhifi
    Participant

    ooh, that’s good to know. That’s not the explanation then. oh well. Maybe it will all blow over :)

    #75784
    deadlyhifi
    Participant

    mmm, just noticed that cookies with _utma, _utmb etc. state they come from

    .MYWEBSITE.com

    whereas the “wordpress_logged_in_NUMBER” states it’s website as

    www.MYWEBSITE.com (without the http this forum is auto adding it)

    could the fact that it has www at the start be the issue?

    My test site, on a subdomain, shares the same source – but then because its a subdomain it doesn’t have the www at the start.

    thanks for your continued replies ck.

    #75782
    deadlyhifi
    Participant

    They definitely have a different name.

    wordpress_logged_in_TWOdifferentVALUES

    tried to do the clear cookies thing in a function but, even though it’s running correctly, the cookie reset is getting ignored. Can’t figure out why :(

    #75861
    r-a-y
    Participant

    This isn’t BuddyPress-specific.

    You can accomplish changes for the title, meta keywords, and description with a bbPress plugin or custom bbPress code.

    I answered this in your post on the BuddyPress forums:

    https://buddypress.org/forums/topic/group-forums-meta-data

    #75741
    _ck_
    Participant

    I really can’t build an entire custom plugin for you.

    What you are trying to do will require API functions because the profile link doesn’t exist until it’s calculated. You’ll have to use the get_profile_link functions and send it the user id.

    bb_get_profile_link($result->ID)

    #15213
    bb-gian
    Member

    Is there a way to display the Forum name + link in the Topics list?

    I tried with: <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>, but it doesn’t seem to work outside the loop.

    What I am trying to achieve is simply to have the name of the forum in the Topic list, so that one can view in which Forum that particular topic belongs, and be able to click on that link, if possible, to get to that forum. (But just the name would be already great).

    I really think that this is some bit of useful information when a user scans the list.

    Thanks for letting me know if you gor the right code in your pocket and to share it with me.

    #75838
    bb-gian
    Member

    Oh, thanks, I just found it on my own and was about to post it here.

    But thanks a lot anyway, Ohna, I appreciate!

    ;-)

    #75849

    In reply to: Pagination bug?

    Kar-l
    Member

    Thank you, Ohna. Yet it doesn’t solve the problem. I just tested it in English (with no translation) and the same bug appers.

    <div class="nav"><a class="prev page-numbers" href="" title="Previous page">&laquo; Previous</a><a class="page-numbers" href="" title="Page 1">1</a><span class="page-numbers current" title="Page 2">2</span><a class="page-numbers" href="/page/3" title="Page 3">3</a><a class="page-numbers" href="/page/4" title="Page 4">4</a><a class="next page-numbers" href="/page/3" title="Next page">Next &raquo;</a></div>

    #75837
    Ohna
    Member

    Hi, bb-gian

    Try this: <?php topic_author(); ?>

    #15244
    Kar-l
    Member

    A funtion on a homepage of a blog

    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>

    generates errorous output. On page 2 (and followings) it outputs:

    <div class="nav"><a class="prev page-numbers" href="" title="Poprzednia strona">&laquo; Poprzednia</a><a class="page-numbers" href="" title="Page 1">1</a><span class="page-numbers current" title="Page 2">2</span><a class="page-numbers" href="/page/3" title="Page 3">3</a><a class="page-numbers" href="/page/4" title="Page 4">4</a><a class="next page-numbers" href="/page/3" title="Następna strona">Następna &raquo;</a></div>

    The problem I can see is href=””

    Is there any solution to this?

    bbPress used: 1.01

    #15243
    bb-gian
    Member

    Is there a way to dispaly the Author of a topic in the Latest Discussions list and in the Topics list?

    I mean, every other forum got this feature, and I think that viewing the Author of a Topic in the list is very useful and needed for a forum, as you may want to know WHO posted that Topic, without having to click on it to see who’s the first post. Right?

    Still, I didn’t find this feature enabled on any bbPress forum.

    For me it’s just so weird.

    So, is that a way to get the template code?

    Thanks.

    #75740
    Ohna
    Member

    Hi,

    I want to add a link to the profile page:

    foreach ($results as $result){$list.=" <li class='list_b'>".bb_get_avatar($result->ID, 25, $default)."<a href='" .$result->user_profile_link. "'>".$result->user_login."</a></li> ";}

    I tried .$result->user_profile_link., but it doesn’t work, any idea ?

    #75828
    citizenkeith
    Participant

    Plugins used:

    Allow Images

    Approve User Registration

    bb_benchmark (autoloaded)

    bb_chunk

    BBcode Buttons Toolbar

    BBcode Lite

    bbPress Attachments

    bbPress signatures

    bbPress Smilies

    bbPress Theme Switcher

    bb Topic Views

    BBVideo

    Censor

    Check for Updates

    Hidden Forums (autoloaded)

    Hidden Forums Tag Filter

    Human Test for bbPress

    Members Online

    Move It

    New User Notification Email

    Post Count Plus – Dynamic.Titles & More!

    Quote (Mod)

    Spoiler Tags

    Strike

    Super Search

    Topics Per Page

    Unread Posts

    Wiki Post

    Year Long Cookies – Remember Me (autoloaded)

    I didn’t have these problems when I was running .9, but when I moved to Media Temple from Dreamhost I upgraded to 1.0 RC1. I probably shouldn’t have done the upgrade at the same time.

    #64878
    _Kumori_
    Member

    In functions.bb-formatting.php on line 62 there is this function:

    function bb_code_trick_reverse( $text ) {
    $text = preg_replace_callback("!(<pre><code>|<code>)(.*?)(</code></pre>|</code>)!s", 'bb_decodeit', $text);
    $text = str_replace(array('<p>', '<br />'), '', $text);
    $text = str_replace('</p>', "n", $text);
    $text = str_replace('<br />', '<br />', $text);
    $text = str_replace('<p>', '<p>', $text);
    $text = str_replace('</p>', '</p>', $text);
    return $text;
    }

    In my theme’s functions.php file I made a filter that replaces this function with my own that simply removes the $text = str_replace('</p>', "n", $text); and $text = str_replace(array('<p>', '<br />'), '', $text); lines and that took care of it for me when I integrated FCKeditor into my forum.

Viewing 25 results - 24,376 through 24,400 (of 32,432 total)
Skip to toolbar