Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,876 through 24,900 (of 32,432 total)
  • Author
    Search Results
  • #64933
    amistad
    Member

    Hi, I would like to display forum on wordpress page, and i used a gerink post, but when i put that code:

    $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’);

    In to the top of my bb-config.php file, i just can not login in to the bbpress. I try to create new account, but effect is the same. When I click “Log in >>” , the site is only refresh, and I still can only log in.

    I have wp 2.8 and bbpress 0.9.0.5.

    #74457

    Try

    <?php if (is_user_logged_in()) {
    ?>
    HTML
    <?php } ?>

    #64932
    admesser
    Member

    I used the Pages Links To plugin and it works perfectly for my needs :) I am going to give my forums a different feel from the website. Thanks!

    #74451

    Yes. And it’s mentioned all over :)

    Try removing define('WP_AUTH_COOKIE_VERSION', 1); from your bb-config.php file.

    #74454
    timskii
    Member

    For Gravatars:

    echo bb_get_avatar( bb_get_current_user_info( ‘id’ ), 32 )

    Where 32 is the pixel size of the Gravatar.

    (That’s 1.0 code… not sure about 0.9.)

    #14958

    On Nginx, I am using this for WordPress

    # WordPress pretty URLs: (as per dominiek.com)
    if (-f $request_filename) {
    break;
    }
    if (-d $request_filename) {
    break;
    }
    rewrite ^(.+)$ /index.php?q=$1 last;

    # Enable nice permalinks for WordPress: (as per Yawn.it)
    error_page 404 = //index.php?q=$uri;

    and I want something similar for bbPress. Please share the solution!

    #74427

    Although I havn’t tested it but it should work:

    <ul>
    <?php
    $count=0;
    if ( $topics )
    {
    foreach ( $topics as $topic)
    {
    $doof = $topic->forum_id;
    if ($doof=="1")
    {
    if($count<3)
    $count++;
    else
    break;
    ?> <li><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a> | <?php topic_page_links(); ?></li>
    <?php } } } ?>
    </ul>

    #74419

    You need to have the Forum ID for this. i am giving you a code snippet in the other thread. Just hang up for a few minutes.

    We will continue discussion here in this thread : https://bbpress.org/forums/topic/how-do-i-loop-through-each-forum

    #74418

    I really don’t know how it could be done but you should be looking for a function with which you can return the current forum category, match it with something you want and then selectively display content as per it.

    like :

    for each topics

    |

    —-check category

    |

    —-if music then music list

    —-else if code then code list

    —-else if network then network list

    Hope that helps. :)

    #74224
    massbase
    Member

    im having to guess each and every class and function, just by how i might think they’re named…. I really can’t wait for the codex.

    #74348
    Tynan Beatty
    Member

    Sam, I’ve tried about 50 different changes and no matter what I do with the config files, the Integration plugin settings, or the bbPress WordPress Integration settings, nothing seems to change the fact that I cannot logout from WordPress if I have logged in from bbPress (that means I cannot logout period, I click logout there and can still go into either of the admins because the cookies are not removed). Everything else works fine. I could always redirect all my bbP login forms to wp-login.php I suppose, but it seems like that should be unnecessary. Could it be because my wordpress is in a subfolder of my site like /public_html/yawp/ ?

    It seems when I login from bbP I get 2 wordpress_logged_in_* cookies, with identical values except that the ‘Path:’ of one is ‘/yawp/’ and the ‘Path:’ of the other is ‘/yawp’. When I login from WP I only get 1 wordpress_logged_in_* cookie, and it has a ‘Path:’ of ‘/yawp/’. I feel like this might be part of the problem.

    I figured the integration speedup line $bb->sitecookiepath = '/yawp'; in bb-config.php might be to blame and added only that line, but changed it to $bb->sitecookiepath = '/yawp/';, cleared cache, deleted cookies, but still I get both logged_in cookies when logging in from bbP. That’s among trying a bunch of other different config changes to get that wp_login_* cookie unified.

    Since you said in the RC-1 thread that I should be able to have this work if I just play with the cookie paths, have you any suggestions?

    #74423
    massbase
    Member

    I didn’t find how to loop each category if there is such as thing, but I found this solution, its WORKS fine…

    <?php if ( $topics ) : foreach ( $topics as $topic) : ?>
    <?php
    $doof = $topic->forum_id;
    if ($doof=="1") {
    ?>
    <p><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></p>
    <?php } ?>
    <?php endforeach; endif; ?>

    #74395

    Where are the settings of “User role map” stored? I think I may have selected it to make WP admins to be a bbP member and it may be a bug? :/

    Wait, is it that User role maps are just updated once when they are asked to do so? Hmm.. Makes sense! So where can be the problem?

    Sam, you there?

    #14953
    swaymedia
    Member

    I want to show this on my front-page.php

    Music Category:-

    – latest topic relating to music 1 , posted by (author) etc…

    – latest topic relating to music 2 , posted by (author) etc…

    – latest topic relating to music 3 , posted by (author) etc…

    – latest topic relating to music 4 , posted by (author) etc…

    – latest topic relating to music 5 , posted by (author) etc…

    code Category:-

    – latest topic relating to code 1 , posted by (author) etc…

    – latest topic relating to code 2 , posted by (author) etc…

    – latest topic relating to code 3 , posted by (author) etc…

    – latest topic relating to code 4 , posted by (author) etc…

    – latest topic relating to code 5 , posted by (author) etc…

    Network Category:-

    – latest topic relating to Network 1 , posted by (author) etc…

    – latest topic relating to Network 2 , posted by (author) etc…

    – latest topic relating to Network 3 , posted by (author) etc…

    – latest topic relating to Network 4 , posted by (author) etc…

    – latest topic relating to Network 5 , posted by (author) etc…

    What is the function to call the first 5 or so topics from a Specific category… please

    #74415
    chrishajer
    Participant

    Ahh. You want to extend the registration form then.

    This plugins do something similar, maybe you could use one as a starting point?

    https://bbpress.org/plugins/topic/bbsocialize/

    https://bbpress.org/plugins/topic/gaming-codes/

    https://bbpress.org/forums/topic/plugin-allow-additional-or-custom-profile-fields

    Also, there has been some discussion recently in these forums of just how to do this, but I can’t find it right now.

    #74347

    After upgrading to WP 2.8, remember to REMOVE define('WP_AUTH_COOKIE_VERSION', 1); from your bb-config.php file.

    Also I had to dump all my cookies and cache to get back into the bb-admin side, but for a regular user perspective, everything was hunky dory :)

    #67813
    pbarry4
    Member

    @zappoman Any chance you can share the wealth and make the plugin available? :) Cheers

    #74223
    johnhiler
    Member

    Cookies

    We should probably have a general writeup of how Cookies work in both WordPress and bbPress, across versions… how the WordPress cookie was changed in versions 2.5 and 2.6, and how the bbPress cookie was changed from 0.9 to 1.0 (and any other changes that you can think of!)

    Of particular note would be which versions integrate well with each other (e.g. how bbPress 0.9 doesn’t have native support to integrate with the latest WordPress versions… so for a number of months, the only way to upgrade WordPress was to upgrade to the alpha 1.0).

    Also, ck’s bbPress cookie upgrade plugin… and Superann’s WordPress cookie downgrade plugin (to allow 0.9 to talk to the latest WordPress cookies).

    Anyone enough of a Cookie guru to draft a general writeup of how cookies work, and the general cookie compatibility issues we’ve seen? I think we can do better than the WordPress Codex, which seems really vague:

    https://codex.wordpress.org/WordPress_Cookies

    Integration

    Might be worth sharing links to people who have integrated bbPress with non *Press user logins:

    https://bbpress.org/forums/topic/bbpress-integration-2

    Maybe also a writeup on “deep” *Press integration versus other more “shallow” forms of integration (shared login)… some useful links on that:

    https://bbpress.org/forums/topic/first-pass-at-a-fix-for-deep-integration-in-trunk

    Any other links on deep versus shallow integration?

    #74288
    Atsutane
    Member

    $sql="SELECT * FROM bb_posts WHERE post_topic='' ORDER BY post_id DESC LIMIT 8";

    It seem like you telling the script to look for post with empty topic. Try change it to this:

    $sql="SELECT * FROM bb_posts ORDER BY post_id DESC LIMIT 8";

    #68277
    exchequer598
    Member

    Shouldn’t the prefixes too be the same for integration? But guess what, I just uploaded bbPress 1.0 RC2 and somehow the problem is fixed!! But now when I login to bbPress admin page, I cannot see the link for the Plugins page. Also, if I type /bb-admin/plugins.php, I get redirected to the forum’s homepage! Please help :-)

    #74340
    wiseacre
    Member

    Final RC 2 and stable 1.0 plans?

    Hallelujah

    :-)

    #74287
    niravdave
    Member

    Hi John,

    Thanks for the input. I am already aware about this.

    I was looking for another solution. I tried my hands on this code but it doesnt work.

    Can some1 help me on this?

    help much appreciated.

    <?

    mysql_connect(“localhost”, “username_db_forum”, “password”);

    mysql_select_db(“database_name_forum”);

    $sql=”SELECT * FROM bb_posts WHERE post_topic=” ORDER BY post_id DESC LIMIT 8″;

    $risultati=mysql_query($sql);

    while($riga=mysql_fetch_array($risultati)) {

    $target=$riga[“post_topic”];

    $target1=$riga[“post_id”];

    echo”<img src=”images/bullet.gif” align=”absmiddle”>$target

    “;

    }

    ?>

    #74336

    Cool. Otherwise, I don’t see any issues yet. I’ll let my users bang around and come up with something, I’m sure ;)

    alvarix
    Member

    I am attempting to integrate bbpress rc-1 into a wp blog (2.7.1) so it utilizes the same header and footer, but I don’t need db or login integration.

    I only need to load wordpress so I can call get_header() and get_footer(). When I add this to the top of bb-config.php require_once('/path/to/wp-blog-header.php'); it seems to destroy the ability to login. I am simply routed to another page (Add New Topic), without actually having been logged in. If I try to access bb-admin.php, it spits me back onto the index page.

    Any guides suggestions?

    #74333

    Sam, is there any plan to fix up the admin side CSS before go-live? It’s still seriously unformatted.

    http://yfrog.com/7hadminnp

    Also #1076 is still open. Pretty permalinks seems to kill pagination for User Roles :/

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