Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,601 through 27,625 (of 32,453 total)
  • Author
    Search Results
  • #65007

    In reply to: bb-config & wp-config

    chrishajer
    Participant

    Sorry Sam :(

    Sam, I read that page you linked, but I didn’t see instructions on loading bbPress functions inside WordPress which is what gerikg seems to be looking for (maybe call it reverse integration.) I see the instructions for accessing WordPress functions inside bbPress.

    Do I just need to read it again?

    #65015
    bobbyh
    Member

    Copy the same values from your wp-config.php file in the root directory and try again. :-)

    #3377

    I’m a really new website owner. I don’t know a lot about manipulating html code. I’ve read the step by step instructions for installing bbpress but It’s not enough …I need indepth instructions.

    This much I have done. Downloaded bbPress to my PC. Unzipped the file.

    I have WordPress already on my web host account.

    Where do I put bbpress? I would like to have them integrated.

    Do I put it under /wp-admin/?

    #65003
    bobbyh
    Member

    If you want varying HTML depending on what the forum id is, you should probably just use a conditional if/inside of one template file like so:

    <?php if ($forum_id == 1) {

    echo 'html1';

    } elseif ($forum_id == 2) {

    echo 'html2';

    ?>

    Any other approach will probably lead to madness. :-)

    #64995

    In reply to: Error – Forum

    chrishajer
    Participant

    You can create a file called info.php and put this into it:

    <?php
    phpinfo();
    ?>

     

    Then access that at http://www.example.com/bbpress/info.php and see if the getmypid function is disabled (just search that page for getmypid.) If it is, I imagine you can just remove that bit from class-phpass.php line 43.

    $this->random_state = microtime() . getmypid();

    In this instance, getmypid() just returns the pid of the process that called it and that is concatenated with microtime to provide a random number. You can use something else there and be fine, I think. Or, ask your host to enable it if it’s disabled.

    #65000
    bobbyh
    Member

    It looks like your WordPress htaccess file is screwed up, as this link to a WordPress post doesn’t work:

    * http://www.charitableorthodoxy.com/2008/05/13/hello-world/

    Did you create an htaccess file for your WordPress install? Also, did you create one for your bbPress? If so, please paste in the contents of each htaccess file. If not, try creating one. :-)

    #65001
    bobbyh
    Member

    Yeah, assuming the themes have consistent HTML, in the header, put something like this:

    <link rel="stylesheet" href="<?php if ($forum_id == 1) bb_stylesheet_uri(); elseif ($forum_id == 2) echo '/my-templates/kakumei-blue/style.css'; ?>" type="text/css" />

    I didn’t test this, but I think that code should work.

    #64947

    In reply to: php_e() issue

    A1ex
    Member

    Use PoEdit:

    msgmerge --no-fuzzy-matching -o ru_RU.po wp_ru_RU.po bb_ru_RU.po

    #3315
    Null
    Member

    Well the logo (page_header_bblogo.png) appears a bit darker then the background color of the header. You clearly see a grey square now. When overwriting the blue logo with the original green one, the same problem appears (thought perhaps the background color was made too dark).

    Swithcing the theme back to the normal kakumei, the logo displays correct. Overwriting this with the blue logo gives no problems either.

    So there is a bug in the blue kakumei theme, plz fix :)

    #64721
    kineda
    Member

    I discovered for it to work that the secret keys cannot have spaces in them (as you could in version 2.5 of wordpress and 0.9.0.1 of bbpress). I generated a new secret key as one long string, and voila… users can pass through both programs without having to re-login. :)

    #64959
    $bb->wp_table_prefix = 'wp__'; // your wordpress db prefix is
    $bb->wp_home = 'http://yourwebsite.com/';
    $bb->wp_siteurl = 'http://yourwebsite.com/';

    replace yourwebsite.com with the blog url.

    if your blog url is for example

    http://www.google.com then don’t forget to add the WWW to it, but if it doesn’t has WWW, the don’t use it.

    #64925
    gerikg
    Member

    Oh forgot. In the header I put just

    <li class="page_item"><a href="/forum/">Forum</a></li>

    after the page tag. It’s either going to be in front of all your pages or behind.

    #64924
    gerikg
    Member

    How I did it… Please back up everything before starting.

    You need to find a theme close to your WP to make it easier.

    1. BBPress side,I renamed the style.css to styleold.css

    2. Copied over the WPress style.css over to BBpress

    3. Open both files at the same time. You want to copy over some of the codes from styleold.css to style.css. You might need to play with it. Do not copy “body”.

    4. Open both header.php. On the BBpress header copy over from WP header everything after <body> tag. Replacing whatever is there.

    5. Open both footer.php. This one is a little tricky.

    You can just copy over the whole thing and make sure you have <?php do_action(‘bb_foot’, ”); ?> in the file. You will lose the designers info though OR You need to see on WP side if there is any closing tags. bring that over and delete any closing tags on the BBPress side.

    6. Sidebars: depending where the <?php get_sidebar(); ?> tag. For example my <?php get_sidebar(); ?> tag is IN the footer.php Others the <?php get_sidebar(); ?> is in the other php files right before the get_footer tag or after get header tag.

    that’s it.

    make sure in your bb-config.php

    there is

    $bb->WP_BB = true;

    if (file_exists(‘../wp-blog-header.php’))

    require_once(‘../wp-blog-header.php’);

    else

    if (file_exists(‘../../wp-blog-header.php’))

    require_once(‘../../wp-blog-header.php’);

    after <?php tag.

    Goodluck.

    #64720
    mrhoratio
    Member

    Can you post the lines you added to your wp-config.php and bb-config.php files?

    The line defining the secret key in bb-config.php should look something like this:

    define('BB_SECRET_KEY', 'My Secret Key');

    and in wp-config.php

    define('SECRET_KEY', 'My Secret Key');

    Don’t forget the BB_ in fron of SECRET_KEY in the bb-config.php file.

    #64875
    Sam Bauers
    Participant

    bbPress turns < p > tags back into double line breaks and < code > back into backticks ( ` ).

    You will need to somehow override this or force reconversion in TinyMCE or FCKeditor

    #64942

    In reply to: Hide email addresses

    leemon
    Member

    Oops! You are right! :P

    #64869
    mrhoratio
    Member

    By the way, I made this hack cleaner by implementing it as a filter inside a plugin.

    function my_get_user_profile_link_filter( $link , $user_id = 0 ) {
    //check for rewrite
    $rewrite = bb_get_option( 'mod_rewrite' );
    if ( $rewrite ) {
    //what kind of rewrite there is? slug use "forum_slug" column, else the column is "forum_id"
    $column = ($rewrite === 'slugs')?('forum_slug'):('forum_id');
    $link = str_replace('forums/profile/', 'people/', $link);
    }
    return $link; // Very important line!
    }

    This was based on code suggested in another thread:

    https://bbpress.org/forums/topic/nicer-slug-url-rewrite-plugin-done

    #64856
    Sam Bauers
    Participant

    @ _ck_

    I’m not sure it works either… :)

    #64957
    mrhoratio
    Member

    You’re welcome. It’s included with 2.5.1, it’s just an optional entry, so I don’t think it would be in your default config file. But I think it is shown in the sample config file.

    https://codex.wordpress.org/Editing_wp-config.php#Secret_Key_IMPORTANT

    #64954
    mdata
    Member

    The secret key is not mentioned period in the wp-config.php file, but is in the bb-config.php file. The WordPress secret is in the http://www.masterdata.com/forum//wp-admin/options.php file (yep, the double forward slash is accurate – cut & paste) and does match exactly (I used Excel to do the match).

    If it is supposed to be in the wp-config.php file, please show me how the entire finished code should look (obviously my variables will differ but the structure will be the same). We might let the developer folks in on this too.

    Awaiting your reply…. Thank you!

    #64922
    mrhoratio
    Member

    IPsource, to add a Forum button in the nav bar, you’ll need to edit your theme files in WordPress. And then do the same in the bbPress template files. Most likely, the files would be something called header.php. Every theme is different so it’ll depend on what you have. You might consider hiring a coder to do it, if you’re not comfortable with the html/php.

    #52809

    In reply to: Plugin: Summon user

    Null
    Member

    Is it possible to make it so that (when using the online plugin) you can summon a online person directly? So you summon a user who is online, he will recieve a pop-up (or something) . When he presses the link or button in the pop-up, he will go directly to the topic. Ofcourse the pop-up should heave 2 buttons. 1 to accept the summon and 1 to decline it. The summoner will recieve a pop-up when the summon is declined.

    That would be so cool :)

    #64941

    In reply to: Hide email addresses

    djp
    Member

    Hi Leemon

    As far as I am aware, the email addresses of the people who register are not visible in their profiles by other registered users. It seems to be a default setting in bbpress.

    The email addresses are only visible to the Keymaster & people who have been given Administrator access.

    Hope this helps :)

    #64810

    In reply to: Profile hook/filter

    Bloggsbe
    Member

    @sambauers

    Yes, I know, but the one I used in bb-twitter is not so “bad”. I just hooked in to the show avatar function, and made sure that it only shows on the profile page, and no other pages. And that is just to show the latest tweet from that user.

    The admin/profile part is using the right hooks so the user can control the twittername and chose to show or not to show the tweet!

    I really hope there will be some hooks/filters for the profile page one day :-)

    Rune

    #57774

    In reply to: localizing plugins

    A1ex
    Member

    All calls of functions “__()” and “_e()” should be with textdomains.

    For example

    _e('Hello!', 'onlinelist');

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