Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 21,576 through 21,600 (of 32,481 total)
  • Author
    Search Results
  • #86907

    In reply to: Latest Discussion Page

    Anonymous User
    Inactive

    Hi gerikg,

    this post could help you:

    https://bbpress.org/forums/topic/create-a-new-custom-page-like-wordpress

    1. Make a custom page

    create a page discussion.php in the root forum folder

    add require_once(‘./bb-load.php’); on the top of the page. and write whatever code you want in the page.. that should create a static page with bbpress functions..

    2. Put in the code for the Latest discussions from the main page (?)

    or

    3. Make your own sql query – https://bbpress.org/forums/topic/create-a-new-custom-page-like-wordpress

    Markus

    #34004
    #86897
    gerikg
    Member
    <?php if (bb_get_forum_is_category()) {; ?>
    <table id="forumlist">
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="4" class="cattile"><?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>
    <tr>
    <th colspan="2"><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php } else { ?>
    <table id="forumlist">
    <tr>
    <th colspan="2"><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php };?>
    <?php continue; endif; ?>

    I can’t get it right..

    #86896
    chrishajer
    Participant

    I suppose you could do the complete noob thing and say:

    <?php if (bb_get_forum_is_category()) {
    continue;
    }
    else {
    // do something
    }
    ?>

    Unless I am completely missing your point and this is some sort of test :-)

    #86895
    chrishajer
    Participant

    Is it as simple as:

    <?php if ( !bb_get_forum_is_category() ) {
    // whatever
    ?>

    gerikg
    Member

    Add

    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4

    to your .htacess file. By default GoDaddy uses php4

    bah I should add pictures to my tutorial!

    #86787
    Anonymous User
    Inactive

    Hi chris,

    thanks for your long post. It’s great to have you here as moderator :)

    Honestly though, we have bigger problems than just putting a fresh face on the bbPress.org website. That would be the least of my concerns.

    I can understand thoughs – although I’ve made a post about the “fresh face” just minutes ago. After using bbPress more than a year I believe in the future of this project. :) And I will contribute – where I can help. :)

    For my thoughts … there should be a defined project team to coordinate the next steps. The weekly IRC meetups in December and January were the right way. To define a document team was also great. But after three months there are only you and Gautam “driving” the project.

    Markus

    #86786
    jurasiks
    Participant

    I no need access. I need people who have access.

    Matt left project (as u mentioned) and keep people with access. But this people left project too?

    p.s. i added ps before u left comment)

    p.p.s i don’t want fork good engine before it will become “another wp-plugin” – if you no need our help – it’s ok. just say :(

    #86784
    chrishajer
    Participant

    bbPress.org is just a WordPress site with a bbPress installation. You have everything you need in the bbPress releases to create your own fork or distribution or CMS engine. Why would you need FTP/DB access to create a project like that? All you need is the bbPress code right?

    The person who has access to the database and FTP or server is Matt, or someone who works for him. I believe you’ve already gotten in contact with him.

    #86783
    jurasiks
    Participant

    i really have idea to fork bbPress and clean wp code out of him when i heard that bbPress will become a WP plugin,

    next somebody (maybe Gautam) said that before some version bbPress stays standalone…

    really, it’s no reason to make fork, best way to make new simple-forum(cms) engine with my friends, but…

    if you have here “dedicated” community and wants some help from me and another people… no reason to blame me (man who wants make wiki about bbpress and help with project) or calling me a troll. thank you.

    we need to find admin (with full FTP/DB access) of bbPress.org

    that’s what i’m doing past week.

    only with him we can make future of bbPress engine

    p.s. very strange that people who develop bbPress dont know answer on this simple question? :(

    #86781
    chrishajer
    Participant

    I believe I am an editor at the bbPress.org WordPress blog. That means I don’t have access to the Appearance tab (to change themes) or to Plugins or Settings. I have access to Pages and Posts so I can made additions or modifications to content there, but I can’t change the design or anything like that.

    Honestly though, we have bigger problems than just putting a fresh face on the bbPress.org website. That would be the least of my concerns.

    Yury, if you’re not seriously talking about creating a fork, but gave this topic a title like that “to get people’s attention” then you’re trolling, which is not productive.

    Right now, we have the bbPress.org forums, which are moderated daily by me. I help out with solutions where I can, or try to pull information out of users who post of problems with very few details, to possibly help some other thoughtful soul who might come along and be able to help.

    I don’t touch integration problems at all (“when I log in to bbPress, I am automatically logged out of WordPress” anyone?) because integration is far too complicated with too much voodoo required (PHP5? 777 permissions? pasting in keys and cookie domains that may or may not make a difference?) for someone who just wants to install a forum where their WordPress users can be logged in automatically. For that reason, and a couple others (functional integration [ability to use things like wp_list_pages()] and theme integration (“I want my bbPress to just be a page inside my WordPress site” or “how do I make bbPress look like my WordPress theme?”)) I support the decision to make bbPress a WordPress plugin.

    Honestly though, I’m not sure how that will work with custom post types coming in 3.0. Justin Tadlock was playing with an idea that used custom post types to create a forum structure, and it looked pretty neat. He lost that work in a hard drive crash or something, but he mentioned it didn’t take long to do.

    http://www.wptavern.com/forum/bbpress/1437-bbpress-off.html#post13939

    http://twitter.com/justintadlock/status/10849352003

    For those who want bbPress as standalone, please feel free to download the versions that exist right now. Download them daily, in case development ceases at some point. Right now, we’re continuing to fix bugs in the existing versions. After all the bugs are fixed :-) it’s anyone’s guess what will happen.

    And with a fork of bbPress you’d arguably have more control (heck, you can fork it now with one of the existing versions, create your own website and distribute the software) but you’d be hard pressed to match the community we have here. It may not be big, but it’s dedicated, and if you’re interested in seeing bbPress continue this is the best place to be.

    #33996
    dogeil
    Member

    I have uploaded the files to our server address, but when I go to the folder, I get errors noting the following:

    __________________________________

    The website declined to show this webpage

    HTTP 403

    Most likely causes:

    •This website requires you to log in.

    __________________________________

    I also tried to add index.php to the end of the URL, but it returned the following:

    __________________________________

    The page cannot be found

    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.


    Please try the following:

    •Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.

    •If you reached this page by clicking a link, contact the Web site administrator to alert them that the link is incorrectly formatted.

    •Click the Back button to try another link.

    HTTP Error 404 – File or directory not found.

    Internet Information Services (IIS)

    __________________________________

    I’ve downloaded the files to a folder within our site. Any suggestions on what I may not be doing properly here??

    Duane

    #33995
    psycheangels
    Member

    xxx.com/rss is latest rss posts but how do i get latest rss topics ? without recent topic post.

    i look at rss.php i found this

    case 'all-topics':
    if ( !$topics = get_latest_topics() )
    die();

    $posts = array();
    foreach ($topics as $topic) {
    $posts[] = bb_get_first_post($topic->topic_id);
    }

    $title = esc_html( sprintf( __( '%1$s &raquo; Recent Topics' ), bb_get_option( 'name' ) ) );
    $link = bb_get_uri();
    $link_self = bb_get_topics_rss_link();
    break;

    so how i get that rss feed ?

    thanks

    #76302

    In reply to: howto find user ids?

    Gautam Gupta
    Participant

    Just put this in your theme’s functions.php (create one if you don’t have one). Also put this in the beginning of code – <?php and this at the end – ?>

    Xevo
    Participant

    Hi there,

    I’m working on a bbpress 1.0.2, wordpress 3.0 beta and buddypress 1.2.3 setup, but now I’m having problems with my bbpress. I did the same setup with 2.9.2 and that worked great, but I’m guessing WordPress 3.0 changed a lot.

    Here’s what happened.

    I installed wordpress normally with a different username than “admin” with my own password, all went well. After that I installed buddypress as a plugin, this went like it should as well. Then when I reached the bbpress installation (step 2), I entered all the secret keys and salt as I had them in my wp-config.php and pressed next step, it said that everything was validated but then in step 3 it let me choose a keymaster username, which I find odd since 2.9.2 didn’t. I entered a username/e-mail and finished the setup without a problem. No problems encounterd in the setup was said in the setup logs. Now here’s the strange thing, it made the tables in my database (which is the database that holds wordpress as well) but it did not make a bb-config.php file, so when I went to the URL of the main forum page, it gave me an error (which is when I discovert that there was no bb-config.php). It also made “bb_users” and “bb_usermeta” in my database. I made bb-config.php myself after that with the same secret keys from wp-config and setup wp integration in bb-admin accordingly. This gave me shared cookie logins with my wordpress install (having bbpress intergration plugin installed in wordpress). But after having done all this, I cannot enter my bb-admin area anymore. I checked the files and figured out that the function bb_auth was causing me to be redirected to the main forum page.

    So my question is, anyone solved this problem yet or can you help me solve it?

    function bb_auth( $scheme = 'auth' ) { // Checks if a user has a valid cookie, if not redirects them to the main page
    if ( !bb_validate_auth_cookie( '', $scheme ) ) {
    nocache_headers();
    if ( 'auth' === $scheme && !bb_is_user_logged_in() ) {
    wp_redirect( bb_get_uri( 'bb-login.php', array( 're' => $_SERVER['REQUEST_URI'] ), BB_URI_CONTEXT_HEADER + BB_URI_CONTEXT_BB_USER_FORMS ) );
    } else {
    wp_redirect( bb_get_uri( null, null, BB_URI_CONTEXT_HEADER ) );
    }
    exit;
    }
    }

    #86775
    johnhiler
    Member

    Yury – I totally agree that we as a community need more control over things like docs, etc.! But I can’t see Matt giving FTP and database rights to us… maybe instead, we can download copies of the various releases and plugins and upload them to a backup server somewhere? And start some docs on another server, as you have. :-)

    Honestly – I would be shocked if Automattic shut down bbpress.org without warning. It would be a real black mark on Automattic’s reputation in the open source community, which is something Matt and his team are really proud of (and rightfully so). But if that’s something that a bunch of us are worried about, we can maybe create another thread to discuss how to prepare for that contingency.

    Gautam – I’m not too worried about this next release, because Matt pretty clearly defined it before he disappeared:

    https://bbpress.org/forums/topic/whats-happening-with-bbpress/page/5#post-64400

    The next version though, we’ll definitely need to establish a clear direction – with or without Matt (but hopefully with him, or someone from Automattic!). But I’m not too worried about informing anyone… we’re posting on a public server, so it’s not like we’re hiding what we’re up to!

    #86772
    johnhiler
    Member

    “And main question: Who is admin of this site with full access if Matt left project?”

    Is that the part you’re referring to? I guess I’m not understanding what contingency we’re preparing for. Matt has already de facto left the project, and Chris has been doing a wonderful job of making steady progress towards the next release.

    Is the concern that if bbpress.org is suddenly shut down, we won’t have a backup of the data? Sorry – just trying to get my head around your concern! :-)

    #86769
    jurasiks
    Participant

    we’ve got 1 open ticket till 1.0.3 on trac?

    sent another message to Matt, spam his Facebook page…

    is he ignoring us? :(

    #69807
    psycheangels
    Member

    fix post position

    function fix_post_position() {
    global $bbdb;
    $get_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics ORDER BY topic_start_time ASC");
    foreach( $get_topics as $get_topic ) {
    $get_posttopic = $get_topic->topic_id;
    $postorder = 1;
    $get_posts = $bbdb->get_results("SELECT * FROM $bbdb->posts WHERE topic_id = '$get_posttopic' AND post_position = '1' ORDER BY post_time ASC");
    foreach( $get_posts as $get_post ) {
    echo "UPDATE bb_posts SET post_position = ";
    echo $postorder++;
    echo " WHERE topic_id = ";
    echo $get_post->topic_id;
    echo " AND post_id = ";
    echo $get_post->post_id;
    echo " ;";
    echo '<br/>';
    }
    } }

    echo fix_post_position in your template file and copy the sql query to your database

    #86824
    robalan
    Member

    zaerl,

    Apparently I need the second pair of eyes for when I post things here. ;o) I copied/pasted the redacted code, but didn’t add the BB_.

    On the actual config file, they are:

    define(‘BB_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_SECURE_AUTH_KEY’, ‘same as wordpress’);

    define(‘BB_LOGGED_IN_KEY’, ‘same as wordpress’);

    define(‘BB_NONCE_KEY’, ‘same as wordpress’);

    #86849
    Anonymous User
    Inactive

    Hi Rabbitdk,

    with manual coding it should be possible to display complete posts in wordpress.

    I use the examples from https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration to display an complete list of my forums and a short list of the newest topics.

    http://www.mysteria3000.de/wp/

    But I think – to make an original WordPress Post out of it – is not as easy as pure displaying.

    hmmm….

    For the last month I use the plugin ‘WordPress-bbPress syncronization’ (http://bobrik.name/code/wordpress/wordpress-bbpress-syncronization). But these plugin does it the other way – make WordPress Post to Topics in bbPress and display answers (post in bbPress) as comments in WordPress. A skilled php developer can use this plugin and change some code to realize your idea.

    Unfortunately I’m no developer :(

    #86822
    robalan
    Member

    Here are my config files, for reference:

    wp-config:

    <?php

    // ** MySQL settings ** //

    define(‘COOKIEPATH’, ‘/’);

    define(‘DB_NAME’, ‘###’); // The name of the database

    define(‘DB_USER’, ‘###’); // Your MySQL username

    define(‘DB_PASSWORD’, ‘###’); // …and password

    define(‘DB_HOST’, ‘internal-db.###.gridserver.com’); // 99% chance you won’t need to change this value

    define(‘DB_CHARSET’, ‘utf8’);

    define(‘DB_COLLATE’, ”);

    define(‘WP_CACHE’, true);

    define(‘SECRET_KEY’, ‘###’);

    define(‘AUTH_KEY’, ‘###’);

    define(‘SECURE_AUTH_KEY’, ‘###’);

    define(‘LOGGED_IN_KEY’, ‘###’);

    define(‘NONCE_KEY’, ‘###’);

    define(‘AUTH_SALT’, ‘###’);

    define(‘SECURE_AUTH_SALT’, ‘###’);

    define(‘LOGGED_IN_SALT’, ‘###’);

    define(‘NONCE_SALT’, ‘###’);

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

    $table_prefix = ”; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the

    // chosen language must be installed to wp-content/languages.

    // For example, install de.mo to wp-content/languages and set WPLANG to ‘de’

    // to enable German language support.

    define (‘WPLANG’, ”);

    /* That’s all, stop editing! Happy blogging. */

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    require_once(ABSPATH.’wp-settings.php’);

    ?>

    bb-config:

    <?php

    /**

    * The base configurations of bbPress.

    *

    * This file has the following configurations: MySQL settings, Table Prefix,

    * Secret Keys and bbPress Language. You can get the MySQL settings from your

    * web host.

    *

    * This file is used by the installer during installation.

    *

    * @package bbPress

    */

    // ** MySQL settings – You can get this info from your web host ** //

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

    define( ‘BBDB_NAME’, ‘###’ );

    /** MySQL database username */

    define( ‘BBDB_USER’, ‘###’ );

    /** MySQL database password */

    define( ‘BBDB_PASSWORD’, ‘###’ );

    /** MySQL hostname */

    define( ‘BBDB_HOST’, ‘internal-db.###.gridserver.com’ );

    /** 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’, ” );

    define(‘COOKIEPATH’, ‘/’);

    /**#@+

    * Authentication Unique Keys.

    *

    * Change these to different unique phrases!

    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/bbpress/ WordPress.org secret-key service}

    *

    * @since 1.0

    */

    define(‘AUTH_KEY’, ‘###’);

    define(‘SECURE_AUTH_KEY’, ‘###’);

    define(‘LOGGED_IN_KEY’, ‘###’);

    define(‘NONCE_KEY’, ‘###’);

    define(‘AUTH_SALT’, ‘###’);

    define(‘SECURE_AUTH_SALT’, ‘###’);

    define(‘LOGGED_IN_SALT’, ‘###’);

    define(‘NONCE_SALT’, ‘###’);/**#@-*/

    /**

    * 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_’;

    /**

    * bbPress Localized Language, defaults to English.

    *

    * Change this to localize bbPress. A corresponding MO file for the chosen

    * language must be installed to a directory called “my-languages” in the root

    * directory of bbPress. For example, install de.mo to “my-languages” and set

    * BB_LANG to ‘de’ to enable German language support.

    */

    define( ‘BB_LANG’, ” );

    ?>

    #86821
    robalan
    Member

    Also found this in bb-settings.php:

    /**

    * Should be exactly the same as the default value of the KEYS in bb-config-sample.php

    * @since 1.0

    */

    $bb_default_secret_key = 'put your unique phrase here';

    Do I need to also define the keys here manually??

    #86842
    Olaf Lederer
    Participant

    That’s why I asked, I can’t remember that (it was more than two years ago ver. 0.83)

    :)

    If it works like for wordpress everything is cool.

    #86848
    rabbitdk
    Member

    No, from inside the bbpress forum, I want to send a topic to my WordPress front so it’s published like a ordinary blog post :)

Viewing 25 results - 21,576 through 21,600 (of 32,481 total)
Skip to toolbar