Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,901 through 24,925 (of 32,468 total)
  • Author
    Search Results
  • #74227
    #74475
    Markus Pezold
    Participant

    We have the same problem today with the FBC-Plugin.

    I seems to be a “hot” topic – and that’s probably the reason why we search for the last 2 hours for a solution. :) *selfironic*

    Here the cookie-names and paths – they are identical. So the error eventually is not in seeting the cookies, but in reading of the cookies. !?

    After Login in WordPress

    wordpress_logged_in_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/

    wordpress_logged_in_672b8ff18484c1d9d7de0f05d907543d – Path: /

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/wp-content/plugins

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/wp-admin

    After Login in BBpress

    wordpress_logged_in_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/

    wordpress_logged_in_672b8ff18484c1d9d7de0f05d907543d – Path: /

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /wp-admin

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/wp-admin

    wordpress_672b8ff18484c1d9d7de0f05d907543d – Path: /wp/wp-content/plugins

    Path of Installation:

    http://www.mysteria30000.de/wp -> WordPress

    http://www.mysteria3000.de/forum –> bbPress

    Greetings

    Markus

    #74226
    johnhiler
    Member

    Ah sure, we could add that! Anyone interested in maintaining the Plugin Compatability part of the Codex?

    #74225
    omikami08
    Member

    Is there one that shows a list of compatible/working plugins for the different versions? WordPress has something like that:

    https://codex.wordpress.org/Themes/Theme_Compatibility/2.7

    https://codex.wordpress.org/Plugins/Plugin_Compatibility/2.7

    I’m asking because if it’s not there it might be a good addition.

    #74351

    If it wasn’t for Ipstenu mentioning to dump cookies and cache, I would have gone insane trying to log in after upgrade. This is vital info that may be worth adding to the upgrading instructions, and makes it quicker to get in the admin area and reactivate the plugins (or else, one is stuck with a broken looking forum) :-)

    Loving the new admin interface of the 1.0 version to match WP!

    #14965
    floch69
    Member

    Hi,

    I’m about to switch my old forum to a bbpress solution.

    Was looking around DB schema and found that post were wrapped up in a <p> tag.

    What’s the reason fon that?

    Is it possible to disable this behaviour?

    In that case, which part of the code is doing this?

    Thanks for your help!

    Cheers,

    Florent

    #74397

    To achieve integration between 0.9.05 & WordPress 2.7.1, I overwrite the bb_capabilities in wp_usermeta for my user by sql query as I don’t have phpmyadmin and I am using custom table prefixes.

    I’m at a loss why you would have to do that anyway… I’ve never heard of anyone having to go in via SQL and making those changes except in the case of ‘reverse’ integration (where by you started with bbPress and are now adding on a WP site). In theory, if you’re starting with everything brand new, you just do WP first and then bb and it should work.

    Looking at your doc, you also mention changing the wp_ prefix to rocking_ which is totally fine, but later on you have this:

    Add these two lines in bb-config.php

    $bb->custom_user_table = 'wp_users';
    $bb->custom_user_meta_table = 'wp_usermeta';

    Those too should be rocking_users and rocking_metadata

    #74462
    Markus Pezold
    Participant

    Hi massbase,

    the code from Ohna “(bb_is_user_logged_in())” works perfect in my installation. No more problems with that.

    #74422

    Use this in header :

    <?php
    // URL location of your feed
    $feedUrl = "http://feeds2.feedburner.com/ashfameblog?format=xml";
    // Replace the above URL with yours
    $feedContent = "";

    // Fetch feed from URL
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $feedUrl);
    curl_setopt($curl, CURLOPT_TIMEOUT, 3);
    curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, false);

    // FeedBurner requires a proper USER-AGENT...
    curl_setopt($curl, CURL_HTTP_VERSION_1_1, true);
    curl_setopt($curl, CURLOPT_ENCODING, "gzip, deflate");
    curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3");

    $feedContent = curl_exec($curl);
    curl_close($curl);
    ?>

    Use this to show :

    <?php
    $count=0;
    // Did we get feed content?
    if($feedContent && !empty($feedContent))
    {
    $feedXml = @simplexml_load_string($feedContent);
    if($feedXml)
    {
    ?>
    <ul>
    <?php foreach($feedXml->channel->item as $item): if($count==6) { break; } ?>
    <li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></li>
    <?php $count++; endforeach; ?>
    </ul>
    <?php }} ?>

    #74459
    Markus Pezold
    Participant

    Hi all,

    is this a function from bbPress 1.0 Release Candidate? In 0.9.0.5 it seems not to work:

    "Fatal error: Call to undefined function is_user_logged_in() in ../forum/bb-templates/scoun/front-page.php on line 3"

    #64934
    Joseph
    Member

    martenk, thanks so much. That plugin was what I was looking for. AMAZINGLY easy!

    Here it is again for anyone that just wants to be able to create a page in the admin that links to the blog without editing the core files (which wouldn’t be fun to think about when you update).

    http://txfx.net/code/wordpress/page-links-to/

    #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

Viewing 25 results - 24,901 through 24,925 (of 32,468 total)
Skip to toolbar