Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,376 through 23,400 (of 32,481 total)
  • Author
    Search Results
  • #79532
    InvTrdr
    Member

    Can I get help with that? Can I get the code for the sidebar.php file in bbPress and anything else that goes with it? Will the WP sidebar code work?

    Thanks.

    #79568
    AphelionZ
    Participant

    So what I did to patch this was comment out the BPDB function on line 140 of /html-root/wp-content/plugins/buddypress/bp-forums/bp-forums-bbpress.php

    Not ideal, I know – but it allowed me to keep working. Here’s the paste. http://pastebin.ca/1574452

    I’m open to suggestions :)

    #31832
    Jim R
    Participant

    I know there are many topics out there dealing with this, but there doesn’t seem to be a set way of doing it. Right now, I have…

    require('/home/jwrbloom/public_html/wp-load.php');

    …in my bbconfig.php file. I have changed all of the bb_get_header to get_header in my bbPress theme, and I have done the same with my footer. What isn’t carrying over is my site’s navigation. I’m using the Hybrid News theme for WP and kakumei for bbPress.

    I’d like to have full or most of my WP functionality for my bbPress, but at this point, other than maybe adding some widgets to a sidebar, I’m not sure what my plan is there. I definitely need all of my header information.

    #79566
    AphelionZ
    Participant

    Ok, so I was mistaken – its a 200 response with either wp-load or wp-blog-header and the fatal error from the logs is:

    Fatal error: Cannot redeclare class BPDB in /Users/mrh/Sites/irrational.dev/community/bb-includes/backpress/class.bpdb.php on line 39

    #79556
    angelamaria
    Member

    I said change the database name since I’m changing it from the default entry in **-config-sample.php to the same database name as on my wp-config.php :)

    I found the error — basically I had copy-pasted the whole database name line, quite unthinkingly; hence the constant was also renamed. Fixed now :D

    #79562

    In reply to: First Poster

    I think all are covered now ;)

    #79561

    In reply to: First Poster

    view.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php view_name(); ?></div>

    <?php if ( $topics || $stickies ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_view_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this view'); ?></a></p>

    <div class="nav">
    <?php view_pages(); ?>
    </div>
    <?php endif; ?>

    <?php bb_get_footer(); ?>

    #79560

    In reply to: First Poster

    tag-single.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <a href="<?php bb_tag_page_link(); ?>"><?php _e('Tags'); ?></a> &raquo; <?php bb_tag_name(); ?></div>

    <?php do_action('tag_above_table'); ?>

    <?php if ( $topics ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; ?>
    </table>

    <p class="rss-link"><a href="<?php bb_tag_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> link for this tag') ?></a></p>

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

    <?php endif; ?>

    <?php post_form(); ?>

    <?php do_action('tag_below_table'); ?>

    <?php manage_tags_forms(); ?>

    <?php bb_get_footer(); ?>

    #79453
    chrishajer
    Participant

    Rather than add the plugin (which isn’t working, right?) to the Extend section, why not just post the code you need help with, unless I am misunderstanding your question.

    You can post your code at pastebin.com and post the link here.

    #79559

    In reply to: First Poster

    and forum.php

    <?php bb_get_header(); ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a><?php bb_forum_bread_crumb(); ?></div>

    <?php if ( $topics || $stickies ) : ?>

    <table id="latest" role="main">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <p class="rss-link"><a href="<?php bb_forum_posts_rss_link(); ?>" class="rss-link"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for this forum'); ?></a></p>
    <?php forum_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
    <?php endif; ?>

    <?php if ( bb_forums( $forum_id ) ) : ?>
    <h2><?php _e('Subforums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>

    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; ?>

    <?php post_form(); ?>

    <?php bb_get_footer(); ?>

    #79558

    In reply to: First Poster

    Your new frontpage.php

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="hottags" role="main">
    <h2><?php _e('Hot Tags'); ?></h2>
    <p class="frontpageheatmap"><?php bb_tag_heat_map(); ?></p>
    </div>

    <div id="discussions">
    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Voices'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Author'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php bb_topic_voices(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><?php topic_author(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; // $topics ?>
    </table>
    <?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
    <?php endif; // $topics or $super_stickies ?>

    <?php if ( bb_forums() ) : ?>
    <h2><?php _e('Forums'); ?></h2>
    <table id="forumlist">

    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    <?php if ( bb_is_user_logged_in() ) : ?>
    <div id="viewdiv">
    <h2><?php _e('Views'); ?></h2>
    <ul id="views">
    <?php foreach ( bb_get_views() as $the_view => $title ) : ?>
    <li class="view"><a href="<?php view_link( $the_view ); ?>"><?php view_name( $the_view ); ?></a></li>
    <?php endforeach; ?>
    </ul>
    </div>
    <?php endif; // bb_is_user_logged_in() ?>

    </div>

    <?php else : // $forums ?>

    <div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> &raquo; <?php _e('Add New Topic'); ?></div>

    <?php post_form(); endif; // $forums ?>

    <?php bb_get_footer(); ?>

    #79571

    Slap /bb-admin to the end of your forum URL.

    So if your forum is at https://bbpress.org/forums then your admin’s at https://bbpress.org/forums/bb-admin/ :)

    #31828
    AphelionZ
    Participant

    I’m trying to get the wordpress functions inside of bbPress and vice versa, and therefore get the buddypress functions into bbPress as well. I tried the method described here: http://labs.b5media.com/blog/creating-the-anypress-solution/ but to no avail. In short, it involves adding this code to the bottom of my bb-config.php file:

    // Include WordPress functionality
    $currDir = dirname(getcwd());
    // Make sure this isn't install or admin (go up if it is)
    if(!file_exists("$currDir/wp-blog-header.php"))
    $currDir = dirname($currDir);

    if(!file_exists("$currDir/wp-blog-header.php"))
    die("Cannot find WordPress integration files.");

    error_reporting(E_ALL);
    require_once("$currDir/wp-blog-header.php");

    The only clues I have from my error logs are a 404 error and a white screen of death when I try to access my forum root, which is at /community. Also, my rewrite log is here: http://pastebin.ca/1572291

    Please note that im using an external install of bbPress intentionally because I need the forums to be centrally located and somewhat separate from my blog. Any insight or help would be greatly appreciated!

    #78252
    suzkaw
    Member

    Can you open the slide.js that comes with the theme and replace all the contents with this:

    jQuery.noConflict();

    jQuery(document).ready(function($){

    // Expand Panel
    $("#open").click(function(){
    $("div#panel").slideDown("slow");

    });

    // Collapse Panel
    $("#close").click(function(){
    $("div#panel").slideUp("slow");
    });

    // Switch buttons from "Log In | Register" to "Close Panel" on click
    $("#toggle a").click(function () {
    $("#toggle a").toggle();
    });

    });

    #79530
    InvTrdr
    Member

    Where do I find the sidebar.php file/code for bbPress and the includes?

    Thank you.

    #31826
    angelamaria
    Member

    Hello,

    I’m planning to using bbPress on a WP site/blog I am currently working on, on my local. WordPress is up and running already, a relatively clean install save for a couple of themes, and some entries. No plugins yet. I download bbPress, upload it underneath my WP root directory (where the blog is), change config to match WP config (for my local it’s just changing out the database name; I have a username/password account set up already for each of test installs), and try to install. I get:

    DB Error: cannot select

    …on all pages. I’ve looked at both bb-config and wp-config and the database values are identical, except for the suffix variable naturally. I’ve checked the database, only wp_* tables are there. I am using a fresh bbPress download.

    Just for completeness’ sake (comments removed for brevity):

    bb-config.php excerpt:

    /** The name of the database for bbPress */

    define('DB_NAME', 'pugad-lawin');

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘username’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘password’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘localhost’ );

    /** Database Charset to use in creating database tables. */

    define( ‘BBDB_CHARSET’, ‘utf8’ );

    /** The Database Collate type. Don’t change this if in doubt. */

    define( ‘BBDB_COLLATE’, ” );

    /** snip snip **/

    /**

    * bbPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $bb_table_prefix = ‘bb_’;

    wp-config.php excerpt:

    /** The name of the database for WordPress */

    define('DB_NAME', 'pugad-lawin');

    /** MySQL database username */

    define(‘DB_USER’, ‘username’);

    /** MySQL database password */

    define(‘DB_PASSWORD’, ‘password’);

    /** MySQL hostname */

    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */

    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */

    define(‘DB_COLLATE’, ”);

    /** snip snip **/

    /**

    * WordPress Database Table prefix.

    *

    * You can have multiple installations in one database if you give each a unique

    * prefix. Only numbers, letters, and underscores please!

    */

    $table_prefix = ‘wp_’;

    Again, I have a username/password user setup on my local MySQL database for testing purposes, so yes, it is expected that those will be staying the same.

    Any info on this would be great. Thanks!

    #31825
    johnhiler
    Member

    Ashfame tracked down this post that mentions our fearless leader:

    What is the future of bbPress? Through the grapevine, I’ve discovered that Sam Bauers no longer works for Automattic but he is still involved with the bbPress project. How much he is involved I don’t know. It’s interesting to me because I’ve always attributed bbPress as Sam’s project but in reality, Matt Mullenweg wrote bbPress in the time span of a weekend and then handed off the project to someone else to maintain.

    So if Sam is not the lead project developer, who is?

    http://www.wptavern.com/forum/bbpress/860-future-bbpress-undecided.html

    The clincher is that Sam is no longer listed on the automattic team page (although earlier versions of that page on archive.org show him there) : http://automattic.com/about/

    So for whatever reason, it sounds like Sam has possibly moved on professionally?

    Sam, if that’s the case – I just want to thank you for all of your hard work! You’ve been a real gift to the bbPress community, and we greatly appreciate your hard work and dedication.

    If that’s not the case, I hope you’re having a relaxing few weeks off. :-)

    #79537

    One has to manage it by getting page_topics from the meta table and then manipulate your php code.

    @Kawauso

    I think using $wpdb & $bbdb should sanitize by them self but reading the page on codex it looks like that we need to do that explicitly. I am a lil confused. Can you please clarify?

    Thanks ! I forgot that I should check out the codex for that.

    #79536

    ah.. found it page_topics under bb_meta

    #79478
    kirpiit
    Member

    Nope, Kawauso.

    <?php bb_get_profile_link(post_author()); ?>

    just renders the poster name, without any link.

    #79439

    In reply to: bbPress Codex – lolz

    #79527
    johnhiler
    Member

    Ah ok, yah mini-stats is a great dashboard plugin which lets you know how many users you have… how many posts and topics they’re creating… and other key metrics like that.

    I check it almost every day, and couldn’t run my sites without it… I find it to be one of the most useful plugins out there, if you’re managing a site for growth. :-)

    #79526
    chrishajer
    Participant

    If you’re unsure of what PHPINFO is, put this into a file called info.php on your web server, then access it with a browser at http://www.example.com/info.php and paste the info somewhere where we can see it.

    <?php
    phpinfo();
    ?>

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